on 09-05-2012 2:06 PM
Dear Experts,
Can anyone help me how to trigger a popup window which should contain textbox on a click of REJECT button .
Senario:
I have three buttons SUBMIT,APPROVE,REJECT ....When approver clicks on REJECT button a popup window should open in which the approver can write the reason for rejecting the request in my FPM GAF component...
Katrice
Amy,
How to check if REJECT button is clicked or REWORK button clicked in FPM?,,,
Because on both REJECT & REWORK , i need to show popup in which approver can write his comments and if he clicks of on OK for REJECT..I need to show reject message
and if approver clicks REWORK button . same popup should appear in which approver can write his comments and if he clicks on OK...i should show message : Send for REVISION.
Thanks
Katrice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Katrice,
I don't use FPM, but this is how you could determine the button clicked in regular WDA.
You can get the ID of the button which was clicked from the action handler's WDEVENT parameter.
If, when you created the action handler method via the wizard, you selected the checkbox Transfer UI Event Parameters, you will automatically get ID as an additional importing parameter in the method.
If you have already created the action handler method, you may manually create a new Importing parameter named ID of type STRING.
For help specific to FPM, you may want to post your question to the Floorplan Manager for Web Dynpro ABAP community.
Cheers,
Amy
Hi Katrice hawkins,
To know which button is clicked in FPM in GET_DATA or PROCESS_EVENT method there us a parameter io_event of type cl_fpm_event this is a class and in this class there is Attribute
MV_EVENT_ID(This is in EHP 6)
So in GET_DATA or PROCESS_EVENT method you can write like this
CASE io_event->mv_event_id. " in io_event->mv_event_id you will be getting button ACTION ID
When 'REJECT'.
When 'REWORK'.
* your CODE
ENDCASE.
hope this will help you.
Thanks
Madhukiran.
Hi Katrice,
Check out example web dynpro component, DEMO_POPUPS_01.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Katrice,
I also found these two documents which give some step-by-step instruction. One is for a simple scenario and the other a more complex scenario.
Cheers,
Amy
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
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.