How Can I Trap an Empty Dataview Internal Event on a Child Task Used in a Subform? (Magic xpa 3.x)
The product definition is that the subform task's Empty Dataview event is supposed to be executed only when the task gets the focus.
Sometimes, though, you may need to implement specific subform logic that must be executed without the need to set the focus on the subform task, when the subform task is in Empty Dataview state.
In this case, you can do the following:
-
In the subform task, add a handler for the Post refresh by parent internal event, and create a block conditioned by the expression: EmptyDataview(0).
-
In this block, place the logic that you want to be executed when the subform task is in Empty Dataview state, without having to set the focus on the task form.
Note: Currently this internal event (Post refresh by parent) is only supported for Rich Client tasks.