Four Js Development Tools Forum

Discussions by product => GAS and GBC => Topic started by: Carlos Lopes on April 19, 2016, 12:54:08 PM

Title: frontCall openFile on GWC-JS
Post by: Carlos Lopes on April 19, 2016, 12:54:08 PM
 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
Title: Re: frontCall openFile on GWC-JS
Post by: Sisavanh SENGSAVANH on April 19, 2016, 02:19:29 PM
Hi,

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

Best regards,
Sisa.
Title: Re: frontCall openFile on GWC-JS
Post by: Reuben Barclay on April 19, 2016, 02:35:53 PM
The internal version number 1.00.14 won't mean much to anyone.  Try GAS 3.00.11 which was last weeks maintenance release.
Title: Re: frontCall openFile on GWC-JS
Post by: Carlos Lopes on April 19, 2016, 03:54:17 PM
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

Title: Re: frontCall openFile on GWC-JS
Post by: Sisavanh SENGSAVANH on April 21, 2016, 05:35:14 PM
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.