Hello,
I am trying to set visibility of several controls on the screen using the following condition, which is working fine for Edit and New form modes but when the form is opened in View mode, the value set in the variable is not coming into effect when the form is loaded at first, it works when the form is opened the second time.
I first wrote my condition in OnVisible() of the Screen, I also wrote an explicit call to Navigate to the Screen in OnView of SharePointIntegration to make sure that the OnVisible() was getting called, following is what I wrote on OnVisible()
If(DVEntity.Selected.Value ="Classic" && (drpTypeOfTeam.Selected.'Type of Team' = "Proposal") && Lower(drpDept.Selected.Title) in Lower(InternationDepartments), UpdateContext({ShowIDDGBDUControls:true}), UpdateContext({ShowIDDGBDUControls:false}));
If(DVEntity.Selected.Value ="Classic" && drpTypeOfTeam.Selected.'Type of Team' = "Proposal" && Lower(drpDept.Selected.Title) in Lower(DomesticDepartments), UpdateContext({ShowDomesticGBDUControls:true}),UpdateContext({ShowDomesticGBDUControls:false}));
And this is what i have in OnView()
Refresh('Teams Creation Form');
ViewForm(TeamRequestForm);
Navigate(FormScreen1,Transition.None);
I also tried moving the condition to OnView() instead and created Global Variable using Set() but the result was same.
This is what i have in Visible of one of the controls,
(ShowDomesticGBDUControls || ShowIDDGBDUControls)
Is there something that i am missing? again this is only happening when the form is opened in View mode for the first time for each item.
Any help is appreciated!
Thank you!
Deepa Moorjmalani