Data Detail - possible to change the dynamic source based on a condition?

Hey all,

I have a data detail that shows data from a repeat.
Some of these repeats will have missing values (on purpose).

What I’d like to do - is when a BS5 canvass is opened, check for a value in the data and if it exists do nothing, if it doesn’t exist change the data source of the data detail.

I’ve tried simple changing the values of a variable between the two different data sources but that didn’t work.

I have also tried using a terniary in the dmx-bind:data="" section for the data source of the data detail with no luck, e.g.:

dmx-bind:data="fieldvalue ? 'datasource1' : 'datasource2'"

Appreciate any ideas here!

Community Page
Last updated: