I would like to control the visibility of controls on screen with a variable.
For menu navigation I created a table with screens like this, and it is working:
UpdateContext({Tasks:
[
{title:"Restore group by search",screen:AllDeletedGroups,details:"Restore a deleted group or team by searchig for properties"},
{title:"Restore group by owner",screen:DeletedItems,details:"Restore a deleted group or team by owner"},
{title:"Update OneDrive Quota",screen:sOneDrive,details:"Read or set OneDrive Quota for a user"},
{title:"Search guest users",screen:GuestUsers,details:"Search guest users and view account details"},
{title:"View group owners",screen:Groups,details:"Search a group and view members and owners"}
]
})
This works fine. For DataCard visibility I tried the similar way (assuming that the screen in the formula above is some kind of type declaration):
UpdateContext({cards:
[{card:Title_DataCard1} ]
})
But I get an error: Name isn't valid, the identifier isn't recognized. The name is correct, I assume that the type is something else. Tried datacard too, didn't work either. Can somebody please give me a hint?
Thanks,
vm
Hi @vlm_mv ,
Do you want to use a context variable to control Cards Visible?
If you do, you could apply formula like below to :
UpdateContext({cVisible:!cVisible})
Please refer to below threads to learn more:
In addition, Screen/Form/DataCardValue controls could be used in that UpdateContext syntax but Card could not.
Hope this helps.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
User | Count |
---|---|
159 | |
86 | |
68 | |
63 | |
61 |
User | Count |
---|---|
209 | |
151 | |
93 | |
81 | |
69 |