![]() | ![]() |
|
02-17-2012 05:23 AM
I have a main form with a grid that has a button control that brings forth an administration form with a grid.
the administration form has an add button and fields used to insert data on the grid .
But now i want the information on the administration form grid to populate the information on the main form's grid once the administration form is closed.
02-20-2012 01:27 PM
Hi Veronica,
you can add the following client side script code to the "On Form subisson" to send data to the main/initiating form:
var txtFieldValue = GetField("txtFieldName","");
var txtReturnFieldOnMainForm = "txtReturnedValue";
window.top.opener.SetField(txtReturnFieldOnMainFor m, "", txtFieldValue);
If you don't like to show the standard submit and cancel button on you admin form you can use the same code on a client side button instead.
That should work for you.
Best regards
Sascha Cutura
02-22-2012 11:13 AM
Similar to this, it is possible to use the 'opener' reference to click a hidden button on the parent form to force the BPM form to refill the grid with updated data. Sorry I don't have sample code at my fingertips at the moment.
02-22-2012 04:14 PM
... or if the field you are filling is set to 'has dependants' the form will refresh itself.
03-06-2012 02:26 AM
03-06-2012 06:03 AM - last edited on 03-06-2012 06:04 AM
What error message do you get?
What happens when you paste the evaluated FullURL into the browser window? Does that work fine?
Did you try to use the normal window.open instead window.showModal();
03-08-2012 07:17 AM
03-09-2012 04:04 AM
Below is an example which works fine to get the popup working:
var Value1 = GetField("Value1","");
var Value2 = GetField("Value2","");
var Value3 = GetField("Value3","");
var FullURL = '/Metastorm/eForm.aspx?Map=PopupDemo&Client=Extern
window.open (FullURL,"_blank",'status=no,width=260,height=260,
03-11-2012 01:15 AM
I have put together a fairly simple approach using a cookie here:
http://metastorm.processmapping.com.au/post/Lookup
![]() |
![]() |
![]() |
|
|
![]() |
![]() |
![]() |
















