on 04-10-2006 4:32 PM
Hi all,
Could anybody help me to solve my problem?
Actualy I have created a table with initial 5 rows.
But at run time I want to display only one row by clicking a button. More clearly , at the first time the table will show 5 rows with data. But at this step I want to select one row and want to click "NEXT" button .
Then the table will show only one row which I have selected at previous page.
could any body send me the proper code and procedure?
Thanks & regards
Sudip
Hi,
Create two context attributes:
firstVisibleRow - integer
visibleRowCount - integer
Bind these varaibles to firstVisibleRow and visibleRowCount properties of the table
In onActionSelect() of button
{
// write the code to get the lead selection.
int i = wdContext.node<name>.current<node_name>element().getleadSelection();
wdContext.setfirstVisibleRow(i);
wdContext.setvisibleRowCount(1);
}
At end if you have any back button then set the properties back to default like below:
wdContext.setfirstVisibleRow(0);
wdContext.setvisibleRowCount(5);
I think this will help you solve the problem.
Regards,
Mahesh K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.