Hi Team,
I have some data in array like Data=[[taskid=1,taskdone=true,comments="ABCD"],[taskid=2,taskdone=false,comments="XYZ"]]
Now I want to disable dynamically like, if in the array all indexes have taskdone=true, then only button will be enabled else it would b disabled.
disabled: and( something which check check if both all the indexes of array have taskdone value as false then only and() returns single true
Note: array size will be dynamic, sometimes it can be 3,4,5 acc. to interface so we need to setup disabled as per that.
Please help
Thanks
Discussion posts and replies are publicly visible
It think "not(and(local!data.taskdone))" should do it. Play a bit around to find the right combination. In general you can give and() any number of boolean values. Keep in mind that and() is not happy about null values.