Dynamically set number picker max?

118 views
Skip to first unread message

Niles Black

unread,
Apr 11, 2015, 9:12:42 PM4/11/15
to tas...@googlegroups.com
Hello! I was wondering if there was a way to dynamically set the maximum value for a number picker, prior to loading the scene. I searched around first, but couldn't find any solutions in the doc or elsewhere.

An example;

Say I've got a task that fetches a web page, then splits it into an array of 32 elements. So, %HTTPD(#) would be 32, for instance.

Is there a way to initialize a scene with a number picker that is dynamically set to have a 'Max' of 32? Or to initialize it and then set the 'Max' on my number picker to 32?

Thank you in advance for any help.

Sean Williams

unread,
Apr 12, 2015, 6:22:16 PM4/12/15
to tas...@googlegroups.com
Number Picker does not currently support variables in the Min, Max or default value. There have been several posts/threads before and the work involved wasn't warranted at the time, maybe Pent will take another look in the future.

I'd look for a different approach or a work around.

Niles Black

unread,
Apr 15, 2015, 6:54:27 PM4/15/15
to tas...@googlegroups.com
Ah well, thank you for the response. 

I've been trying to figure out a workaround for a while, seems like the only alternative is to have a number input (text field) and just say above it "enter a number 1 - X"... C'est la vie.

Thanks again.

On Sun, Apr 12, 2015 at 6:22 PM, Sean Williams <trendyte...@gmail.com> wrote:
Number Picker does not currently support variables in the Min, Max or default value. There have been several posts/threads before and the work involved wasn't warranted at the time, maybe Pent will take another look in the future.

I'd look for a different approach or a work around.

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/dUoXYyd0inE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Rich D

unread,
Apr 15, 2015, 7:38:56 PM4/15/15
to Tasker Google Groups Post


> I've been trying to figure out a workaround for a while, seems like the only alternative is to have a number input (text field) and just say above it "enter a number 1 - X"... C'est la vie.

I use a menu instead of a number picker. I prefer the way it works over a number picker.  You can generate any number of menu elements by using an array and just have the numerals as the labels. Then use %tap_label to get the number selected.  

Sean Williams

unread,
Apr 17, 2015, 5:02:13 PM4/17/15
to tas...@googlegroups.com
I use a menu instead of a number picker. I prefer the way it works over a number picker. You can generate any number of menu elements by using an array and just have the numerals as the labels. Then use %tap_label to get the number selected.


Nice idea Rich

Niles Black

unread,
Apr 25, 2015, 12:16:50 AM4/25/15
to tas...@googlegroups.com
That's a fantastic idea Rich, thanks!

On Fri, Apr 17, 2015 at 5:02 PM, Sean Williams <trendyte...@gmail.com> wrote:
I use a menu instead of a number picker. I prefer the way it works over a number picker.  You can generate any number of menu elements by using an array and just have the numerals as the labels. Then use %tap_label to get the number selected.


Nice idea Rich

Rich D

unread,
Apr 25, 2015, 9:32:18 AM4/25/15
to Tasker Google Groups Post


> That's a fantastic idea Rich, thanks!

Your welcome, I needed this "Way back in the days when we had to walk to school, In the snow , Up hill both ways" And tasker did not have all these fancy options like number pickers...   :)

The number picker looks a little nicer but with the menu you can set it to be able to see more selections when scrolling so it is faster IMHO.

Pent

unread,
Apr 27, 2015, 3:06:08 AM4/27/15
to tas...@googlegroups.com


Number Picker does not currently support variables in the Min, Max or default value.

Default is in next version :-)

Pent
Reply all
Reply to author
Forward
0 new messages