Hi,
I´m having problems with clearing rowchildren, when dynamically generating the contents of a popup.
As result, the rowchildren are not cleared. After each run of the function I get another instance of the row.
I tried a workaround like, without success -->
http://www.casabacdemo.com/forum/posts/list/21.page
My code is:
Code:
QueryParserAdapter qpa = QueryParserAdapter)getOwningDispatcher().getDispatchedBean(QueryParserAdapter.class);
qpa.init(replaceMents);
popUp = ModalPopup.createInstance();
popUp.open("/" + de.medint.reports.main.Constants.PAGE_QUERYPARSER, "Query Content", 1024, 768, this);
popUp.setContentReplaceDrillDown(getOwningDispatcher().getContentReplace());
Init:
Code:
rc.getChildren().clear();
this.replacements = replaceMents;
return;
In the opening popup the rows setter is:
Code:
public void setRc(ROWComponent rowc) {
if(rowc == rc)
return;
else
this.rc = rowc;
buildTheBar();
}
buildTheBar():
Code:
rc.getChildren().clear(); --> does not clear!!
... create Grids...
I´d like to create the Grid new each time. What am I doing wrong?
Tommy