I have an expanding row ListGrid with nested items that are DynamicForms, as shown in the SmartClient showcase.
The main difference with the showcase is that I explicitly construct the form instead of letting the nested DS generate its layout for me. Ex.:
When I need to override the getExpansionComponent() function of the ListGrid in order to set the nested forms, I do not know which function I should use to display the nested form that matches the current record.
In other words, I am looking for the equivalent for a form of the fetchRelatedData() for a ListGrid. What should I use?
Thank you.
Using SmartGWT LGPL 5.0 in IE.
The main difference with the showcase is that I explicitly construct the form instead of letting the nested DS generate its layout for me. Ex.:
Code:
final DynamicForm docRepoForm = new TransactionBasicForm(); docRepoForm.setGroupTitle("Document Repository"); TextItem repoUuid = new TextItem("repouuid"); repoUuid.setTitle("Repository Unique ID"); repoUuid.setWidth(400);
Code:
@Override protected Canvas getExpansionComponent(final ListGridRecord record) { // create the nested widget (this is a layout of forms) final SiteWidget siteWidget = new SiteWidget(); //HERE: how to fetch data related to the current record? return siteWidget; }
In other words, I am looking for the equivalent for a form of the fetchRelatedData() for a ListGrid. What should I use?
Thank you.
Using SmartGWT LGPL 5.0 in IE.
Comment