Page 1 of 1

nuSetProperty() behaviour changed

Posted: Fri Feb 02, 2018 11:28 pm
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.

Re: nuSetProperty() behaviour changed

Posted: Sat Feb 03, 2018 12:35 am
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

Re: nuSetProperty() behaviour changed

Posted: Sat Feb 03, 2018 10:21 am
by alf1976
that worked.

thank you.

Re: nuSetProperty() behaviour changed

Posted: Sat Feb 03, 2018 2:53 pm
by admin
.