on 09-04-2006 10:30 AM
I have followed the below for table filtering, but on execution it does not display anything in the table....are there any more steps to be followed?
This is link mentioned above:
/people/subramanian.venkateswaran2/blog/2005/05/10/filtering-table-values-using-webdynpro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is the working code, I am using in one of our applications:
String filterUsername = wdContext.currentContextElement().getFilter_name();
if(filterUsername!=null && !filterUsername.equals("") && !filterUsername.equals("*"))
{
wdDoInit();
IPrivatePortalParam_view.IEmp_nodeNode myValues = wdContext.nodeEmp_node();
int n = myValues.size();
HashMap filterMap=new HashMap();
int val=0;
for (int i = n - 1; i >= 0; i--)
{
String value = (String) myValues.getEmp_nodeElementAt(i).getName();
if (value.startsWith((String) filterUsername))
{
IPrivatePortalParam_view.IEmp_nodeElement newElement = myValues.getEmp_nodeElementAt(i);
filterMap.put("elem" + val,newElement);
val++;
}
}
myValues.invalidate();
for(int j=0;j<val;j++)
{
myValues.addElement((IPrivatePortalParam_view.IEmp_nodeElement)filterMap.get("elem" +j));
}
}
else
{
wdDoInit();
}
Regards,
Srinivasan T
It works great, Thanks a lot Srinivasan!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.