Jacascript error

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

alabil
Ebase User
Posts: 10
Joined: Mon Aug 17, 2015 6:46 pm

Jacascript error

#1

Postby alabil » Wed Aug 19, 2015 12:55 pm

Hi, I am currently trying tutorial to get to know this software and and I getting this error on tutorial 1 when running the sample.
"com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler$RhinoScriptException: Java class "com.ebasetech.ufs.runtime.runtimeControls.texts.TextRuntimeControl__GenImpl" has no public instance field or method named "Text"

This is the script I use:
importPackage(com.ebasetech.xi.api);
importPackage(com.ebasetech.xi.services);

controls.TEXT1.text = 'Welcome ' + fields.FIRSTNAME.value;

Is there anything missing in the installation ?

THanks
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Aug 19, 2015 1:27 pm

I think you need two "texts":

Code: Select all

controls.TEXT1.text.text = 'Welcome ' + fields.FIRSTNAME.value; 
The error says that you can't assign a value to the text attribute of controls.TEXT1. This is correct because this is a Text object.
0 x

alabil
Ebase User
Posts: 10
Joined: Mon Aug 17, 2015 6:46 pm

#3

Postby alabil » Wed Aug 19, 2015 1:32 pm

Thanks, working OK
looks like my mistake, sorry, will be more careful next time.....
newbie on this stuff
0 x


Who is online

Users browsing this forum: No registered users and 13 guests