Hi ,
I am using SmartClient Version: v11.1p_2017-07-09/PowerEdition Deployment (built 2017-07-09)
I have a SectionStack with muliple SectionStackSection. On expanding and section header, i need to load dynamic data. I have code as below:
reportSectionStack = new SectionStack();
reportSectionStack.addSectionHeaderClickHandler(new SectionHeaderClickHandler() {
@Override
public void onSectionHeaderClick(SectionHeaderClickEvent event) {
if (event.getSection().getItems().length == 0) {
event.getSection().addItem(new ReportParameterFormView());
}
}
});
This works fine.
But if i click two headers one after other, even before the response for first section is set, the content of the first section also gets added to the section expanded later.
How can i set a seperate handler for each sectionHeader?
Regards,
Swati
I am using SmartClient Version: v11.1p_2017-07-09/PowerEdition Deployment (built 2017-07-09)
I have a SectionStack with muliple SectionStackSection. On expanding and section header, i need to load dynamic data. I have code as below:
reportSectionStack = new SectionStack();
reportSectionStack.addSectionHeaderClickHandler(new SectionHeaderClickHandler() {
@Override
public void onSectionHeaderClick(SectionHeaderClickEvent event) {
if (event.getSection().getItems().length == 0) {
event.getSection().addItem(new ReportParameterFormView());
}
}
});
This works fine.
But if i click two headers one after other, even before the response for first section is set, the content of the first section also gets added to the section expanded later.
How can i set a seperate handler for each sectionHeader?
Regards,
Swati