Source language: Translate to:

javascritpt variables to NeoAppBuilder variables

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

javascritpt variables to NeoAppBuilder variables

Postby David de Argentina » Tue Mar 10, 2015 1:09 pm

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
User avatar
David de Argentina
 
Posts: 1553
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: javascritpt variables to NeoAppBuilder variables

Postby Gaev » Tue Mar 10, 2015 2:50 pm

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.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada


Return to General NeoAppBuilder Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron