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: GSForm usage issue.  (Read 16419 times)
David H.
Posts: 158


« on: August 20, 2019, 03:22:27 pm »

Hi all,

I have inherited a project which was built in GST. I would prefer to work via my own command line based toolset with it. In order to do that I need to convert the 4fd files back to per files. Being unfamiliar with GST I came across a post from Reuben I think mentioning that this can be done via the command line tool gsform. I have tried running this but don't seem to be having much success currently, so hopefully somebody can give me some pointers.

Code
  1. gsform -keep Login.4fd
  2. 1 file(s) contains error(s)

How do I see that the errors are?

TIA.
Reuben B.
Four Js
Posts: 1047


« Reply #1 on: August 20, 2019, 11:05:04 pm »

Good question.  The gsform -keep option http://4js.com/online_documentation/fjs-gst-manual-html/#gst-topics/c_gst_formdesigner_designform_012.html is actually compiling the form and leaving the intermediate .per behind.  So if you go into Studio, you may see the error in the Document Error tabs when the Form Designer has focus.  Similarly if you compile the form in Studio you may see the error in the Output tab.

What you might also be interested to know that in Genero 3.20 the ability to export the .4fd to .per was formally added.  See http://4js.com/online_documentation/fjs-gst-manual-html/#gst-topics/c_gst_formdesigner_convert_per_to_4fd.html.  So you don't need to run gsform, you can simply right click on the .4fd and select Export Text Form.  That tool will display an error in the Output tab


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


« Reply #2 on: August 30, 2019, 09:44:31 am »

Thanks Reuben. I stumbled through installing GST v3.20 and it was then very easy to export the 4FD files and there were no errors whatsoever.
Christine R.
Four Js
Posts: 401


« Reply #3 on: August 30, 2019, 02:04:00 pm »

Hi David,

To see the error you can use -M option for gsform  (as you have it for fglform or fglcomp).
Also if the .per already exists you will get an error.
Using the -i option of gsform, the existing file will be overwritten.
Try
Code
  1. gsform -i -M -keep Login.4fd

I hope this will help you.

Best regards,

Christine
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines