Hi, working using expressions in conditional region with dynamic values just not working.
Table dbdays:
id | userid | day1 | day2 | day3 | day4
1 20 1 1 1 1
API (show_days):
(Output) Database Query: Select * FROM dbdays WHERE userid = identity
UI:
App
>Serverconnect1 (API/show_days)
->Container
-->Row
--->Repeat (4)
---->Form
----->Conditional Region: serverconnect1.data.show.days[].day1 ==NULL)
------->More form objects.
Problem is when conditional region calls a different column from query in the same API, for example,
This works, doing this I always get the same column from table, because repeater of course take same expression from conditional region, and the four instances of the form call “day1”.
Conditional Region: serverconnect1.data.show.days[].day1 ==NULL
So I was suppusing that doing this could works, using the index from repeater, but not, the idea is that repeater (4) dynamically assign to each instance the propper number (1, 2, 3, 4 next to .day).
Conditional Region: serverconnect1.data.show.days[].day{{$index+1}} ==NULL
What I want to do is to hide each form using serverconnect and not a simple “display none” that make each form available if someone else with developers tools just untick the “display none” css.
Last updated: