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

Report
All responses (
Answers (