Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: frontCall openFile on GWC-JS  (Read 13475 times)
Carlos L.
Posts: 20


« 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.
 


Code:
  
    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.
Four Js
Posts: 80


« Reply #1 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.
Reuben B.
Four Js
Posts: 1116


« Reply #2 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.

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Carlos L.
Posts: 20


« Reply #3 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

Sisavanh S.
Four Js
Posts: 80


« Reply #4 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.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines