Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Gary C. on January 18, 2014, 02:59:01 pm



Title: Sub Dialog Question
Post by: Gary C. on January 18, 2014, 02:59:01 pm
Hi

Am I right in thinking that within a declarative dialog block one can only have one input, display array, input array statement?

What I am trying to do is something like:

Code:
DIALOG statistics()     
    DISPLAY ARRAY areaA[1].nodeA TO tble_1.*                               
                                                               
    END DISPLAY                                                                                         
    DISPLAY ARRAY areaA[2].nodeA TO tble_2.*                               
                                                             
    END DISPLAY                                                                                         
    DISPLAY ARRAY areaA[3].nodeA TO tble_3.*                               
                                                             
    END DISPLAY
END DIALOG

Will I need to split the above into multiple dialog blocks and use them via separate SUBDIALOG statements?

Thanks

Gary


Title: Re: Sub Dialog Question
Post by: Sebastien F. on January 20, 2014, 09:59:25 am
Yes, a declarative DIALOG block allows only one INPUT / DISPLAY ARRAY / INPUT ARRAY / CONSTRUCT definition.

See the syntax in the BDL 2.50 documentation (search for "DIALOG dialog-name"):
https://4js.com/online_documentation/fjs-fgl-manual-html/?path=fjs-fgl-manual#c_fgl_multiple_dialogs_003.html

In the next version, you will also be able to define a MENU.
We are completing the description of this instruction in the 2.51 doc.

Seb