cancel
Showing results for 
Search instead for 
Did you mean: 

WDPortalEventing.subscribe not working

govardan_raj
Contributor
0 Kudos

Hi experts ,

Im rasing an event in my portal component mast head .

ie.

 

var sessionID =

<%=getSessionID(componentRequest)%>;

EPCM.raiseEvent('urn:*******.portal_dev', 'getSessionID', sessionID);

and in my webdynpro dc im using the below code to get the value from the sessionID

WDPortalEventing.subscribe("urn:*****.portal_dev","getSessionID",wdThis.wdGetDummyAction());

but it is not working , i mean the action is not getting executed , as well as im not able fetch the data in variable sessionID being passed

please suggest a solution

Regards

Govardan Raj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Govardan,

Can you please check following document "How to Use Portal Eventing Within a Web Dynpro Java Application".

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d7d690-0201-0010-e581-9c4fc69ce...


Thanks & Regards,

Patralekha

govardan_raj
Contributor
0 Kudos

hi patralekha ,

have gone through that , it is not working , it is coming null.

in wdDoInit() of my view contoller , im caling the

WDPortalEventing.subscribe("urn:*****.portal_dev","getSessionID",wdThis.wdGetDummyAction());

but value coming for me is null , when i try to print ,.

Regards

Govardan Raj

govardan_raj
Contributor
0 Kudos

hi Patralekha ,

also is it possible to get httpsession id in webdynpro java application.

or else i need have to constant value shared between my logon module -- portal component and my

webdynpro applications . I mean every time i login ill generate a unique randnum and i shuold share between my logonmodule and my webdynpro java applications

can u please help me out in this .

Regards

Govardan

Former Member
0 Kudos

Dear Govardan,

Check this

Thanks & Regards,

Patralekha

govardan_raj
Contributor
0 Kudos

hi ,

on following above link i got 2 dfferent ids

portal logon module

(J2EE1252900)ID1077312751DB6bf0c8207dd9bb1b14fb2d554859c9f0f0021e78End

webdynpro side

-(J2EE1252900)ID0348065951DB6bf130a01d08e7729c84b7332dac5ec86449d803End_561963924 -

you can see both are mismatching , i need a common value that is generated every time a user logs in and that should be shared among the portal logon and webdynpro applications too.

Regards

Govardan

Answers (0)