I have created a rule that sets the visibility of a container based on whether data is available or not. This code works correctly in the web version, but it does not set the visibility to true for the Object Card Collection on mobile. I have called the rule on the onReturning event of the page, which means I need the Object Card Collection visibility to change after performing the test. Any suggestions on how to resolve this issue?
Code Sample :
if (PhysicalStatus == "Pending") {
PhysicalObservation.setVisible(true);
editControl.setVisible(true);
PhysicalNotestPerformed.setVisible(false);
} else if (PhysicalStatus == "Done" && ChemicalStatus == "") {
PhysicalObservation.setVisible(true);
PhysicalNotestPerformed.setVisible(false);
editControl.setVisible(false);
ChemicalNotestPerformed.setVisible(true);
}
else if(PhysicalStatus == "Done" && ChemicalStatus == "Pending"){
PhysicalObservation.setVisible(true);
PhysicalNotestPerformed.setVisible(false);
editControl.setVisible(false);
context.getPageProxy().getControl('SectionedTable0').getSection('SectionObjectTable0').setVisible(true);
}
else {
context.getPageProxy().getControl('SectionedTable0').getSection('NoTestPerformed').setVisible(true);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.