Thanks Pieter.  I'll take a closer look at the example.

Craig


On Fri, Mar 5, 2010 at 8:04 AM, Pieter Libin <[email protected]> wrote:

> Dear Craig,
>
> You could store the id field as a UserRole,
> see http://article.gmane.org/gmane.comp.web.witty.general/4582
>
> Kind regards,
>
> Pieter
>
>
> On 2 March 2010 03:10, Miller, Craig <[email protected]>wrote:
>
>> I have a Wt::Ext::ComboBox that is hooked up to a WStandardItemModel
>> "Column 2".  I'm having trouble figuring out how to get data from "Column 1"
>> in the model ("ID") when an element of the combobox ("Display Text") is
>> selected.
>>
>> E.g. my model contains:
>>
>> ID    DISPLAY TEXT
>> 1     Bugs Bunny
>> 2     Mickey Mouse
>> 3     Road Runner
>> 4     Kermit
>> 5     Bugs Bunny (duplicate name, different ID)
>>
>> My ComboBox is connect to column 1 and shows:
>> Bugs Bunny
>> Mickey Mouse
>> Road Runner
>> Kermit
>>
>> I have a SLOT that calls my method when an item in the combo box is
>> selected.
>>
>> In my method, It's easy to get "Bugs Bunny", but I need the ID that is
>> also stored in the model in order to uniquely resolve which "Bugs Bunny" has
>> been selected.  Any suggestions on how to do this, or which examples
>> demonstrate this?
>>
>> Thanks,
>> Craig
>>
>> --
>> Craig Miller
>> Geospatial Software Architect
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>


-- 
Craig Miller
Geospatial Software Architect
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to