Programmatically create vision binding

Is it possible to dynamically bind a component property? For example, at run time I want to take a drop-down list and populate it using one of several available SQL queries, so I’d like to somehow be able to bind the “data” property of the dropdown to an SQL query determined at runtime.

No supported way, though you can poke around the window’s InteractionController if you must.

Consider generating your dropdown list from a script. Or use a string property to contain your entire query and bind that to an expression that selects the appropriate text.

1 Like