on 06-14-2008 6:28 AM
Hi,
Iam working on table customization in Web Dynpro(java). When i customize the table (say i do any calculations or soritng) and click on the apply button, the table is going to the last records.( i have made the visible row count of the table as 10. And if my table table has 30 records, after i do the customization, the table is going to the last 10 records as "Row 20 of 30") Is there any option or property of the table where i can set the first records of the table as visible even after customization of the table?
Please suggest.
Regards,
Padmalatha.K
You can bind the "firstVisibleRow" property to a context attribute and set this attribute as needed.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
Thanq for replying.
Can you explain how to bind this property of the table to a context attribute dynamically?
Regards,
Padmalatha.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Following is the way to do it dynamically
IWDTable table = (IWDTable)view.createElement(IWDTable.class);
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("FirstVisibleRow");// Aligh this code to your attribute and node
table.bindFirstVisibleRow(attributeInfo);
Regards
Ayyapparaj
<ul><li>Create a new "Value Attribute" of type "integer" in your context.</li>
<li>Go to "Outline" View, select the table and look at the properties. select the property "firstVisibleRow" and click on the button next to it. Now you can see your context. Select the value attribute you just created.</li>
<li>
wdContext.currentContextElement().set<attributeName>(<rowNumber>);
</li></ul>
Hi Latha,
According to my understanding this will resolve the issue.
You can set the lead selection of the node binded to the table to first row.
wdContext.nodeXXXXX().setLeadSelection(0);
If not explain ur requirement properly.
Thanks
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.