on 09-29-2008 9:46 AM
Hi Experts,
I have a requirement of removing all the rows in a table no matter whether they selected or not . How to do it throgh programming. I tried using the corresponding node.invalidate() method. but ! data is not going in the table at front end .
any help please
thanks
Suresh
Hi,
if table bind with value node use invalidate() .
if it is bind with modal node use,
IPrivate<view name>.ITaleNode iTableNode = wdContext.nodeTable();
for (int i = iTableNode.size(); i > 0; i--){
iTableNode.removeElement(iTableNode.getElementAt(i - 1));
}
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
Check the datasource property of table, if it is correctly binded to the node. Then just try with remove element in loop like
for(int i=0;i<nodeabc.size();i++
{
wdContext.node<<abc()>>.removeElement(wdContext.nodeabc().getabcElementat(i));
}
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
i hope u want to invalidate the table data upon some action...
jus make sure u r writing the code to invalidate in the correct place.
or if u dont want the data to be displayed at all(i,e as soon as the output screen is rendered) write the code in wdDoInit method.
Regards,
Satya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.