Hey,

2013/12/27 Muhammad Nasser Al-Noimi <mnno...@gmail.com>

>  Hi,
>
> Can any one give me a hint on how to use QueryModel in order to set items
> for WComboBox. I tried the following but something is wrong with it:
>
> class Country;
> typedef dbo::ptr<Country> CountryPtr;
> WComboBox* combo;
> ...
> dbo::QueryModel<CountryPtr> *model = new dbo::QueryModel<CountryPtr>();
> model->setQuery(session->find<Country>());
>

You need to add something like the following to map a field to a column:

model->addColumn("country");

Regards,
koen
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to