actionscript - How to display Picker with one item using Playbook's QNX -


I have a QNX picker control which is not displaying the selected value when the picker has only one object, for example :

  import qnx.ui.picker.Picker; Choosing Var: Picker = New Picker (); Var arr: array = [[label: "hi!"}]; Pick.dataProvider = New Data Provider ([New Dot Provider (arr)]; Select. Selected indices = [0]; AddChild (pick);   

The result is a blank picker. Maybe I'm doing something wrong when there are 2 items in the arr arrays, then the picker actually displays the selected index.

When I select only 1 item to choose, how do I display the selected item?

I am using Burrito, Playbook SDK 0.9.3.

Thanks in advanced!

I think you're going to populate the picker at some point to actually use , So that you can just use your existing array and add empty entries: var arr: Array = [[label: Hello! "}, {Label:" "}]; and then pop the array to delete the empty items before adding new data.

Comments