Hi..
I have a problem implementing the Table filter, I develop a Web Dynpro that shows in the table information from R/3, using the Bapi_Flight_Getlist.
In the method Sort work ok, but the problem is whit the Filter funtion.
I follow this tutorial, but whit some changes for to filter the table that get information from the Bapi_Flight_Getlist,
But I get the following Error when I try to filter:
com.sap.tc.webdynpro.progmodel.context.ContextException: DataNodeInfo(MyTableApp.Source.Output.Flight_List): value node is created without a reference
I have the following nodes:
Source = all data node
TableSet = Filter Values
FilterAtributes=Filter Atributes
Class MyTableAppView
public static void wdDoModifyView(IPrivateMyTableAppView wdThis, IPrivateMyTableAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime) { //@@begin wdDoModifyView if (firstTime) { IWDTable table = (IWDTable)view.getElement("Table_0"); wdContext.currentContextElement().setTableSorter( new TableSorter(table, wdThis.wdGetSortAction(), null)); wdContext.currentContextElement().setTableFilter( new TableFilter( table, wdThis.wdGetFilterAction(), (IWDNode)wdContext.nodeSource().nodeOutput().nodeFlight_List(), null ) ); } //@@end } //@@begin javadoc:onActionSort(ServerEvent) /** Declared validating event handler. */ //@@end public void onActionSort(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ) { //@@begin onActionSort(ServerEvent) wdContext.currentContextElement().getTableSorter().sort( wdEvent, wdContext.nodeFlight_List() ); //@@end } //@@begin javadoc:onActionFilter(ServerEvent) /** Declared validating event handler. */ //@@end public void onActionFilter(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ) { //@@begin onActionFilter(ServerEvent) wdContext.currentContextElement().getTableFilter().filter( wdContext.nodeSource().nodeOutput().nodeFlight_List(), wdContext.nodeSource().nodeOutput().nodeFlight_List()); //@@end }
Class MyTableApp
public void wdDoInit() { //@@begin wdDoInit() Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input(); wdContext.nodeSource().bind(input); execute_bapi(); //@@end }