On Saturday 01 November 2008 07:04:47 am Emanuele Gesuato wrote: > Hello, > > I've an object "Customer" and i made a list of this type of objects: > they aren't bizobj because they are not retrieved in a table of a > database. I would like to add this list of object in a dList or dGrid > binding the attributes to specific columns; so in the first column is > showed the "name" attribute, in the second the "surname" attribute. > > When i click in a button i would like to retrieve the list of "Customer" > selected by the user, i don't want the list of strings selected but the > object "encapsulated" to every row. > > Is it possible in dabo in a simple way ? Keep in mind that the > "Customer" object is not a bizobj (but i could make it a bizobj but they > are not related to any table of database). > > > > Thanks, > Emanuele Gesuato http://paul.dabodev.com/doc/api/dabodoc/dabo.ui.uiwx.dListControl.dListControl.html
Check out the Keys and KeyValue. To my knowledge you can store anything you like in the list including objects. Although, I believe you would need some way to display the object KeyValue. Also try running dListControl (..dabo/ui/uiwx/dListControl.py) Then take a look at the code. John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
