Sub Dialog Question

Started by Gary C., January 18, 2014, 02:59:01 PM

Previous topic - Next topic

Gary C.

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:


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

Sebastien F.

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