I am trying to load data into several Native Mobile Text Input fields from within an OpenCard event.
It does not appear to work.
The same code works in a button I have on that card and press after the card has loaded.
Is there some reason that I cannot set data into a Native Mobile Text Input field from an OpenCard event? Is there something that must be done to initialize the Native Text Input fields first?
My code is very simple:
on opencard
set the mgText of group "Fact1" to "1"
set the mgText of group "Op1" to "2"
set the mgText of group "Fact2" to "3"
end open card
Thanks!
Issue with Native Mobile Text Input iOS
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
-
- Posts: 7
- Joined: Sun Jan 06, 2013 3:20 am
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: Issue with Native Mobile Text Input iOS
Hi, check out the following thread - http://forums.runrev.com/viewtopic.php?f=54&t=19313
The native controls are created when the openControl messages fire, but that happens after openCard.
The native controls are created when the openControl messages fire, but that happens after openCard.
LiveCode Development & Training : http://splash21.com
-
- Posts: 7
- Joined: Sun Jan 06, 2013 3:20 am
Re: Issue with Native Mobile Text Input iOS
Thanks - I went with this approach:
on openCard
send "mobileSetup" to me in 0 millisecs
end openCard
on mobileSetup
end mobileSetup
on openCard
send "mobileSetup" to me in 0 millisecs
end openCard
on mobileSetup
end mobileSetup