on 12-01-2010 4:10 AM
Hi,
if it is not working then see the OSS note 1112733.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
as the note stated.
inside your z wd application subscribe to the portalevent like this
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
DATA lo_api_controller type ref to if_wd_view_controller.
lo_api_controller ?= wd_this->wd_get_api( ).
lo_api_component = wd_this->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
lo_portal_manager->subscribe_event(
portal_event_namespace = 'urn:com.sap.mss.employeesearch'
portal_event_name = 'selection_changed'
view = lo_api_controller
action = 'mss_emp_selected'
).
mss_emp_selected is a action , should be defined in the View.
Edit the ONACTIONESS_EMP_SELECTED method and insert the following 3 parameters as optional importing parameters.
PORTAL_EVENT_NAME
PORTAL_EVENT_NAMESPACE
PORTAL_EVENT_PARAMETER
The portal_event_parameter string contains the following information
Plan variant (2 characters)
Object type: (2 characters)
Start date of the object: (8 characters in the format yyyyMMdd)
End date of the object: (8 characters in the format yyyyMMdd)
Object ID: (remainder of the parameter string)
Example value would be "01P 200706012007123108154711".
Split the string accordingly and get the employee ID 08154711, use it for your employee data retrieval.
Hi,
let us be clear.
you basically say that you are not getting the portal event?. In this case please answer the following .
1. Have you followedd the notes on using URL iView's embedding into portal page and not WebDynpro page builder page.
2. Where have you subscribed for portal event ? in a view which actively running in the same portal page as ESS iView.
3. Is the action name correct and is defined in the view in ques.no.2?
Hi,
Yes I have followed the steps mentioned in note, to create a default page and include my IView and the statndard WD page into that.
I have not subscibed my Portal event, no sure how to do that. Please let me know the steps.
Yes, I have defined the action name in the code as mentioned in the view.
Just to let you know, my standard MSS team viewer is a WDJ application and not WDA application.
Regards,
Pranay
Hi,
If you do not subscribe to portal event then it is obvious that debugger is not coming to the event handler.
In your wda application, open the view (where in you already have your action).
In WDDOINIT method write the code which i have posted in earlier.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
DATA lo_api_controller type ref to if_wd_view_controller.
lo_api_controller ?= wd_this->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
lo_portal_manager->subscribe_event(
portal_event_namespace = 'urn:com.sap.mss.employeesearch'
portal_event_name = 'selection_changed'
view = lo_api_controller
action = 'mss_emp_selected'
).
That is enough.
Hi,
I had already written this code in my WDA application but still the debugger is not stopping.
Steps done so far:
1. Crated a WDA appliction written the code as mentioned by you.
2. Create a Portal Page, included my Iview and team viewer page in that
3. the team viewer page has a link which call my application
4. On click of the link it opens the application in Portal content area.
The debugger stops at the WDINIT method but not in the action which we created.
Please advise.
Regards,
Pranay
>
> Hi,
>
> I had already written this code in my WDA application but still the debugger is not stopping.
>
> Steps done so far:
>
> 1. Crated a WDA appliction written the code as mentioned by you.
> 2. Create a Portal Page, included my Iview and team viewer page in that
> 3. the team viewer page has a link which call my application
> 4. On click of the link it opens the application in Portal content area.
>
> The debugger stops at the WDINIT method but not in the action which we created.
>
> Please advise.
>
> Regards,
> Pranay
Hi,
The solutions i gave you are based on my assumption that
team viewer page fire a portal event 'selection_changed' and your custom WDA application subscribe to this event and display the employee detail.
Now your statements in 3 and 4 are not falling under my assumption.
According to the sap note, when you select a employee then event 'selection_changed' is fired automatically.
So in my opinion you do not need the step 3 and 4 at all. What you need is to have your custom WDA active in the same page waiting for the event to enter.
when event happens, parse the data, retrieve the data and display in a view.
PS: Check once again if you comply with SAP note pre request.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.