Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Datasource-bound ListGrid objects with nested Java Lists

$
0
0
I've got an object returned from a Datasource that has a list of objects within. In a ListGrid, I've got records with columns for all the variables in each initial object. Upon record select though, I'd like to populate a second ListGrid with the nested inner list of objects as records available for editing. Is there a way to do this? I've looked through a bunch of examples (including the Master-Detail example in the Showcase, which seems most relevent), and I've looked through the DataBoundComponent docs noting the "ComplexFields and DetailFields" bits as interesting.

An example of my situation:

Budget {
Integer id;
String name;
Date startDate;
Date endDate;

List<Period> periods;
}

Period {
Integer id;
Date periodStartDate;
Date periodEndDate;
Double budgetAmount;
}

I want to be able to select a row from the "Budgets" grid and have the "Periods" grid populate with records for each Period in the Budgets' list. Is there a good related example or documentation I'm missing? Thanks!

Viewing all articles
Browse latest Browse all 4756

Latest Images

Trending Articles



Latest Images