Hey Neil,

One solution is to use WSignalMapper class.
Another solution is to make some methods which provides
information about selected rows and call them from the slot
connected to you WPushButton clicked signal.

2010/10/31 Neil DSouza <[email protected]>

> Hi All,
>
>     I have multiple records from a database which I want to display in a
> table,
> which has a push button in the last column. The records from the database
> in the
> table are a few, key summary fields. However when the button is pushed I
> want to
> load the entire record data into a form - which is another widget on my
> page. I
> have implemented a functionality like this before in ASP.Net - there the
> button
> could store some state - like the primary key of the record. When the
> callback
> function was called - it retrieved the primary key from the button and made
> a
> call to the database select function. However neither the WPushButton nor
> the
> Ext::Button have something which can store some state. Im sure of course
> there
> must be some easy way this can be implemented - can anyone point me in the
> right
> direction?
>
>  Many thanks for your help in advance
>
> Kind Regards,
> Neil
>
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>



-- 
// Dmitriy.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to