Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Carlos L. on November 08, 2016, 05:39:39 pm



Title: subdialog actions call on dialog
Post by: Carlos L. on November 08, 2016, 05:39:39 pm
I'm developing a multiple dialog screen with import FGL of the subdialog file.
I want all the actions, dialog and subdialogs, to be always active.
The Problem is that I can't activate the subdialog specific actions without focusing context on the subdialog.

So my code goes like this:
File A:
Code:
DIALOG dialogA
  DISPLAY ARRAY arr_orders TO sr_ord.*
    ...
      ON ACTION subdiag_action

    ...
  END DISPLAY
END DIALOG
File B:
Code:
IMPORT FGL A

DIALOG dialogB
  SUBDIALOG A.dialogA
END DIALOG

So to make subdiag_action always active I can declare a on action on dialogB and make it global.
But that way I'll have to duplicate the code on subdiag_action.

Is there any way for dialogB to inherit dialogA actions as its own?
Another way would be to trigger subdiag_action from a dialogB on action block. Can that be done?