copy and paste text from a field in a LC mobile app? - Solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
copy and paste text from a field in a LC mobile app? - Solved
How can I copy and paste text from a field in a LC mobile app to another app on my phone, like a text editor or google search engine?
Thanks,
David
Thanks,
David
Last edited by DR White on Thu Feb 09, 2023 3:02 pm, edited 1 time in total.
Re: copy and paste text from a field in a LC mobile app?
Hi David,
native controls support this out of the box, I think.
For Android just use the "Android Native Field" widget and on iOS use:
The latter wll also work on Android.
Best
Klaus
native controls support this out of the box, I think.
For Android just use the "Android Native Field" widget and on iOS use:
Code: Select all
mobilecontrolcreate "input", "jeeehaw"
Best
Klaus
Re: copy and paste text from a field in a LC mobile app?
Klauss,
I will be trying that in a couple of days. I need to renew my Apple profile to be able to test app on phone.
Thanks
David
I will be trying that in a couple of days. I need to renew my Apple profile to be able to test app on phone.
Thanks
David
Re: copy and paste text from a field in a LC mobile app?
Sorry, forgot an important information: Your USER has to copy the text manually!
There is no way currently to do this by script.
There is no way currently to do this by script.
Re: copy and paste text from a field in a LC mobile app?
Klauss,
I got my app running on my Android tablet and works great, but I cannot copy the text from fld "myFirstInputField" using code:
put "input" into tControlType
mobileControlCreate tControlType, "myFirstInputField"
But that is OK the Android Widget works great!
Thanks,
David
I got my app running on my Android tablet and works great, but I cannot copy the text from fld "myFirstInputField" using code:
put "input" into tControlType
mobileControlCreate tControlType, "myFirstInputField"
But that is OK the Android Widget works great!
Thanks,
David
Re: copy and paste text from a field in a LC mobile app? - Solved
Klauss,
Works great, except for one thing.
I cannot put put text from a variable into the widget.
I tried :
put Test_4 into text of widget "Android Native Field_1" - Did Not work
put Test_4 into widget "Android Native Field_1" - Did Not work
I am not familiar with using widgets.
I went to the dictionary, but did not find much info there.
What is the proper format?
Thanks,
David
Works great, except for one thing.
I cannot put put text from a variable into the widget.
I tried :
put Test_4 into text of widget "Android Native Field_1" - Did Not work
put Test_4 into widget "Android Native Field_1" - Did Not work
I am not familiar with using widgets.
I went to the dictionary, but did not find much info there.
What is the proper format?
Thanks,
David
Re: copy and paste text from a field in a LC mobile app? - Solved
"the text..." is a property not a container, so this will do:
Code: Select all
set the text of widget "Android Native Field_1" to Test_4
Re: copy and paste text from a field in a LC mobile app? - Solved
That works beautifully!!
I thought about trying that, but some reason I convinced myself it would not work.
Thank you so much!!
David
I thought about trying that, but some reason I convinced myself it would not work.
Thank you so much!!
David