Mobile pick help..! SOLVED
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Mobile pick help..! SOLVED
hello guys..
I have a sample mobile selection here using Mobilepick my problem is I can't display the value only the string only the index.
I attached the stack here..
Any help very much appreciated..
Thank you..
-snop21
I have a sample mobile selection here using Mobilepick my problem is I can't display the value only the string only the index.
I attached the stack here..
Any help very much appreciated..
Thank you..
-snop21
- Attachments
-
- mobilelselection.livecode.zip
- (1.56 KiB) Downloaded 311 times
Last edited by snop21 on Fri Feb 21, 2014 4:51 am, edited 1 time in total.
Re: Mobile pick help..!
Hi Snop21,
1. you forgot to add a FIELD named "txtDisplay"!?
2. use the result to get the LINENUMBER of your optionlist!
This works:
...
put "one" & cr & "two" & cr & "three" & cr & "four" into optionList
mobilePick optionList, 1
put the result into x
## Here:
put line x of optionlist into tUserResult
answer tUserResult
...
Best
Klaus
1. you forgot to add a FIELD named "txtDisplay"!?

2. use the result to get the LINENUMBER of your optionlist!
This works:
...
put "one" & cr & "two" & cr & "three" & cr & "four" into optionList
mobilePick optionList, 1
put the result into x
## Here:
put line x of optionlist into tUserResult
answer tUserResult
...
Best
Klaus
Re: Mobile pick help..!
Klaus,
You are the Best...!
)
Thanks Klaus..
-- Is possible to have smooth scroller on this? incase alot of data inserted to it.. what method will I use?
Regards
-snop21
You are the Best...!

Thanks Klaus..
-- Is possible to have smooth scroller on this? incase alot of data inserted to it.. what method will I use?
Regards
-snop21
Re: Mobile pick help..!
Hi Snop21,
Best
Klaus
I know!snop21 wrote:Klaus,
You are the Best...!)

Where "this" is what?snop21 wrote:-- Is possible to have smooth scroller on this?

Best
Klaus
Re: Mobile pick help..!
klaus,
the data in the list using mobilepick. I tried to put alot of data to it and doesn't work anymore. What is in my mind is to put scroller to it.
But I dont know how to do it.
Thanks klaus
-snop21
the data in the list using mobilepick. I tried to put alot of data to it and doesn't work anymore. What is in my mind is to put scroller to it.
But I dont know how to do it.
Thanks klaus
-snop21
Re: Mobile pick help..!
I don't think this is possible, since the PICKER is provided by the underlying OS
and you cannot "wrap" a native scroller around it.
In that case you might need/want to make you own "picker" using a LIST FIELD or something.
and you cannot "wrap" a native scroller around it.
In that case you might need/want to make you own "picker" using a LIST FIELD or something.
Re: Mobile pick help..!
Klaus,
Thanks klaus..
Regards
-snop21
Thanks klaus..
Regards
-snop21
-
- Posts: 25
- Joined: Sun Jan 19, 2014 8:53 pm
Re: Mobile pick help..!
If it could be useful to anybody, I made a small function which receives as parameters as many items you would like to be shown in a mobilePick, and returns the selected item string:
Easier to use, I think...
Regards!
Fabricio Rocha
Brasilia, Brasil
Code: Select all
function PopMenu
set the itemDelimiter to return
if the paramCount = 0 then
exit PopMenu
end if
put "" into menuoptions
repeat with i = 0 to the paramCount
put param(i) into item i of menuoptions
end repeat
mobilePick menuoptions
put item (the result) of menuoptions into chosen
return chosen
end PopMenu
Regards!
Fabricio Rocha
Brasilia, Brasil
Re: Mobile pick help..!
hi FabricioRocha,
Thank you.. I got it working now..!
But my problem now is how can I put the data into the MobilePick? My Data came from my query.
I attached the the file.
In my file I retrieved data from query and put it into the datagrid but I really want to put it to the MobilePick instead.
Regards
-snop21
Thank you.. I got it working now..!
But my problem now is how can I put the data into the MobilePick? My Data came from my query.
I attached the the file.
In my file I retrieved data from query and put it into the datagrid but I really want to put it to the MobilePick instead.
Regards
-snop21
- Attachments
-
- QueryMoBilePick.livecode.zip
- sample
- (1.15 KiB) Downloaded 292 times