on 08-19-2010 3:10 PM
Hello to all,
I'm new at developing WD4A.
If generated a table control and enabled multisection.
If added a method for the event onSelect.
But now, how can I get the selected rows in the event handler.
Any code fragement?
Please advice.
Regards
Christian
Christian,
The event parameters of the onSelect method will provide you with the element that has been selected.
if you find your action (in actions tab in view) , select the action and then click on the little blue box icon on the toolbar above the list of actions (Parameter from UI Event).
this allows you to explicitly add the context element parameter to your action handler method. In your method you then have a very simple way to refer to the selected element - it is an input parameter of the method.
Given that the onSelect is triggered on each and every multiselect it may not be a good idea to then refer to all selected rows.
Instead perhaps create another button to trigger your logic to read all the selected rows. I guess it depends on what logic you are trying to implement.
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
In the Event Trigged onSelect Method.
1. Get the reference of the Node which is bound to the Table using GET_CHILD_NODE method.
2. Get the selected rows using method GET_SELECTED_ELEMENTS using the reference node.
Ranganathan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.