Hello,
I implemented the table filter for my little project. All is working fine, untill i want to add a new row to the table. Following scenario:
1. filter something in the table, after this, clear filter (just make it empty by hand),
2. after this, insert a new row using a button or the row creator of Web DynPro.
3. Exception: ContextException: must not modify a filtering node, modify the origin
I have Netweaver 7.2 CE sp 05 working on Windows. I used the TableFilter from the demokit and the manual from [SAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0cf0997-2e08-2d10-b08e-964a2c04c47a?QuickLink=index&overridelayout=true].
What can i do to resolve this problem?
My implementation of adding a row:
In the view:
public void onActionCreateTemplateItem(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionCreateTemplateItem(ServerEvent)
wdThis.wdGetTemplateItemControllerController().createNewTemplateItem();
//@@end
}
Controller:
public void createNewTemplateItem( ) {
//@@begin createNewTemplateItem()
ITemplateItemsElement element = wdContext.nodeTemplateItems().createTemplateItemsElement();
element.setDeleteEnabled (true );
element.setReadOnly (false);
element.setReviewerButtonText ("Show");
setStatus (element);
setOwner (element);
setValues (element);
setClasses (element);
setReviewer (element);
wdContext.nodeTemplateItems().addElement(element);
//@@end
}
The error occurs at the last line. If I use createAndAddTemplateItemsElement(), the error is there.
Kind regards
Karsten