How to re-assign $parameter to panel reference in runtime, or set visibility of a panel reference?
Posted: Fri Jun 22, 2018 1:05 pm
Hi all,
We have some standard display objects which take their DPEs as dollar parameters. For example, digital displays, analogue displays, etc.
We have a situation where we need to change which DPE they are looking at in run time, or to fake something visually equivalent for the user.
This is because we have a redundant setup, where each server has its own driver status datapoints. We need to look at some DPEs in the driver status datapoint from the active server only. The active server could change at any time. In this case presenting both DPEs to the user is not appropriate.
I'm hoping to do one of the following:
1. Re-assign the $-parameters in runtime in a function called from a DPConnect. - I understand this is not possible.
2. Make two copies of the display object, one for each DPE, then set the Visibility of each object depending on the active server. - I've tried this but cannot figure out how to set the visibility of a panelRef. I've tried to set "visible" and "windowVisible" of the panelref but this doesn't seem to work. Is this possible somehow?
3. ? If neither of the above are possible I'm at a loss and would sincerely appreciate any suggestions.
Kind regards,
Angus Heyworth
We have some standard display objects which take their DPEs as dollar parameters. For example, digital displays, analogue displays, etc.
We have a situation where we need to change which DPE they are looking at in run time, or to fake something visually equivalent for the user.
This is because we have a redundant setup, where each server has its own driver status datapoints. We need to look at some DPEs in the driver status datapoint from the active server only. The active server could change at any time. In this case presenting both DPEs to the user is not appropriate.
I'm hoping to do one of the following:
1. Re-assign the $-parameters in runtime in a function called from a DPConnect. - I understand this is not possible.
2. Make two copies of the display object, one for each DPE, then set the Visibility of each object depending on the active server. - I've tried this but cannot figure out how to set the visibility of a panelRef. I've tried to set "visible" and "windowVisible" of the panelref but this doesn't seem to work. Is this possible somehow?
3. ? If neither of the above are possible I'm at a loss and would sincerely appreciate any suggestions.
Kind regards,
Angus Heyworth