Ignition Webdev

Hi, I have created an API using ignition Webdev module to receive data pushed by the SAP team via their endpoints. I need to perform conditional checks on this data, and if a specific condition is met , a popup must be triggered for a user to accept or reject. Could you provide a correct method for triggering a client popup from a Webdev endpoint? or Any other solution?

One solution would be to create a client message handler event script that uses the system.gui.messageBox function (or inputBox, confirm, etc) and then use the system.util.sendMessage function (or sendRequest) in your Webdev script to trigger said message handler with any data you’d like to pass to the pop-up.

It doesn’t require SessionId or pageId?

Is this vision or perspective ?
And which user should receive the popup ?
What if there's no user logged in ?

This seems like a very unreliable thing to do.
I'd store the event/data in a database, and let users review these events and accept/reject them.
Put a button somewhere that's always visible, bind the button to the table where the events are stored, make it poll every 30 seconds or whatever is acceptable for your use case, so users are notified when there are events to review.
You can even trigger a popup with an on value change script on the query's results.
But you need to store the events, not just send them to a user for validation.

6 Likes

It’s in perspective,