0

Change Asset Type in Panel with Script

Is there a way to change the Asset Type of a Panel with script? I have a View with different meters (fuel, flare, etc.). Each type of meter has a different Asset assigned (Fuel Meter, Flare Meter, etc.). That works well in one case where we're summing up all fuel flows. But they want an axiom display that shows flowrate and pressure for ALL meters, regardless of type. I'd like to avoid enabled multiple assets in Views because that would break most of my logic. So I was thinking, maybe have a ListBox with the different types in it and they can click to the type they want and the Panel would show all instances. Is that even possible? In the docs all I'm seeing is AssetInstance, which seems insuffient to accomplish this.

2 replies

null
    • smason
    • 8 days ago
    • Reported - view

    I don't think this is possible as changing the asset type of the panel would orphan all of the controls within the panel that are set to use the previous one. Unfortunately, I think the only way to do it is to double-type them and create a generic Meter type.

      • Real-Time Manager at CSE ICON
      • damon_vinciguerra.1
      • 8 days ago
      • Reported - view

      thanks. Feature request it is!

Content aside

print this pagePrint this page
  • 8 days agoLast active
  • 2Replies
  • 13Views
  • 2 Following