cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when developing WD in Java NWDS 7.3 (Table LeadSelection)

0 Kudos

Hello experts,

We are developing a Web Dynpro Java application in NWDS 7.3. In this application we have a table and multiple lines in it. In each line there is an object (Link to action) that triggers an event (see invoice). This works fine if I select the row first, but it don't works fine when click on another object in another row, because the focus is not changed automatically.

When working in NWDS 7.0. This works fine and automatic.

Is there any way to select the row when i click on the object (link to action) or any other suggestion to this?

Version
SAP NetWeaver Developer Studio
SAP NetWeaver 7.3 SP08
PAT0007

Regards,
Sergio Sepúlveda

Accepted Solutions (1)

Accepted Solutions (1)

Qualiture
Active Contributor
0 Kudos

Hi Sergio,

A common mistake is to use the lead selection to determine which control on a certein row is clicked/selected/etc.

However, it is generally better to not use the lead selection, but use a reference to the actual element on which the link is clicked. This way you don't need to select a row first (and thus also works for tables without selection functionality)

To do so, add an extra parameter named "nodeElement" to your action of type IZCLIENTEDEUDADETVOElement.

Then, right-click your LinkToAction object and from the context menu, select "Parameter Mapping"

You can now map your action parameter "nodeElement" to the LinkToAction built-in "nodeElement" parameter.

In your onAction code you can now refer to the exact element and attribute using the "nodeElement" parameter as follows:

nodeElement.getVBELN()

Hope this explains!

Robin

Answers (0)