on 03-06-2013 11:38 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.