cancel
Showing results for 
Search instead for 
Did you mean: 

Wait for LeadSelect of DropDownByIndex

Former Member
0 Kudos

Hello,

i''ve got a problem with a DropDownByIndex-Field and a LinkToAction-Field inside a complex Web Dynpro Table. Link To Action depends on Selection of DropDownByIndex. If the user selects a value in DropDown-Field an changes to the next column with Tab-Key, execution LinkByAction with Enter-Key, sometimes this action is performed before Lead Selection of Drop Down is updated.

Hope you understand the problem

Is there any possibility to wait for the Lead-Select-Event to complete, i.e. to execute the Action of the Link By Action as soon as the lead select event is completed

Kind regards,

Johann

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check "compatibilityMode" of your table properties. By default it is "auto". On clicking any action element in table cell, OnLeadSelect is also fired. If you change that default behavior, you will have full control on the order of events.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c092333b-0601-0010-e7af-8c227fb6...

/people/bertram.ganz/blog/2005/09/13/new-web-dynpro-sample-available--enhancing-table-performance

~kranthi

nikhil_bose
Active Contributor
0 Kudos

you can use parameter mapping and is not depended on Lead Selection.

i.e. in this case,

For onAction of linkToAction UI you need to add a parameter to this action of type datasource element of your table.

nikhiL

Former Member
0 Kudos

Hi.

Try using parameter mapping to your linktoaction. This way you wouldn't be dependent on the leadselection.

Look here for good examples:

http://help.sap.com/saphelp_nw04/helpdata/en/25/d41a403233dd5fe10000000a155106/content.htm

You can mapp each row-number in your table to each linktoaction in the wdDoModifyView method.

Regards, Mikael