frontCall openFile on GWC-JS

Started by Carlos L., April 19, 2016, 12:54:08 PM

Previous topic - Next topic

Carlos L.

 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

Sisavanh S.

Hi,

Which GWC-JS version are you using?
The openFile frontcall is only supported since GWC-JS 1.00.14

Best regards,
Sisa.

Reuben B.

The internal version number 1.00.14 won't mean much to anyone.  Try GAS 3.00.11 which was last weeks maintenance release.
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero

Carlos L.

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


Sisavanh S.

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.