cancel
Showing results for 
Search instead for 
Did you mean: 

Table Row Change at RunTime

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.