on 2018 Jul 09 5:48 AM
Update: There is slight change in my requirement. The pop-up view will be displayed prior to displaying the account details. There are two scenarios when to fire up the pop-up: 1. If there are multiple accounts found based from search criteria in result list. The pop-up is fired after clicking the account id hyperlink.
2. If there is one account found after search it will go directly to the account detail view.
For scenario 1, I'm thinking to trigger the pop-up in view: IUICMD/HitlistAccount, event: EH_ONSHOWACCOUNT.
Please advise if there is a better approach.
For Scenario 2, still haven't checked yet.
---
My requirement is after BP search and confirmation, if BP is assigned to multiple contract accounts (contact person to other CA), display pop-up with list of contract accounts. Allow user to choose which CA, and auto confirm. Return to BP DetailAccount View.
Problem is where is the best place to trigger the pop-up? The BP Account Display can be triggered by different Result List/Scenarios. In above example, the BP is automatically confirmed. While use can navigate to BP detail by clicking in different Result list.
I’m thinking it will be cumbersome to enhance the outbound plug for different search result list scenarios. Is it possible to display the pop-up automatically after the BP detail is displayed? I’m not sure if it’s possible in CRM framework.
Request clarification before answering.
The most generic way would be to implement a new event listener for ic-events.
Implement the interface IF_CRM_IC_EVENT_LISTENER in the controller that will open the pop-up.
The method will contain this:
CASE event->get_name( ).
WHEN cl_crm_ic_interaction_manager=>event_interaction_started.
on_interaction_started( event ).
ENDCASE.
ENDCASE.
You can put your code within method on_interaction_started( event ) to open the pop-up.
You need to register the controller for ic-events when it is started. You can use method DO_INIT_CONTEXT:
" only register events for ic roles
DATA(lr_profile) = cl_crm_ui_profile=>get_instance( ).
IF lr_profile IS BOUND AND
lr_profile->get_profile_type( ) = 'B'.
" register for interaction started
DATA(lr_event_service) = cl_crm_ic_services=>get_event_srv_instance( ).
lr_event_service->subscribe(
event_name = cl_crm_ic_interaction_manager=>event_interaction_started
prio = 99
listener = me ).
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Andre,
Thanks a lot for your response. Really appreciate it. Your solution appears neat but I'm quite new to CRM WebClient and the solution is quite to technical for me. Let me digest and explore your proposed solution.
I'm thinking that I have to simply fire my pop-up in a particular event in component IUICMD/DetailAccount. After the BP details is displayed, that is when I'll fire the pop-up so user can choose the contract account from the pop-up and auto confirm after.
Best Regards,
Alvin
Update: Above solution doesn't work. It will replace the standard view instead and not show as pop-up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update: I think I figured it out. I can fire manually my outbound plug under IP_FROMSEARCHACCOUNT AND IP_FROMHITLISTACCOUNT and apply enhancement in IUICMD/DetailAccount.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.