Problem with Property writer function in the graphic editor
Hello, i made a button with a validation function. If the validation is set on "Yes" a popup menu appears in order to validate the action. Else on "No" the action is realized directly. So i'm using 2 Property writer functions, the first, "Write1" is "On Demand" and called by Popup Menu when validation is on "Yes" and the second, "Write2" is "On Mouse Up" when validation is on "No". I need to write 20 values max, sometimes less. "Write2" function works fine even if in graphic editor i don't fill all the 20 targets and values. The problem is with the "Write1" function, if i don't fill the 20 targets and values, the function is not executed...
In the example, "Write2" works, but "Write1" does not. I don't know why...
ABB 800xA 5.1 RevE
Depending on what you're trying to do, there may already be a ready built solution for this. Have a look at "MultiSelectionDew" in the Process Graphics manual, section 8 advanced tutorial.
The MultiSelectionDew writes different values to the property depending on which button you select. You can use it as a Yes/No by writing 1/0 or as a Confirm/Cancel by writing value/nothing
Thank you for your answer but, i don't want to use a MultiSelectionDew, operators want to click only one time to set the values.
It's strange that the function works very well "OnMouseUp" but does not "OnDemand" if some targets are empties. I opened the diagnostic of the screen and there is no error.