cancel
Showing results for 
Search instead for 
Did you mean: 

Table Row In webdynpro

Former Member
0 Kudos

Hi Experts,

In a table below there is a row box which gives the row number of the first data row in the table.

How can i change that to the selectee row if the user clicks on any row in the table.

it should display the row number of the row selected by the user.

Regards

Rohan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Rohan,

Have you tried the solution. Even Siva has proposed the same solution. Hope you have got the limitation of this solution.

thanks & regards,

Manoj

Former Member
0 Kudos

Hi,

I don't think that it is possible. Because the row box you are talking about takes the property firstVisibleRow of the table. If you try to set it dynamically, it will show the correct output.

Suppose there are 5 rows and user selects the 3rd row, then row box will display but then the first 2 rows will not be displayed.

You can try this. Write the following code onActionLeadSelect of your table:

IWDTable tab = (IWDTable) viewObj.getElement("ProductTable");

tab.setFirstVisibleRow(wdContext.nodeProducts().getLeadSelection());

where ProductTable is the ID of your table and

Products is the dataSource node of your table.

You can see the limitation.

thanks & regards,

Manoj

Edited by: Manoj Kumar on Dec 17, 2007 3:46 PM

Former Member
0 Kudos

hi

the row field by default comes in the table.

regards rohan

former_member197348
Active Contributor
0 Kudos

Hi Rohan,

I could not get your req. clearly. If your requirement is to show the selected Row number in the below row box. You can try like this

Create a context variable visRow of type int. Bind this to firstVisibleRow property of table.

Create an action Select. In onActionSelect write this code

wdContext.currentContextElement().setVisRow(wdContext.node<tableNode>().getLeadSelction());

Bind this onActionSelect to table property onLeadSelect.

regards,

Siva

former_member197348
Active Contributor
0 Kudos

Hi Rohan,

Create a context attribute of type int [rownumber]. Bind this to input field.

Create an action Select. In onActionSelect write this code

wdContext.currentContextElement().setRownumber(wdContext.node<tableNode>().getLeadSelction());

Bind this onActionSelect to table property onLeadSelect.

regards,

Siva