How to set value for one field on record producer if its accessed from specific link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2023 06:33 AM
Hi,
I have one button on a table and thats client side which is opening one record producer by window.open
Now, if its opened by this button, then there is one reference field on record producer which i want to set with one specific value
I was not sure how to do this, can you please share any approach to achieve this
Thanks!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2023 06:58 AM
You should be able to pass the values in the URL as parameters, then populate the data through an onLoad client script that parses the URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2023 07:01 AM
Thanks, do you have any sample code for this for both ui action and onload catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2023 07:02 AM
You have to write a catalog client script to populate the value of a variable on a record producer. The client script should be onLoad and then you can write a script to set the value of a variable. This has to be done as only catalog client script and catalog ui policies work on record producer.