Welcome to the nuBuilder Forums!

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

nuSetProperty() behaviour changed

Questions related to using nuBuilder Forte.
Post Reply
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

nuSetProperty() behaviour changed

Unread post by alf1976 »

I was using nuSetProperty to set a hash cookie on the main form. Then i was using this value on a browsedit form displayed within an iFrame.

So on the main form i used.
var p = nuCurrentProperties()
nuSetProperty('CurrentCompanyEditID',p.record_id);

then within the iFrame form i used
var p = nuCurrentProperties()
p.hash.CurrentCompanyEditID
to access this variable.

During some recent update the hash section on the properties has disappeared and now i cannot access the variable.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: nuSetProperty() behaviour changed

Unread post by admin »

Andrew,

You are correct, I did change something.

Try this in the iFrame...

Code: Select all


var p = parent.nuCurrentProperties()

console.log(p.CurrentCompanyEditID);

It will be a lot simpler.

Steven
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

Re: nuSetProperty() behaviour changed

Unread post by alf1976 »

that worked.

thank you.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: nuSetProperty() behaviour changed

Unread post by admin »

.
Post Reply