on 12-17-2007 9:48 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
the row field by default comes in the table.
regards rohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.