Scenario

You want to instantly send values inside a Widget, but you don’t want to configure this Widget with a Data Source.
For example, the data does not exist in storage, but your application holds it and sends it live into the published Widget.

Example :
You have a Circular Gauge widget that is published on Alpana Server, but configured with no Data Source.
You have an ArchestrA object with some UDA that is not stored to Historian.
The object has a script that runs periodically every 3s to send the value from the UDA into the Circular Gauge widgets.
This value is immediately displayed to users who have the dashboard open at that time.

Preparing the target Widget

First, you need to configure the Widget.
See Binding to Real-Time Data to configure the Widget to accept the real-time data.
In this configuration, you define the Widget graphical properties and which fields will receive data. You don’t actually connect the Widget to a Data Source.

Generating Code snippets

Finally, you need to send data through the API.

You can find code snippets by navigating to API > Remote Actions and selecting Action Real Time Widgets Data :

API Remote Action RealTimeWidget select

Fill in the desired information as Target on the left pane (like the desired Dashboard, Parameters, etc) :

API Remote Action Refresh target

Then copy to your application the code snippets generated on the right.

Replace the "values" with the desired values.

Last modified: Apr 24, 2020

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment