cancel
Showing results for 
Search instead for 
Did you mean: 

Lead selection

Former Member
0 Kudos

Hi,

Can anyone explain me what is lead selection?

Do we use it only in tables or somewhere else also.

How to set the lead selection?

Regards

MQ

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Lead Selection and Node Selection

http://help.sap.com/erp2005_ehp_04/helpdata/EN/f1/94384162316532e10000000a1550b0/content.htm

Lead selection means where the pointer in the node currently points to.

Like say, you have one node where you have 5 elements having values in a value attribute as a1,a2.a3,a4,a5.

If you set the value of the lead selection as 3 then it will point to the element which is having a value a4.

So if you bind this value attribute to any input field then it will show a4 even though your first element contains a1.

Similarly for 0 -> a1 ,1->a2..

Whenever you need to single out a particular element from the set of elements in the node you can use lead selection.

In case of UI elements table,Dropdownbyindex,DropdownbyKey it will be useful.

Best Wishes

Idhaya R

Former Member
0 Kudos

hi

you can use the lead selection on the table and even in other scenarios for dropdown or itemlistbox

you can use singleselection and mutliselection onthe table and this same scenario can be done in

itemlistbox where you can have single and multi selection and but when you are going with

dropdownbykey or index you have the only option of single selection.

check this link

http://help.sap.com/saphelp_nw70/helpdata/en/f1/94384162316532e10000000a1550b0/content.htm

and more about leadselection you can find it in http://help.sap.com

Thanks

nitin_mahajan2
Contributor
0 Kudos

The current selected element of the Context Node is the lead selection.

This node you might have used to create a table / Drop Down or would have bind to any other UI Element.

The answer to how to set lead selection is there in above post so i won't put it again.

Hope it helps.

Regards,

Nitin

Former Member
0 Kudos

Hi My Queries

Lead Selection is the actual selection of the element in node. For example, if you have a node with 5 elements. The current element is the 3° element, your lead selection will be 2.

To set your lead selection, just get your node and set it.

wdContext.node<NODE_CONTEXT>.setLeadSelection(<int>).

in table lead selection means that the element selected in the table is the current elelment, the lead selection is setted automatically. But you can use lead selection in all the situation that you need, because lead selection isn't a attribute of table, this is provided by Node.

Regards

Marcos

Edited by: Marcos Brandao on Jun 30, 2009 1:18 PM