Tuesday, 31 January 2017

Aspect User Property

We came across the requirement where we have to default field value depend on the view.

Basically we have to default Service Request Type to Internal if service request is raised from employee service request view and if service request is raised from Account Service request view then default service type to External.

We observed that in both the views same applet is being used. Here we came up with approach to use aspect user property instead of scripting/BC cloning.

Approach is as below:

1) Add applet user property as below:



Applet User Property:
Name: View Apsect:Account Service Request List View(eService)
Value: SRType_E

Here depending on view name we have specified the value.

2) Search for Service Request Type field and add Field user property as below:


Field User Property
Name: Aspect Default Value:SRType_E
Value: Lookup(“SR_AREA”,”External”)
Here we are referring SRType_E from Applet user property.

In BC user property depending upon the value whether SRType_E or SRType_I field will get default value either External or Internal respectively.

By using aspect user property we can control BC functionality, instead of going for scripting or cloning the BC.


No comments:

Post a Comment