cancel
Showing results for 
Search instead for 
Did you mean: 

current lead selection value

Former Member
0 Kudos

Hi experts,

How to get current lead selection value in a node ?

Thanks,

kiran

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

Hi,

wdContext.node<ur node>.current<nodeElement>; gives the lead selected value ..

please give elaborate ur query ..

Thanks and Regards

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ravi,

For lead selection you can use wdContext.node<name>().current<name>Element().

You can also verify if there is any value lead selected in the current node, e.g to check if any value is selected in a dropdown A which is bound to context node DrpDN you may use the below line of code:

if(wdContext.nodeDrpDN().currentDrpDNElement() == null) {show error}

or

if(wdContext.currentDrpDNElement() == null) {show error}

Both the lines above work in same manner.

Hope this helps!!

Cheers,

Arafat

Former Member
0 Kudos

Hi ravi.

You will get lead selection of table node.then you have do one thing.push the table Push button(left hand side of table with row)

suppose value node is--table

int lead=wdcontext.nodeTable().getLeadSelection();

this code is wriiten any action method you will gwt the current lead selection.

action method is clickTable assign to onAction property of button like Click..

onActionClickTable(event){

int lead=wdcontext.nodeTable().getLeadSelection();

iwdMassageManager msg=WdComponentApi().getmassageManager();

msg.reportSuccess("klead'+lead);

}

Click on Button and it will se the massge.

thanks

jati

Former Member
0 Kudos

Hi K ravi Kiran

IWDNodeElement IWDNode.getCurrentElement(),

int IWDNode.getLeadSelection().

For more information check this link

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

Regards

Ruturaj