Form with only buttons

Started by Jeremy G., August 06, 2015, 10:30:46 AM

Previous topic - Next topic

Jeremy G.

Hello,
I'm a beginner to genero & 4gl.
I'm on genero Studio 2.50.23 and I created a form with just 3 buttons, and I can't display it cause it directly closed without INPUT. So, how can I display it and make ON ACTION on the buttons?

Regards

Sebastien F.

Hello Jeremy,

If you have only buttons in your form, you need to control these with a MENU instruction + ON ACTION blocks:

https://4js.com/online_documentation/fjs-fgl-manual-html/?path=fjs-fgl-manual#c_fgl_menus_001.html

What do you want to do exactly?

You may consider to:

A) Implement a list view with DISPLAY ARRAY as the first dialog of your application, to let the user immediately browse in a list of records.

B) Use the MENU instructions with ATTRIBUTES(STYLE="dialog", ...) to get a typical popup box and let the user choose between several options.

https://4js.com/online_documentation/fjs-fgl-manual-html/?path=fjs-fgl-manual#c_fgl_menus_008.html

Seb

Jeremy G.

Thanks you very much,

MENU
ON ACTION [..]

works perfect.

Best Regards,

jg