Pass parameter through dialog window to record producer.

arshad199110
Tera Contributor

I have created an UI Action within a table which will show a pop up window of record producer.

I need to pass the record number from the opened record to the record producer variable.

 

how to pass value from opened record to the record producer variable?

 

UI Action which I have created has below script:

 

function redirect(){
var dialog = new GlideDialogForm('Open request','com.glideapp.servicecatalog_cat_item_view');
dialog.setTitle('Open request');
dialog.addParm('sysparm_id','6872789f4020c6d47f45743269459c19');
dialog.setSysID(g_form.getUniqueValue());
dialog.addParm('preview','true');
dialog.addParm('ticket', g_form.getUniqueValue());
dialog.render();
}

 

arshad199110_0-1730190811703.png