Skip to main content
11-Garnet
March 5, 2024
Solved

ServiceInvoke Completed

  • March 5, 2024
  • 1 reply
  • 1841 views

Can I service invoke complete to refresh to a line chart?

Using ThingWorx 9.3.5

Best answer by Velkumar

Hi @VC_10938534 

 

Auto refresh will be a good option to fetch data from tables / external DB.

 

ServiceInvokeCompleted will overload the server and affect app performance. You can place a refresh button in Mashup with the last refreshed time so user can refresh data manually which will decrease the load on server / external DB.

 

Something like this :

Velkumar_0-1710218346229.png

 

/VR

 

1 reply

19-Tanzanite
March 6, 2024

Hi @VC_10938534 

 

Yes you can refresh the line chart data to load fresh data

 

/VR

11-Garnet
March 6, 2024

Could you please further elaborate on how we would bind this, and if possible with an detailed explanation of how it works? This is the current error I am receiving when i do a refresh to the line chart data to load fresh data.

VC_10938534_0-1709760866447.png

 

19-Tanzanite
March 7, 2024

Hi @VC_10938534 

 

Could you please tell me when you want to refresh the Line Chart data ?

 

Based on your binding, the AutoRefresh function will fetch data automatically based on the Interval. You don't need ServiceInvokeCompleted event to fetch data again which is going to overload the server. 

 

/VR