Page 1 of 1
Popup properties
Posted: Tue Mar 27, 2018 3:36 pm
by Timo
nuCurrentProperties() "Returns all properties for the current Form as an object.". --> this works fine in an edit form. Then I open a popup window with nuPopup(....) and I wanted to get the properties of the popup form with nuCurrentProperties() but it will still get the properties of the edit form. How can I access the properties of the pop-up window?
Re: Popup properties
Posted: Wed Mar 28, 2018 2:45 am
by admin
Timo,
How and where are you running nuCurrentProperties()?
Steven
Re: Popup properties
Posted: Wed Mar 28, 2018 4:41 am
by Timo
I run it from the JavaScript console to investigate the popup form . Is there a command like nuCurrentPopup. nuCurrentProperties(), where nuCurrentPopup would represent the active modal window?
Re: Popup properties
Posted: Wed Mar 28, 2018 8:18 am
by admin
Timo,
You can change windows in the console.
console.PNG
Steven
Re: Popup properties
Posted: Wed Mar 28, 2018 10:05 am
by Timo
Thanks, I have learned something new again. In this way I can now also access the popup form from the main form:
Code: Select all
$('#nuWindow')[0].contentWindow.nuCurrentProperties();
Re: Popup properties
Posted: Wed Mar 28, 2018 11:45 pm
by admin
.