on 10-22-2007 7:37 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
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.
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
Hi ,
setVisibleRowCount(-1);
setFooterVisible(false);
setCompatibleMode("auto");
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.