cancel
Showing results for 
Search instead for 
Did you mean: 

Table VisibleRowCount

sweetysingh
Participant
0 Kudos

Hi,

I am using WebDynpro Table UI, in that I need to show only 4 Rows. I am using TableStandardCell Variant in my table.

I have set the following Properties of Table:

VisibleRowCount : 4

Selection Mode : none

selectionChangeBehaviour : auto

scrollableColCount : -1

rowSelectable : true

readOnly : false

footerVisible : true

fixedTableLayout : false

firstVisibleRow : 0

design : standard

compatibilityMode : auto

But run time in my table its showing 5 Rows, buttom of the table one blank row is showing (Table size is 4 only).

I dont want to show that blank row.

Please advice.

Thanks in advance..

Accepted Solutions (1)

Accepted Solutions (1)

former_member185879
Active Contributor
0 Kudos

Hello Sweety,

As it is the TableStandardCell which is inserted in Table Column, we will not get the property of Visible. So, try destroying the Cell in Modify View. Try the following Code.

IWDTableStandardCell cell = (IWDTableStandardCell)view.getElement("Id of Table Standard cell");
          cell.destroy();

Regards

Nizamudeen SM

sweetysingh
Participant
0 Kudos

Hi Nizamudeen SM,

Thanks for your reply..

I tried as you suggested, It worked for me.

Thanks

Sweety

Answers (2)

Answers (2)

former_member182534
Active Participant
0 Kudos

Hi,

Instead of using

design : standard

Use

design : alternating

and set the following properties from true to false

displayEmptyRows : false

Regards

Piyas

sweetysingh
Participant
0 Kudos

Hi Vijay

As I have mentioned in my question my table node size is 4 and It will be always 4.

Table is showing all 4 records and one empty rows at last row of table.

When I am setting VisibleRowCount = 3, then Table is showing 4 rows ( 3 records and one empty row at the end of table)

And if I am setting VisibleRowCount = 4, then Table is showing 5 rows ( 4 records and one empty row at the end of table)

@ Piyas,

I have changed the table design properties as suggeted but did not work. I dont see any "displayEmptyRows" properties of table UI.

I am using SAP NetWeaver Developer Studio Version: 7.0.14.

Please suggest...

Thanks in advance.

sweetysingh
Participant
0 Kudos

Hi,

Sorry.. In my above question I have mentioned that I am using TableStandardCell Variant but actually

I am using FixedbuttomCell type of cell variant in my table and I am not setting any values in that cell variant, because of that only Empty row is showing.

Can any one suggest me how to hide that FixedbuttomCell variant without deleting it as in future I may use this FixedbuttomCell variant.

Thanks in advance

Former Member
0 Kudos

Hi,

If the empty row is being added in the end at all cases, an extra element is being created and added before the loop is ending..

Can you pls paste your code here.. ?

Regards,

Vijay.

former_member182534
Active Participant
0 Kudos

Hi,

It is very easy

If you want to make it invisible you can set the visibility property to none .

or

Bind an attribute to the visibility property and set it to NONE at run time as per condition

Regards

Piyas

Former Member
0 Kudos

Hi,

Try printing the table node size and chk..You'll understand..

Regards,

Vijay.