Hi,
I am trying to use the Call form FPL command to call a "subform" with some parameters, but when I try to verify the script the verify fails.
I tried the example in the documentation
call form PRODUCT_DETAIL PRODUCT_ID=PRODUCT_ID,NEWITEM='Y';
This fails on verify with the message:
Encountered "PRODUCT_ID" at line 20, column 34.
Was expecting:
";" ...
If I use call form without any parameters, then this verifies ok, so I can get around this problem by using session variables to pass the values.
However, has anyone used the Call Form command with parameters successfully in ebase, or is this a known bug?
It would be quite nice to be able to pass parameters to the called form from the calling form.
Thanks in advance.
Problem with Call Form
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 2
- Joined: Mon Oct 05, 2009 2:55 pm
- Location: Hampshire County Council
- Joost
- Ebase User
- Posts: 49
- Joined: Fri Sep 14, 2007 6:14 pm
- Location: The Netherlands
Re: Problem with Call Form
This works flawless for me in v340-10022009.Sumant wrote:However, has anyone used the Call Form command with parameters successfully in Ebase, or is this a known bug?
Have you tried running the form with call form parameters? Perhaps only the verify is failing and you just need a new fpl.jj.
0 x
-
- Ebase User
- Posts: 94
- Joined: Fri Sep 14, 2007 12:18 pm
- Location: The Netherlands
- Contact:
Re: Problem with Call Form
I have just checked with "goto form" and "call form" using 3.4.0 build 18092009. The 1st verifies, the 2nd does not.
The code does work even though it does not verify in the designer.
You can submit this to Ebase as a bug or adapt your FPL.jj file using the "goto form" as a template (or both).
To adapt your FPL.jj file, see the "Extending FPL Language Syntax" under "Custom Functions" in your help file.
Update: Looking at my FPL.jj, the call and goto form are already equivalent. Maybe a recompile is the only thing necessary.
The code does work even though it does not verify in the designer.
You can submit this to Ebase as a bug or adapt your FPL.jj file using the "goto form" as a template (or both).
To adapt your FPL.jj file, see the "Extending FPL Language Syntax" under "Custom Functions" in your help file.
Update: Looking at my FPL.jj, the call and goto form are already equivalent. Maybe a recompile is the only thing necessary.
0 x
-
- Moderator
- Posts: 184
- Joined: Tue Sep 11, 2007 8:58 am
-
- Ebase User
- Posts: 2
- Joined: Mon Oct 05, 2009 2:55 pm
- Location: Hampshire County Council
Who is online
Users browsing this forum: No registered users and 1 guest