Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: subdialog actions call on dialog  (Read 6824 times)
Carlos L.
Posts: 20


« 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?
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines