Skip to Content
0
Former Member
Jan 19, 2006 at 04:44 PM

WebDynpro Portal Eventing

24 Views

Hi I tried to communicate with 2 iViews thro portal eventing.

a) in my iView1 I have a action.

on click of button I am calling this action..

public void onActionShow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionShow(ServerEvent)

String name = wdContext.currentContextElement.getName();

WDPortalEventing.fire("urn:com.sap.tc.webdynpro.example.portaleventing","Show",name);

//@@end

}

b) In my iView2 I have a code in my view wdDoInit method

WDPortalEventing.subscribe("urn:com.sap.tc.webdynpro.example.portaleventing","Show",wdThis.wdGetReactPortalEventingAction());

And my action is

public void onActionReactPortalEventing(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )

{

//@@begin onActionReactPortalEventing(ServerEvent)

wdContext.currentContextElement().setName(dataObject);

//@@end

}

I have created a page in portal and I put these 2 iViews in that page.

If i try to run this application thro portal,its running and showing 2 iViews.but on click of the button the event is not calling the second iView.

Can anyone help me in this..

I followed everything specified in HowToProgramPortalEventing.pdf.

Can anyone tell me what mistake I've done..

Is that the path correct?

Thankx in advance

Regards,Swapna