- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 12:56 AM
Hello Community,
I have a simple query which I am not able to deal with.
My requirement is to populate the Short Description of Record Producer (which is created on table Security Incident) to Short Description of Security Incident.
I wrote the below line of code (line no 1):
Still it is not working 😞
Please help me out here.
Thanks in Advance,
Hritik.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 04:24 AM
Hii @Hritik If you know the short description of the producer then you can store this value in variable as a static eg var abc = 'xyz';
then you can use the current.short_description = abc;
//Use code in record producer script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 12:59 AM
Hi @Hritik ,
You can update your script with below
current.short_description = producer.getDisplayValue("short_description");
Please mark it as solution proposed and helpful if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 01:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 01:45 AM
Hi @Hritik ,
- Check the variable mapping and ensure the "short_description" option is checked
- If the variable is Map to field is mapped correctly in reocrd producer, the value will not be copied to the short_description field
- If the variable is mapped correctly, check the field type of the variable and the short_description field to ensure they are compatible
- If the field types are compatible, ensure the variable is visible and active in the record producer.
Check if there are any BR's or any client scripts that is clearing the short description.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 02:24 AM
Hi @Anand Kumar P ,
We are not mapping variable of Record Producer, but the Short Description itself of Record Producer. So no option to Map to Field.