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
Jacascript error
Moderators: Jon, Steve, Ian, Dave
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
I think you need two "texts":
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.
Code: Select all
controls.TEXT1.text.text = 'Welcome ' + fields.FIRSTNAME.value;
0 x
-
- Ebase User
- Posts: 10
- Joined: Mon Aug 17, 2015 6:46 pm
Who is online
Users browsing this forum: No registered users and 13 guests