Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Popup properties

Questions related to using nuBuilder Forte.
Post Reply
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Popup properties

Unread post 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?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Popup properties

Unread post by admin »

Timo,

How and where are you running nuCurrentProperties()?


Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Popup properties

Unread post 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?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Popup properties

Unread post by admin »

Timo,

You can change windows in the console.
console.PNG
Steven
You do not have the required permissions to view the files attached to this post.
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Popup properties

Unread post 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();
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Popup properties

Unread post by admin »

.
Post Reply