DMXzone App Connect Support Product Page
Can I use the dynamic attribute 'show' more than once
Asked 08 Nov 2021 14:18:05
08 Nov 2021 14:18:05 Charles Knight posted:
Can I use the dynamic attribute 'show' more than once by combining multiple variables?
I want to only show records that have data in an image field and images less than 90pixels deep (recorded in image_height field)
What would the repeat string look like:
dmx-repeat:repeat1="serverconnect1.data.LimitedQuery.data" dmx-show="image_name & image_height <= 90"
Replied 08 Nov 2021 17:13:37
08 Nov 2021 17:13:37 Teodor Kuduschiev replied:
You can use multiple conditions in the show attribute.
In your case:
dmx-show="image_name && image_height <= 90"
this will evaluate to true, when there is any value in the image_name field AND the image_height value is less or equal than 90.
Replied 09 Nov 2021 11:15:34
09 Nov 2021 11:15:34 Charles Knight replied:
That's great thank you Teodor, worked like a treat...
Reply to this topic