on 01-25-2010 4:00 PM
Table has a row count of 20. It has some 53 rows. So it displays in 3 sets of page. There is a option to select a row and remove it. The last set has 13 rows. When we select a row in last set and remove a row in the table. A blank disabled row is displayed. When we remove another row it displays another blank disabled row with no data. But size of the table is decreasing. How to overcome it. The blank row disappears when we go to another view and come back to the view which contains the table.
Hello
You can do this by writing the follwoing code after deleting the element.
wdContext.node<nodename>().moveFirst();
and also write the follwoing code in the wddodmodify method
IWDTable table = (IWDTable) view.getElement("<Table UI ID>");
int tr = wdContext.node<node name>().size();
if(tr < 20)
table.setVisibleRowCount(tr);
hope this will solve your problem..
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Just recall the update method which filled the node data again after each remove.
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sridhar,
Its a standard functionality.....
If I understand properly, when u remove the entry, then data in that entry was deleted (ie the row is empty).
After removing, try to select the removed entry (ie row with no data). You will not be able to select that row(empty) again.
If you delete the empty row in the 3rd set, moves to 1st or 2nd set with keys available on footer then you will observe that the empty row is no more exist. or if you come back from another iview, then you will observe the same (actually in these scenerios
the 3rd set is starting from 41 to 51 - total 10 rows)
If it is what your issue, then convey that it was a standard functionality....
Regards
Maha
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
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.