how to create user defined function?

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

how to create user defined function?

#1

Postby t4nu » Fri Jan 15, 2016 5:08 pm

Hi,
I need to create a UDF which can be called from any part of the program, how to do it in Ebase?
Thank in advance for the help.
0 x

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

#2

Postby Jon » Fri Jan 15, 2016 6:22 pm

Do you mean on the server or on the client (browser)?
0 x

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

#3

Postby t4nu » Sat Jan 16, 2016 5:37 am

I think it on the server.
Here is what I want to create.
I have to change every date entered in the form (user enter the date) to Julian (to be precise to julian date format that can be used by JD Edwards) , so I think I have to create the function to convert that date to Julian and vice versa.
That's the reason behind my question.
Jon wrote:Do you mean on the server or on the client (browser)?
0 x

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

#4

Postby Jon » Mon Jan 18, 2016 9:04 am

Go to form properties > Events and add the script(s) containing any shared functions to Shared Functions. You have to do this for each form that needs access to your shared functions.
0 x

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

#5

Postby t4nu » Mon Jan 18, 2016 12:20 pm

Thank you.
I will try it.
Jon wrote:Go to form properties > Events and add the script(s) containing any shared functions to Shared Functions. You have to do this for each form that needs access to your shared functions.
0 x


Who is online

Users browsing this forum: No registered users and 26 guests