Skip to Content
avatar image
Former Member

Use of lo_portal_manager->SUBSCRIBE_EVENT ?

Hi,

As am new to WDP ABAP, am from WDP JAVA and doing eForms with WDP ABAP now and the issue is.

I need to pass the PERNR from HANDLEDEFAULT() toview(Leava request) value comes from "HR_ASR_GETEMPLOYEE".So i used the following code .

  • Passing pernr to view

DATA : l_emppernrforsearchhlp_node TYPE REF TO if_wd_context_node,

l_emppernr_ele TYPE REF TO if_wd_context_element.

DATA :emp_pernr TYPE persno , " Employee PERNR from team Viewer

CALL FUNCTION 'HR_ASR_WDA_GET_EMPLOYEE'

EXPORTING

ID = PERNR_MEM_ID

IMPORTING

PERNR = emp_pernr

  • ENAME =

.

l_emppernrforsearchhlp_node = wd_context->get_child_node( name = wd_this->wdctx_emppernrforsearchhlp ).

l_emppernr_ele = l_emppernrforsearchhlp_node->get_element( ).

  • set single attribute

l_emppernr_ele->set_attribute(

name = `EMPPERNR`

value = emp_pernr ).

Here am successfully able to pass and working excellent, but I need to do the same for reaming eforms also(Employee Separation)

There this is not working, when i compared with the leave_req apps EMployee separation I found a method lo_portal_manager->SUBSCRIBE_EVENT in Init()..which is the cause ...

Plz let me know the use of lo_portal_manager->SUBSCRIBE_EVENT...and give some solution for my problem.

Regards

Rajesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 02, 2010 at 10:04 PM

    not answered

    Add comment
    10|10000 characters needed characters exceeded

    • >Plz let me know the use of lo_portal_manager->SUBSCRIBE_EVENT...and give some solution for my problem.

      This method initializes the Portal Eventing framework and subscribes this applciation to listen for a particular portal event.

      So first question - is your application running in the portal and is it still part of the portal page with the iView that produces this event. Are all the applications in iViews in this page running in the same domain - otherwise portal eventing fails becuase of cross site scripting security restrictions.