A combo box (drop down, select) is just an UI element. What is saved
in the database (and thus what you can query) is normally the selected
raw value(s) and maybe the list of supported raw values (what you can
choose from). Sometimes the labels (display values) are also stored in
the database. But I've never heard of storing the indexes, **unless**
the index is the value. Why do you need the index? The index is very
fragile as you can add new supported values and the order can changed.

Hope  this helps,
Marius

On Thu, Feb 12, 2015 at 2:19 AM, Jason Clemons <[email protected]> wrote:
> is this not possible?
>
>
>
>> On Feb 3, 2015, at 8:56 AM, Jason Clemons <[email protected]> wrote:
>>
>> Hello all,
>>
>> I have no issue getting the value of a combo box control in HQL using 
>> "ComboBoxName.value = 'foobar'" but is there a way to get the selected index 
>> of the combobox in my query?
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to