cancel
Showing results for 
Search instead for 
Did you mean: 

select row in a table on lead selection

Former Member
0 Kudos

Hi All,

I have to select a row in a table on lead selection.

How it can be done ?

Thanks

Nikhil

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

I am not sure what is your exact requirement. But if you want an initial selection to be made when a table is populated then you could set the initial lead selected property of the node binded to your table to true. This will automatically make the first row as lead selected.

Regards,

Murtuza

Former Member
0 Kudos

Hi Nikhil,

chek ths threaf:[thread|]

hpe it hlps

Regards

Khushboo

Former Member
0 Kudos

Hi,

If you want one row to be lead selected when the table is visible,

then use this statement

wdContext.node<TableNode>().setLeadSelection(<rowNumber>);

Regards

LN

Former Member
0 Kudos

Hi,

using the below code you can select the row.

IPrivate<ur view name>View.ITableElement iTableElement=wdContext.nodeTable().getTableElementAt(wdContext.nodeTable().getLeadSelection());

Regards,

ramesh

Edited by: Ramesh Babu V on Sep 22, 2008 11:29 AM

dhruv_shah3
Active Contributor
0 Kudos

HI,

You have to write the following code:

First Create an Event on Table OnLeadSelect.

and then write following code:



int leadselect = wdContext.nodeIt_Suggestion().getLeadSelection();

 if (leadselect!=IWDNode.NO_SELECTION)
    {
    	IPrivatePortalSuggestionView.IIt_SuggestionElement sgid = wdContext.nodeIt_Suggestion().getIt_SuggestionElementAt(leadselect);
    
}


Regards,

Dhruv