I'm having a problem using frontCall to open a file on GWC-JS on version 3.0.
The same code works fine when using GDC but on GWC-JS the following error occours:
Quote
FORMS statement error number -6332.
Front end function could not be found.
LET l_path = "D:\\Downloads"
LET l_name = "permcodes"
LET l_wildcards = "*.unl"
LET l_caption = "test"
CALL ui.Interface.frontCall("standard", "openFile", [l_path,l_name,l_wildcards,l_caption],[aPath])
The manual claims that openFile works on frontCall for GDC and GWC-JS so I must be doing something wrong.
Also, I want to trigger a file download(or file save) from the browser but frontCall saveFile is unavailable.
Is there an alternative that I can use in GWC-JS and GDC
Hi,
Which GWC-JS version are you using?
The openFile frontcall is only supported since GWC-JS 1.00.14
Best regards,
Sisa.
The internal version number 1.00.14 won't mean much to anyone. Try GAS 3.00.11 which was last weeks maintenance release.
Thanks for the fast reply.
my version is 3.00.06 and 1.00.06 with build number 201512141759.
So I'm due for a version update.
Thank you
As for saveFile, do you suggest any alternative to accomplish a file download? or transfer a file from the server to the user's desktop
Hi,
About the save file you can use fgl_putfile.
Depending on your browser configuration it will open the document or download it or ask where to save the file.
Best regards,
Sisa.