On Nov 1, 2008, at 9:04 AM, Emanuele Gesuato wrote:

> 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).


        You need a list of strings to display, but can reference the selected  
value in one of three ways: StringValue (what is displayed), KeyValue  
(if the choices are linked to keys), or PositionValue (the position of  
the selected item in the list of choices).

        For something like this I would create two corresponding lists: your  
objects in one, and a string representation of them in the other. Use  
the string list for the control, and get the PostiionValue of the  
selection. This will be the index of the corresponding object in the  
first list.

-- Ed Leafe





_______________________________________________
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]

Reply via email to