on 03-26-2007 8:33 AM
Hi,
I am creating a Table similar to Who's Who in ESS. The first column of my table is Employee Code which is a LinkToAction. So when my user clicks on the Employee code, application should take the user to anther view which shows employee details. There is no selection for the table. How do I capture which employee code has been selected by the user in my first column.
There is a method associated to the LinkToAction. Here I can pass the Employee Code and fire the Plug. But the problem is how do I get the employee code selected by the user.
Sugestions are welcome.
Regards,
Murali
Hi Muralidaran.
You can get the element (employee) from the event which is passed to the
action handler method (linktoaction).
just call wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
You also could add this as parameter to the parameter list of the action method.
context_element type ref to if_wd_context_element.
The system should pass the element in which the link was clicked via this parameter then.
Hope this helps.
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
after u hav binded the node to the table, u shud use the lead selection property to get the value of the row u hav selected.
int i = wdContext.nodeABC.getLeadSelection();
String name = wdContext.nodeABC.getnodeABCElementAt(i).getElement();
try using this.
Regards,
Prasy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.