Issue with Native Mobile Text Input iOS

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
erikbleifieldBUSpxdS
Posts: 7
Joined: Sun Jan 06, 2013 3:20 am

Issue with Native Mobile Text Input iOS

Post by erikbleifieldBUSpxdS » Sat Mar 01, 2014 9:48 pm

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!

splash21
VIP Livecode Opensource Backer
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

Post by splash21 » Sat Mar 01, 2014 10:14 pm

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.


:D
LiveCode Development & Training : http://splash21.com

erikbleifieldBUSpxdS
Posts: 7
Joined: Sun Jan 06, 2013 3:20 am

Re: Issue with Native Mobile Text Input iOS

Post by erikbleifieldBUSpxdS » Sun Mar 02, 2014 6:22 pm

Thanks - I went with this approach:

on openCard
send "mobileSetup" to me in 0 millisecs
end openCard

on mobileSetup

end mobileSetup

Post Reply

Return to “MobGUI”