Copying string field value into reference field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:48 AM
Hi There,
Greetings!!!
I am copying records from Table A to Table B on condition If field of Table C is set to "Selected"
I have a requirement to copy string value "Number" which is on Table A to reference field "CWD Number" on Table B
I have written a business rule, it's copying the task from Table A to Table B but not copying the Number to CWD Number:
Business Rule:
Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 02:30 AM
Please try with the below code :
gr1.cwd_number.setDisplayValue(gr.number);
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 02:36 AM
Hello @Community Alums,
Please try with the below code :
gr1.cwd_number.setDisplayValue(gr.number);
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 02:26 AM
Hello @Community Alums,
Continued from my previous response, You can use below syntax:
gr1.cwd_number.setDisplayValue('number'); //Use the backend value of the variable
or
gr1.cwd_number.setDisplayValue(current.number);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 02:29 AM
No luck @Prathamesh G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 02:35 AM
Hi @Community Alums ,
Could you please give me insight for below queries,
- You have created After BR on which table?
- course_number field in x_infte_diversity_course_week_detail tableis referencing to which table ?
- cwd_number field in x_infte_diversity_course_task_for_registered_user table is referencing to which table ?
Regards,
Vipin Mathew