GSForm usage issue.

Started by David H., August 20, 2019, 03:22:27 PM

Previous topic - Next topic

David H.

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 (dos) Select
gsform -keep Login.4fd
1 file(s) contains error(s)


How do I see that the errors are?

TIA.

Reuben B.

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.

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.

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 (genero) Select
gsform -i -M -keep Login.4fd

I hope this will help you.

Best regards,

Christine