Hello Community,
Looking for a hint.
1) I have two DataTables Controls on the same screen (both filled with same External DataSource only filtering different data; I want to have both on a the same time).
2) Same Actions for both Controls are possible.
3) To reduce coding I thought I would save Controls into Local Variable and selecting with Radio which one is active.
UpdateContext({vl_TableInFocus:Blank()});
If(Self.Selected.Value = "In",UpdateContext({vl_TableInFocus:'DayInFocusTable-In'}));
If(Self.Selected.Value = "Out",UpdateContext({vl_TableInFocus:'DayInFocusTable-Out'}))
4) So my intenion doesn't work => system reports type type missmatch (i.e., Incompatible Type). Even if I clear the variable prior to change (as shown above).
<= imidiately after I have two out of three upper lines active, PA reports errors in program structure and App doesn't perform
<= if I use only second line (i.e., assigning DataTable to a variable once and calling variable later on) PA App performs as expected
Would it be possible in some other way (e.g., passing Control only as a name to a variable; if so, how to call it later on)?
Am I way off?!
Tnxs
br
@RMC-Pro