How to set value for one field on record producer if its accessed from specific link

akshayp
Tera Expert

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!!

3 REPLIES 3

Elijah Aromola
Mega Sage

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.

Thanks, do you have any sample code for this for both ui action and onload catalog client script

Mehta
Kilo Sage
Kilo Sage

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.