Skip to Content
avatar image
Former Member

Popup message trigger before an action is executed

Hi Everyone,

I have created an action that triggers after save on the order in CRM. The action is basically terminating other linked orders to the current order. Before the action gets triggered i am trying to raise a popup message asking whether the user wants to go ahead with it. The code for this popup is written on the eh_onsave event handler of the order. Now when i try saving the order, the code going past the popup->open() method but does not immediately raise the popup. Infact the execution of the action takes place before the popup is open.

I am interested if the user clicks the yes button on the popup then only i want the control to move forward. Any advise for this scenario.

i am sorry if this a repeated question, i tried searching for it but couldnt find anything on it.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 29, 2015 at 03:46 PM

    Hi Swaroop,

    I,m looking in the SCN concerning your problem threads found this:

    additionally found these documents that may be of help:

    How to get editable pop up in Web UI?

    Creating popup message in webclient UI - CRM - SCN Wiki

    Best regarts

    JMP

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 04, 2015 at 09:03 AM

    Hi Swaroop,

    in the solution manager this functionality has been implemented for UI Component AIC_CMCD_H.

    It is quite complicated and connected with customizing and BADI implementations, so best would be if you could access a solution manager 7.1 system.

    There you could check class CL_AIC_CMCD_AICCMCDOVERVI_IMPL, methods EH_ONACTIONPOPUP, EH_ONACTIONPOPUPCLOSE, EH_ONDYNACTION, SHOW_ACTION_POPUP

    Best Regards,

    Christoph

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 05, 2015 at 08:25 AM

    Hi Swaroop,

    - Check the time of processing in the action condition . If it is Immediate then change it to ' when saving'.

    - What is the start condition of the action ? have you tried to populate the BUS variable on popup click and using the same attribute in the start condition ?

    - From web-ui side.. if this is to be done every time.. move all existing code from eh_onsave to return event from popup.( copy from super and don't call the super )

    Regards

    Pratyush Ravi

    Add comment
    10|10000 characters needed characters exceeded