on 04-04-2008 6:15 AM
Using TableFilter.java from /people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter blog, on running the application it shows
{color.blue}java.lang.NullPointerException
at com.sap.demos.table4.TableFilter.setFiltersForColumns(TableFilter.java:117)
at com.sap.demos.table4.TableFilter.init(TableFilter.java:71)
at com.sap.demos.table4.TableFilter.<init>(TableFilter.java:48)
at com.sap.demos.table4.Table4_ComponentsView.wdDoModifyView(Table4_ComponentsView.java:145)
at com.sap.demos.table4.wdp.InternalTable4_ComponentsView.wdDoModifyView(InternalTable4_ComponentsView.java:447)
What could be wrong?
thanks in advance,
nikhil
Hi,
have you changed the value "null" in thw doModify method to new HashTable();
//@@begin wdDoModifyView
if (firstTime ) {
IWDTable table = (IWDTable) view.getElement("Table");
wdContext.currentContextElement().setTableFilter( new TableFilter(table, wdThis.wdGetFilterAction(), //wdContext.nodeSource(),null));
//change it to new HashTable();
wdContext.nodeSource(),new Hashtable();
}
//@@end
}
thanks and regards
fazal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to compare it with the source available as part of this article
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.