on 09-29-2005 10:58 AM
Hello
Can someone please let me know how i can include the page number in the footer of the table in a webdynpro application?
Also I want to have sub totals in the webdynpro table on a perticular field. How do i go about this?
thanks in advance
VJ
thank you very much for the quick response. wil try this out. looks like that will solve my problem.
regards
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
I missed the most important sentence :
<b>Only on selecting a row, the Lead selection will change. Simply using the paginator to navigate through the pages won't change the lead selection.</b>
I'm very sorry about this ommission. Actually AnilKumar's reply to the thread reminded me about this
Best regards,
Nibu.
Hi Vijay,
There is no built-in functionality to display these two values. But you can achieve these functionalities by using a textview or a label to display these values:
<b>Displaying the page no:</b>
1) Bind the 'VisibleRowCount' attribute of your table to an Integer attribute and set the desired value for this attribute in your wdDoInit().
2) Get the index of your current lead selection 'wdContext.node<node_name>().getLeadSelection()'.
3) Now, (your_lead_selection/(your_visible_row_count-1))+1 will give you the current page no:
4) Store this page no: in an attrbute bound to a text view or a label.
<b>Displaying the total</b>
I suppose you want to display the total of a column in the current page only.
(current page no: - 1)*(your_visible_row_count) will give you the index of the first row of the current page. Let's call this n;
Then you can calculate the total by:
IPrivate<view>.I<node_name>Element elmt;
int total =0;
for(int i=n; i<(nvisible_row_count;i+)
{
elmt = wdContext.node<node_name>().get<node_name>ElementAt(i);
total+= elmt.get<attribute_name>();
}
Total will have the corresponding total for the column.
Hope this helps,
Best regards,
Nibu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.