GlideDilogForm UI Action I am not able pass the parent sysID

APV Babu 06-11
Tera Contributor
Hi Communtiy,
 
I have an requirement - I implemented GlideDiolgForm using with UI Action I am passing the values form parent to task table I can able to pass the values expect "Parent sysid". any body can relatable
 
 
 
 
function onRequest() {
    //Get the table name and sys_id of the record.
    var plan = g_form.getValue('plan_s');
    var lead = g_form.getValue('lead_cons');
    var info = g_form.getUniqueValue();
    //var tableName = "x_trer2_rps_tech_erit_task.do?sys_id=-1&sysparm_query=" + '^parent_intake=' + info;
    var tableName = "x_trer2_rps_tech_erit_task.do?sys_id=-1&sysparm_view=adjustment_task&sysparm_view_forced=true&sysparm_query=" + '^request_action=' + 'adjustment_request' + '^plan_s=' + plan + '^lead_consultant=' + lead + '^parent_intake=' + info;
    //var sysID = -1;
   
    //Create and open the dialog form
    var dialog = new GlideDialogForm('Create Adjustment Task', tableName); //Provide dialog title and table name
    dialog.setSysID("-1"); //Pass in sys_id to edit existing record, -1 to create new record
    dialog.addParm('sysparm_view', 'adjustment_task'); //Specify a form view
    dialog.setLoadCallback(function(iframeDoc) {
        // To get the iframe: document.defaultView in non-IE, document.parentWindow in IE
        var dialogFrame = 'adjustment_task' in iframeDoc ? iframeDoc.adjustment_task : iframeDoc.parentWindow;
        //dialogFrame.g_form.setValue('parent_intake', info);
        dialogFrame = null;

    });
    dialog.render(); //Open the dialog

}
 
 
Thanks in Advance!!
 
 
APV Babu
0 REPLIES 0