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.
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 :
Fill in the desired information as Target on the left pane (like the desired Dashboard, Parameters, etc) :
Then copy to your application the code snippets generated on the right.
"values" with the desired values.