read the parameter in the called Form

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

alvinsanusi
Ebase User
Posts: 11
Joined: Thu Jan 05, 2017 11:13 am
Location: Jakarta
Contact:

read the parameter in the called Form

#1

Postby alvinsanusi » Mon Feb 06, 2017 12:23 pm

Dear Sir,

I have created a script like the following:

var autoNbr = getANumber("CN", "1", "");

// Call form to enter details of the client
var params = {};
params.CLNTPFX = "CN";
params.CLNTCOY = "1";
params.CLNTNUM = autoNbr;

form.callForm("ClientMaster", params);

Now, how to access the params in ClientMaster Form?

Please help,

Thank you.
0 x
It is what all eyes see and all fingers point to

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

#2

Postby Jon » Mon Feb 06, 2017 12:43 pm

You have to create the following as fields in the called form (ClientMaster) and set the "URL Parameter" property for each field:

CLNTPFX
CLNTCOY
CLNTNUM

Then you can just refer to the field value as e.g. fields.CLNTNUM.value.
0 x

alvinsanusi
Ebase User
Posts: 11
Joined: Thu Jan 05, 2017 11:13 am
Location: Jakarta
Contact:

Thank you

#3

Postby alvinsanusi » Tue Feb 07, 2017 11:16 am

Thank you Jon,

As always, you can easily provide me with some help.

Now I know how to do it.

Once again. Thank you.
0 x
It is what all eyes see and all fingers point to


Who is online

Users browsing this forum: Google [Bot] and 34 guests