on 07-06-2006 8:04 AM
Hey,
I have a table with five rows containing different values. I want to select one row and pass the selected value (called the EmbNo in code) to my ABAP function to get more data about the associated object I have selected.
In wdDoInit() I have set the default value like:
input.setEmbNo("700");
What can I do to set the EmbNo to the selected value instead?
Kind Regards
Øyvind Isaksen
Hi Jorn,
You can read the value of the attribute from the context of the currently selected element like this and set it to your input.
input.setEmbNo(wdContext.nodeVal().currentValElement().get<<Attr-name>>());
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Assuming you have following structure for your tablenode.
TableNode
|__
EmbNo
Then to pass the the selected value in your table,you create an action say onActionSelectEmbNo and assign it to onLeadSelect event of your table and write the code in that action which will be something like:
input.setEmbNo(wdContext.currentTableNodeElement().getEmbNo());
Regards,
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jørn,
In the action handler, call get_selected_elements() of the context node to which the table binds to. On the returned element, call get_attribute().
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.