Currently, I am involved in a project using Kony and have encountered an issue where I need to hide a button based on a certain condition.
I have implemented the code provided below, which functions correctly on Android devices but not on iOS. I have gone through the code with a debugger and everything seems fine. I am able to retrieve the expected values, either True or False, during debugging. However, the button does not hide based on the condition on iOS devices.
Initially, I set the visibility of the button as "True" and call the Service function in the Postshow of the form. It should evaluate the condition during this call and modify the visibility property of the button accordingly.
The code I am using follows the MVC Pattern:
if(condition==true) //some condition
{
this.view.BtnBack.isVisible=False;
}
else
{
this.view.BtnBack.isVisible=True;
}
Note: The above code functions on Android and SPA Android platforms, but encounters issues on iOS devices.
Looking for assistance!