on 09-22-2005 8:31 PM
Hi,
I have 4 buttons on my view, and am trying to get the id of the button clicked in the wdDoModifyView(). Based on the click I intend to change values.
Is this possible.
NAC
Hello SAP Partner,
[skipped]
...
[/skipped]
Best regards, Maksim Rashchynski.
Use approach mentioned be Armin and Santhosh.
Message was edited by: Maksim Rashchynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, then the answer is: transfer the ID into the action handler using event parameter mapping, store it in a view context attribute and get it from this attribute in wdDoModifyView().
But I doubt that the original poster really wants to do these changes in wdDoModifyView().
We should not propagate using non-API methods in this forum.
Armin
Hi,
1. create an action with string (id of the button) as argument.
2. In the action handler, based on id of the button you can change the values you want to change.
3. In the "wdDoInit()", write the following code
if(firsttime){
IWDButton button1 = (IWDButton)view.getElement("<<Button id1>>");
button1.mappingOfAction().addParameter("id",button1.getID());
IWDButton button2 = (IWDButton)view.getElement("<<Button id2>>");
button2.mappingOfAction().addParameter("id",button2.getID());
}
4. When the button is clicked, you will be able to get the "id" of the button in the action handler. Based on the id change the value. (The values you want to change modify it thr context attributes).
Regards,
Santhosh.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any thoughts on this.
~NAC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.