![]() |
/scada-vis/schedulers doesn't display boolean objects with custom values - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2) +--- Thread: /scada-vis/schedulers doesn't display boolean objects with custom values (/showthread.php?tid=6077) |
/scada-vis/schedulers doesn't display boolean objects with custom values - florentd - 08.08.2025 Hello everyone, We notice that when we create an event on an object with a datatype 1, it is created in the scheduler_events table with a value of true or false. If custom values are added to objects with a datatype 1, they are created with the keys 0 = customValues1, 1 = customValues2. The problem is that in /scada-vis/schedulers, when opening an event associated with a Boolean object with custom values, the value of the event displayed and selected is therefore "". The problem appears to lie in eventShowControl, where the true/false values are not converted to 1/0 and are therefore not translated by customValues2/customValues1. This leads to more than just a display issue: if a user modifies any other property of the event without noticing the empty value, the event may be saved with "", which effectively sends 0/false to the object at the scheduled time — potentially causing unintended and critical behavior. To confirm the bug, we also changed the value of the events from true/false to 1/0 in scheduler_events and noticed that the problem no longer occurred. On the contrary, if we put true/false instead of 1/0, the problem appeared systematically. Could you advise on how best to handle or resolve this? Thank you for further help. Tested on firmware 20240426. RE: /scada-vis/schedulers doesn't display boolean objects with custom values - admin - 08.08.2025 Thanks for letting us know. This bug will be fixed in the next build. RE: /scada-vis/schedulers doesn't display boolean objects with custom values - florentd - 08.08.2025 Thank you for your quick reply. In the meantime, could you confirm that replacing the true/false event value with 1/0 does not cause any problems in the execution of scheduler_events? If so, we will probably set up a scheduled script to update the event values to 1/0. RE: /scada-vis/schedulers doesn't display boolean objects with custom values - admin - 08.08.2025 It should work with both true/false and 1/0. |