Skip to Content
0
Aug 29, 2023 at 11:19 AM

SAC Custom Widget Property Update Error

123 Views Last edit Aug 29, 2023 at 11:25 AM 3 rev

Hello SAP Community,

I was after a steer on where I am going wrong with a custom widget I am developing?

The actual widget works great however if I have multiple instances of it on the screen when I set the property of one of the instances it affects all instances.

All the widget does is create a div and populate it every second with the time so it's like a real-time clock, however I have added a couple of properties which are set from the builder *.js file of "offset" and "dst" to allow the user from the designer to 1. Set any offset (e.g +5 to give me the time in India) and 2. any Daylight Saving Time (e.g. +1 to give me BST).

As mentioned the widget works as expected until I change the value in the designer which bleeds into all instances of the control instead of just the one I am updating. I have attached the code to see if somebody could help me with this...

timejson.txttime-bpsjs.txttimejs.txt

Attachments

timejson.txt (2.2 kB)
time-bpsjs.txt (3.3 kB)
timejs.txt (2.4 kB)