Urlencode function not recognised in Ebase Builder v3.4

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

PaulCooper
Ebase User
Posts: 27
Joined: Tue Mar 12, 2013 9:49 am

Urlencode function not recognised in Ebase Builder v3.4

#1

Postby PaulCooper » Wed Apr 03, 2013 6:31 pm

The urlencode function in version 3.4 does not appear to be recognised by the language parser. (Isn't turned blue by the syntax highlighting.) I thought this might be because the application vendor had when adding their own custom function removed it (either on purpose or by accident). As we weren't supplied the FPL.jj and javacc.zip files in the vendor's install of ebase and I need to add my own custom function, I got them from the internet copy of v3.4 and built my own UFSLanguage.jar file. This new UFSLanguage.jar file also suffers from the same problem with urlencode. Is this a known problem? Any solutions?

Paul Cooper

Please note this issue applies to urldecode function too.
0 x

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

#2

Postby Jon » Thu Apr 04, 2013 9:47 am

Paul,

No idea why these functions are missing. They've been in the code base for a long time.

In general to add a function, you don't need to update the FPL.jj file - doing this means that the script will parse successfully when you click the check button. But this is not required for execution. To execute a function successfully, you just need to include the compiled class on the server's classpath and add the function (Tools -> Functions). So if you're willing to tolerate some syntax error messages in the designer, you can skip the FPL.jj step.

Regards
Jon
0 x

PaulCooper
Ebase User
Posts: 27
Joined: Tue Mar 12, 2013 9:49 am

#3

Postby PaulCooper » Thu Apr 04, 2013 10:31 am

Jon,

Yes it is an odd one. I wasn't aware that the FPL.jj update for custom functions is only a prefered but non-essential step. I will try out using it anyway and see if it works.

Thanks,

Paul
0 x

PaulCooper
Ebase User
Posts: 27
Joined: Tue Mar 12, 2013 9:49 am

#4

Postby PaulCooper » Mon Apr 08, 2013 4:26 pm

I got to the bottom of this. The Urlencode and Urldecode functions had been removed from the Maintain Functions entries. I had to look through the UFS.jar file's classes to get the correct class name and used the help files to get the fields and was able to put them back.
0 x


Who is online

Users browsing this forum: No registered users and 6 guests