- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2024 12:38 AM
Hi Team,
I have a list type field called as control objective on Policy Exception table (Referring to Control Objective), when we open Control Objective form we have a string field called as reference as below :
Now my requirement is that I need to create another list type field where I have to show all selected control objectives (Control Objective field on Policy Exception form) reference values in newly created field , separated.
I created before update BR & below is the script - BR is on Policy Exception Table & condition is Control Objective Changes and Control Objective is not empty
I can show same control objectives on newly created field however I am not getting how I can populate reference values for all selected control objectives from Control Objective field to newly created list field.
Please advise team.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2024 03:01 AM - edited ‎07-22-2024 03:01 AM
Hi @Priya Singh 2 2 ,
Update your business rule script like below and try.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var con=current.getDisplayValue('field name of control objective list').split(',').toString();
gs.addInfoMessage(con);
current.setValue('u_referenceField',con);
current.update();
})(current, previous);
Please mark my answer as correct and helpful if it helps to resolve your issue.
Regards,
Namrata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2024 01:35 AM
@Ankur Bawiskar Kindly advise on above requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2024 03:01 AM - edited ‎07-22-2024 03:01 AM
Hi @Priya Singh 2 2 ,
Update your business rule script like below and try.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var con=current.getDisplayValue('field name of control objective list').split(',').toString();
gs.addInfoMessage(con);
current.setValue('u_referenceField',con);
current.update();
})(current, previous);
Please mark my answer as correct and helpful if it helps to resolve your issue.
Regards,
Namrata