subdialog actions call on dialog

Started by Carlos L., November 08, 2016, 05:39:39 PM

Previous topic - Next topic

Carlos L.

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:

DIALOG dialogA
  DISPLAY ARRAY arr_orders TO sr_ord.*
    ...
      ON ACTION subdiag_action

    ...
  END DISPLAY
END DIALOG

File B:

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?