I need to preset the value of a B4XSwitch in B4i - I can get the value after it has been changed but cannot find anywhere on how to preset the value when the page displays - using B4XPages.
My mistake and my apologies - I had the view name in the layout different than the name for the data declaration. Your code works fine and now mine does too.