I’m having difficulty accessing controls on a container with shared App methods.
Example:
In the first instance, suppose I am not using a scrollable area and have a screen called MyScreen with a field called MyField.
In an App Shared Method, I can easily write
MyScreen.MyField.text=“Some new text value”
Now suppose I put a scrollable area MyScrollableArea on MyScreen, with a container MyContainer containing MyField.
I would have expected that I could access this from my App shared method by writing something like:
MyScreen.MyScrollableArea.MyContainer.MyField.text=“Some new text value”
or perhaps
MyScreen.MyScrollableArea.Container.MyField.text=“Some new text value”
I have also tried creating App shared properties that are set by opening events on the scrollable area or container, but this doesn’t work either.
I’m not sure what I’m doing wrong here. Any advice would be appreciated please.
Hi Kevin, I’ve got a similar problem and still struggling with that - hope someone in the forum has experienced how to solve this.
PS: I would love to be able to access nested variables as they are organized and displayed in the debugger ( MyScreen.MyScrollableArea.MyContainer.MyField.text=“Some new text value” )
No - that works OK, and it is a fallback possibility for me. It would just mean that I have to duplicate all the controls on my container as App Shared Properties, which seems very clumsy.
If the field contents were persistent when the screens were closed an re-opened, this wouldn’t be a big deal, but I’m already having to save field contents when screens are deactivated and reactivated.