Skip to main content
15-Moonstone
July 13, 2021
Solved

Best practice for showing icon on service calls.

  • July 13, 2021
  • 2 replies
  • 959 views

Hello,

Needed some opinion on loading the status icon based on the properties current state.

Is it performance efficient to load the status icon as part of the service output or create a state definition and only out put the value from the service and the icon is decided by the state definition.

My thinking is that the state definition is loaded once on launch and icon is rendered based on the value, instead of loading the icon as a service output on every call.

 

Thank you!

 

 

Best answer by PaiChung

I believe what you mention is correct. I would use State Based Definitions so the icons would only be loaded once, vs every time you run the service.

2 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
July 15, 2021

I believe what you mention is correct. I would use State Based Definitions so the icons would only be loaded once, vs every time you run the service.

sbt15-MoonstoneAuthor
15-Moonstone
July 15, 2021

Thanks you!!