Need Dot Walking script for pop up window,

malaisamy1
Kilo Contributor

Hi Guys,

i have a scenario where i want "dot walking" script for pop up window.

I have written a script for pop up window as below. For That i have used onload client script.

Script:

  if(g_form.getValue('d_type')=='Expected Default'){

  var a = '<tTable Name>';(this is different table . I am bringing in form as a pop up.. )

  var dialog = new GlideDialogForm('Please Enter RCA Details',a);

  dialog.setSysID(-1);                                                                                                                                                                        

                              dialog.setLoadCallback(function(iframeDoc) {          

                              var dialogFrame = 'defaultView' in iframeDoc ? iframeDoc.defaultView : iframeDoc.parentWindow;

                                                                           

                              dialogFrame = null;

                              });

                              dialog.setDialogSize(1200,800);

                              dialog.render();

  }

   

My requirement is,

i have two different form. within one form i am bringing another form as a popup. I need few values from the parent form to the pop up form as soon as the pop up form opened.

is there way to do this using dot walking or any other method. ?

Thanks in advance.

Malaisamy J

6 REPLIES 6

If they are BOTH reference fields, then you should not have a problem. If the source is reference and the target is string, that is exactly what will happen.


Is this the situation here?



Harel



Edit:


If you need to copy a value from a reference (source) field to a string field, then use:


g_form.getDisplayBox('source_field').value;


Yes ...But i found the solution....



var u_field = g_form.getValue('sys_display.<table name>.sla_id').toString();



Anyway Big thanks for the help..