Page 1 of 1
Mobile pick help..! SOLVED
Posted: Thu Feb 13, 2014 2:49 pm
by snop21
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
Re: Mobile pick help..!
Posted: Thu Feb 13, 2014 3:09 pm
by Klaus
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
Re: Mobile pick help..!
Posted: Thu Feb 13, 2014 4:24 pm
by snop21
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
Re: Mobile pick help..!
Posted: Thu Feb 13, 2014 4:31 pm
by Klaus
Hi Snop21,
snop21 wrote:Klaus,
You are the Best...!

)
I know!
snop21 wrote:-- Is possible to have smooth scroller on this?
Where "this" is what?
Best
Klaus
Re: Mobile pick help..!
Posted: Thu Feb 13, 2014 4:42 pm
by snop21
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
Re: Mobile pick help..!
Posted: Thu Feb 13, 2014 4:54 pm
by Klaus
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.
Re: Mobile pick help..!
Posted: Thu Feb 13, 2014 5:28 pm
by snop21
Klaus,
Thanks klaus..
Regards
-snop21
Re: Mobile pick help..!
Posted: Thu Feb 20, 2014 5:55 am
by FabricioRocha
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:
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
Easier to use, I think...
Regards!
Fabricio Rocha
Brasilia, Brasil
Re: Mobile pick help..!
Posted: Thu Feb 20, 2014 9:20 am
by snop21
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