Page 1 of 1

javascritpt variables to NeoAppBuilder variables

PostPosted: Tue Mar 10, 2015 1:09 pm
by David de Argentina
Hi all,

Does any know how to convert javascritpt variables to NeoAppBuilder variables ?

any tryes i did does not work.

Any ideas ?

Thanks in advance,
David de Argentina

Re: javascritpt variables to NeoAppBuilder variables

PostPosted: Tue Mar 10, 2015 2:50 pm
by Gaev
David de Argentina:

Does any know how to convert javascritpt variables to NeoAppBuilder variables ?


Currently, you have two separate namespaces.

You get the value of a NeoAppBuilder variable using a Javascript command with something like ...
Code: Select all
BeginJS
jsFirstName = $rootScope.firstName;
EndJS

... the current value of NeoAppBuilder variable called firstName is placed in the Javascript variable called jsFirstName ... but any subsequent changes to the NeoAppBuilder variable are not kept in sync within the Javascript variable.

You update the value of a NeoAppBuilder variable using a Javascript command with something like ...
Code: Select all
BeginJS
$rootScope.lastName = "Obama";
EndJS


Can you explain what you mean by "convert" ? ... do you want to get/update the value of a Javascript variable using a NeoAppBuilder command ?

Remember that Javascript variables can be Global or Local in scope ... the latter only exist when the corresponding Javascript function is being serviced.

Please provide a clear example of what you are trying to achieve.