Is it possible to set list model in Picker?

44 views
Skip to first unread message

GenericJam

unread,
Jun 17, 2014, 8:26:38 AM6/17/14
to codenameone...@googlegroups.com
I would like to use a Picker for choosing a price so I would have a picker on the left of the decimal point 0 - 999 and on the right of the decimal 00-99.
In the current set up I can't see how to set the model to allow for this. 

The Picker works great if left alone (Dates by default).

Also, I think there may be a small bug in the GUI Builder as when the Picker is initially loaded, it has the possibility of a 'Constraint' in the Properties panel but if I try to select one apart from the default it gives me a pop up dialog: GUI Builder Error, undoing... . Then if I save the form close it and come back the 'Constraint' option is missing. I'm using Windows with Netbeans if that makes a difference.

Shai Almog

unread,
Jun 17, 2014, 11:36:32 AM6/17/14
to codenameone...@googlegroups.com
The picker maps to native ui on the device so the model won't work quite as expected. I didn't quite get the bug description, can you please clarify a bit?

GenericJam

unread,
Jun 17, 2014, 12:16:36 PM6/17/14
to codenameone...@googlegroups.com


Regarding the Picker, in the GUI Builder it says when I hover over Numeric Spinner that it is deprecated in favour of the Picker. Will this be implemented soon or is it too awkward to make it work with the native spinners?

Shai Almog

unread,
Jun 18, 2014, 1:05:31 AM6/18/14
to codenameone...@googlegroups.com
There seems to be a bug in the GUI builder when you click the Picker button in the GUI builder it places an auto complete text field by mistake.
This should work as expected if you drag the Picker into place instead of clicking the button.

Was that the issue you ran into?

GenericJam

unread,
Jun 18, 2014, 3:52:13 AM6/18/14
to codenameone...@googlegroups.com
Yes, that is the issue.

Shai Almog

unread,
Jun 18, 2014, 10:01:15 AM6/18/14
to codenameone...@googlegroups.com
It should be fixed for the next update in 2 weeks or so.
Reply all
Reply to author
Forward
0 new messages