cancel
Showing results for 
Search instead for 
Did you mean: 

Hide the Table Row Scroller

Former Member
0 Kudos

Hello ,

I am on EP7.0 NW04s and want to hide the Table Row Scroller ...the one which says "Row 1 of 4" for eg: ....is there any table property I can modify to achieve this..

Any help would be highly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Subhash

1) In Your <b>TableUIElement's</b> Property

2) Goto <b>footerVisible</b> property make it as <b>false</b>

Regards

Chaitanya.A

Former Member
0 Kudos

Hello Chaitanya,

Thanks for the reply. This property is already set to false and it was working earlier but then I modified the webdynpro code to remove 2 rows from the Table using the <Table>.setVisibleRowCount() property ....after that it has started showing that footer and not getting removed even if I do

<Table>.setFooterVisible(false);

Looking forward to your reply.

Former Member
0 Kudos

hi.

then this

1)create a simvalue attribute type of type boolean say footDisable and bind that to footerVisible property and in wdDonit () inititate it with false/true

2) now in your code use

wdContext.current<your node>Element.setFootDisable(false);

Regards

Chaitanya.A

Former Member
0 Kudos

Hello Chaitanya,

I tried doing this but still it shows up the footer ...can u think of anyhting else which can be done....

Looking forward to your reply.

Former Member
0 Kudos

HI Subhash

Here point to be cosidered is if there are more than 5[default] rows in your table footer will be visible automatically even if you diable the footer,because you need to navigate through the available records . so chage SetVisibleRowCount to 10 or some other higher value so that upto those number of rows you will not get footer

Best Regards

Chaitanya.A

Former Member
0 Kudos

But I have only 4 rows to display ...and I cannot set the SetVisibleCount property to 10 since I have set it to 2 to display only 2 rows out of the 4.

Thanks

former_member485701
Active Participant
0 Kudos

Hi,

You have SetvisibleRow to 2 .

And If at some point of time you are creating 4 rows in the table then definitely

footer will be visible.

What you should do here,

(1) calculate that how many rows you want to display here (rowcount).

(2) setVisibleRow to rowCount.

and footer to false.

I hope Now it will solve your problem.

Regards,

Praveen

Former Member
0 Kudos

Hello Praveen,

Thanks for the reply. That's what I have done here is that I have set the setVisibleRow to 2 and footer to false but it's not helping me..

Looking forward to your reply.

former_member485701
Active Participant
0 Kudos

Hi,

Can you please write the steps of your operation.

And If you will paste your code then it will be good.

Regards,

Praveen

Former Member
0 Kudos

Hello Praveen,

This is what I did:

1) Created a Context variable TableVisible of type boolean.

2) Set the footervisible property of the Table to TableVisible

3) Wrote the following code in the wdDoModifyView() method:

if(wdContext.currentSelectedPlanElement().getTxt_Pltype().equalsIgnoreCase("Retire Savings"))

{

IWDTransparentContainer tc= (IWDTransparentContainer)view.getElement("RootUIElementContainer");

IWDTransparentContainer tc1= (IWDTransparentContainer)tc.getChild(1);

IWDTable t = (IWDTable)tc1.getChild(0);

t.setVisibleRowCount(2);

wdContext.currentContextElement().setTableVisible(false);

}

Please let me know if I am doing anything wrong.

former_member485701
Active Participant
0 Kudos

Hi Subahsh,

For Hiding RowScroller, footerVisible setting will not work.

If you want to hide the Row scroller then do following steps

(1).IWDTable t = (IWDTable)view.getElemnt("Table");

(2)t.setVisibleRows(2);

(3)then delete the rows which you do not want to show..

and before deleting copy it some where.

Or the other way to handle the problem is :-

TableNode----


> ActualNode create both in the context

Keep all contents in your actual Node.

And when you want to update the number of rows...

then invalidate TableNode( it will clear the table node).

And the again copy Elements from ActualNode.

And keep a count of the number of elements, set the visibility of row to that count..

In this way the scroller will never come...

See basic of this concept is that you have to keep the VisibleRow setting same as number of elements in your table.

feel free to ask queries

Regards,

Praveen

Message was edited by:

Praveen Kumar Pandey

Former Member
0 Kudos

Hello Praveen,

I am not sure how to delete rows of a table ...can u please send me the code for it...

Thanks

Former Member
0 Kudos

Hello Praveen.,

Thanks for the help ...I tried to delete the rows using some code and it worked for me...

Thanks again for your help.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

setVisibleRowCount(-1);

setFooterVisible(false);

setCompatibleMode("auto");

Regards,

Naga