function in one script can be called from other script?

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

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

function in one script can be called from other script?

#1

Postby t4nu » Tue Apr 26, 2016 9:36 am

Hi,
I have 2 forms, form A and form B.
The events in form A are handled in scriptA and form B events are handled in script B. There is also another script (scriptC).
Both form A and form B has scriptC in the shared Functions in their events tab.
In both of scriptA and scriptB there is a call to a function in scriptC.
scriptA can call function in scriptC without problem, but scriptB always give message:
com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler$RhinoScriptException: ReferenceError: "myfunctionName" is not defined.

My question is what can make a function within a script can be called from other script? I have tried to trace the include and other things but always end the same way.
Thanks in advance for the help.
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#2

Postby Segi » Tue Apr 26, 2016 4:12 pm

I'm not sure where ScriptC is located in terms of project location but I believe that you need to link the project that contains script C
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#3

Postby Segi » Tue Apr 26, 2016 4:13 pm

I'm not sure where ScriptC is located in terms of project location but I believe that you need to link the project that contains script C
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#4

Postby t4nu » Wed Apr 27, 2016 4:07 am

I think the the ScriptC is already linked, that's why it can be called from ScriptA without problem, it just scriptB cannot find it
Segi wrote:I'm not sure where ScriptC is located in terms of project location but I believe that you need to link the project that contains script C
0 x

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

#5

Postby Jon » Wed Apr 27, 2016 8:23 am

Here is the documentation on how relationships between entities are implemented, might help understand what's wrong http://www.ebasetech.com/ebase/doc/Work ... c406923882
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#6

Postby t4nu » Wed Apr 27, 2016 9:32 am

Thanks.
Jon wrote:Here is the documentation on how relationships between entities are implemented, might help understand what's wrong http://www.ebasetech.com/ebase/doc/Work ... c406923882
0 x


Who is online

Users browsing this forum: Bing [Bot] and 21 guests