on 10-05-2006 4:22 PM
If the column of a table is declared 'Link to action', when I push onto a specific cell of that column, how can I get the content of the clicked cell?
Thanks for answer.
Hi Avalor,
Did you get any solution to this problem. I am also facing the same problem and could not find any OSS note regarding this.
Thanks,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In abap code please.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Avalor,
Just define a parameter CONTEXT_ELEMENT of type IF_WD_CONTEXT_ELEMENT at the signature of the action handler. This points to the current row of the table.
In order to read the value of an attribute just write as usual:
context_element->get_attribute( exporting name = ... importing value = ... ).
Best regards,
Thomas
Hi Avalor,
This is strange. Are you really certain? Do you really use the predefined parameter context_element without calling any method like get_lead_selection, etc? I am asking, because this is a core feature of WDA and many, many applications rely on it to function properly and there are no known issues atm. If you still believe the leadSelection is used instead of the current row (after checking all of the above), please don't hesitate to create an oss ticket.
Best regards,
Thomas
Define an event parameter mapping, either in the NWDS (if possible), or by code:
wdDoModifyView(...)
if (firstTime)
{
IWDLinkToAction link = (IWDLinkToAction) view.getElement("ID-of-link");
link.mappingOfOnAction.addSourceMapping
(
"nodeElement", /* event parameter name */
"selectedRow" /* action parameter name */
);
}
Add parameter "selectedRow" to the action assigned to the link. You can define its type either as IWDNodeElement and cast inside action or use I<Node>Element, where <Node> is the table's data source node.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.