Need to bind Tree component label with dynamic values via scripting

Hi,

I'm using the Tree component in Perspective, and I'm dynamically setting its items property through a script (e.g., onStartup and on a Refresh button).

In the label field of each item, I’m concatenating values like name, tag value, and unit. It works, but the values only update when the script runs, so it's not ideal for live updates.

Since I'm dynamically generating the whole items structure, I want to bind each item's label to a tag value + unit through scripting — not manually in the designer.

Is there a way to add a binding to the label property of Tree items via script, so it updates automatically when the tag changes?

Thanks in advance :slightly_smiling_face:!
Gokulakannan.P

Consider leveraging property bindings directly on the items prop itself.
Move your logic from onStartup script to items prop. Add source data using Expression / Expression Structure and use Script transform for your logic. Construct each item's label using those live values, so the Tree reflects updates in real time.

No. Run your script at a repeating pace.