cancel
Showing results for 
Search instead for 
Did you mean: 

Table dispays a blank row when we remove a row from it...

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

gill367
Active Contributor
0 Kudos

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

former_member185086
Active Contributor
0 Kudos

Hi

Just recall the update method which filled the node data again after each remove.

Best Regards

Satish Kumar

Former Member
0 Kudos

Hi Satish

Thanks for your reply.

I had recalled update method after removing the row. The row is removed but the table had last row is blank with no text. Even the row count is reducing.

Thanks

Sridhar Ramanan

Former Member
0 Kudos

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