nuSetProperty() behaviour changed

Questions related to using nuBuilder Forte.

nuSetProperty() behaviour changed

Postby alf1976 » Sat Feb 03, 2018 7:58 am

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.
alf1976
 
Posts: 75
Joined: Wed Dec 27, 2017 5:28 am

Re: nuSetProperty() behaviour changed

Postby admin » Sat Feb 03, 2018 9:05 am

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
admin
Site Admin
 
Posts: 3157
Joined: Mon Jun 15, 2009 9:53 am

Re: nuSetProperty() behaviour changed

Postby alf1976 » Sat Feb 03, 2018 6:51 pm

that worked.

thank you.
alf1976
 
Posts: 75
Joined: Wed Dec 27, 2017 5:28 am

Re: nuSetProperty() behaviour changed

Postby admin » Sat Feb 03, 2018 11:23 pm

.
admin
Site Admin
 
Posts: 3157
Joined: Mon Jun 15, 2009 9:53 am


Return to General



cron