on 02-08-2008 3:43 AM
HI
I have a table with multiselect option. Suppose I had selected 3 rows of that table. How can I get the row numbers or row id of the selected rows.
Thanks in advance
Hi,
First of all getting row id of any table you have to need acess the table.you can acess table or any UI in webdypro in wdDoModifyView() method.
the code for this is:
if(firstTime){
IWDTable table = (IWDTable)view.getElement("producttable");
table.mappingOfOnLeadSelect().addSourceMapping("row","rowid");
where "producttable" is the id of table.
Now you have send this rowid as a parameter in any custom method and get this rowid from this method.
thanks,
Dibyendu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai vidyadar,
run a loop with the tables node size and get the values you need.
Thanks n Regards
Sharanya.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Lets say your node name is orders and if you want to check the multiselected items you can use the following code.
for(int x=0; x<wdContext.nodeOrders().size(); x++)
{
if(wdContext.nodeOrders().isMultiSelected(x))
{
wdComponentAPI.getMessageManager().reportSuccess(String.valueOf(x) + " Is Selected");
}
}
If its single selection then you dont have to iterate you can get the selected one from the leadSelect event
Regards
Ayyapparaj
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.