Developing Web applications / Genero Web Client for JavaScript (GWC-JS) |
Moving your Genero Web Client for HTML5 (GWC-HTML5) applications to Genero Web Client for JavaScript (GWC-JS) involves some changes to the customization used, topics to help your migration efforts.
With GWC for HTML5, each application started with RUN or RUN WITHOUT WAITING opens a new tab in your browser. GWC for JavaScript provides a side bar panel. Each application started with RUN or RUN WITHOUT WAITING replaces the application in the current window. You can access the other applications and make them current by selecting them from the side bar panel. See GWC-JS side bar.
EDIT sfile1=formonly.sfile1, style="FileUpload";
DEFINE infile STRING CALL ui.Interface.frontCall("standard", "openFile", ["c:\\fjs\\doc","doc.pdf","*.pdf","Choose a file to upload"], infile)
Figure 1. GWC-JS File Upload Pop-up Window
TRY
CALL fgl_getfile(infile, /opt/myapp/received_files)
CALL fgl_winmessage("File uploaded", infile, "info") # Display a window with message after uploading
CATCH
ERROR sqlca.sqlcode, " ", sqlca.sqlerrm # Catch runtime execution errors from the SQLCA diagnostic record
END TRY