cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Event between WD Java iView and VC iView

Former Member
0 Kudos

Hi All,

I am trying to get eventing to work between a WebDynpro (Java) iView and a VC iView.

Both the iViews are setup on a single page. The VC iView is in Flex.

from the Dynpro iView (on a button action) I do this


     WDPortalEventing.fire("urn:com.sap.vc:epcm","CityFrom",cityFrom);

On the VC iView. I have a Signal In with the following params:


     Input Signal
     Name : CityFrom
     EPCM Event : com.sap.vc:epcm

The signal is connected to a form with a single field CityFrom. I configured the Data flow element (the connecting line between the Signal and the form to include the field in question)

When I click the button nothing happens. The VC fields are blank

I tried the followng:

I tried compiling the VC iView to WebDynpro: Still does not work.

I tried the WD iView with another WD iView that subscribes to the event and this works fine.

So it looks like I am doing something wrong on the VC side. Can anyone point me in the right direction?

Cheers

Santy

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member341000
Participant
0 Kudos

Hi,

To send parameters between Web Dynpro and Visual Composer iviews, the Web Dynpro iview has to construct an XML-format string and send it as the parameter.

In other words, instead of sending the city name (in your example) as the parameter, you have to create a string in the format:

<Params version="2"><Row CityFrom="{city from}" /></Params>

where {city from} should be replaced with the value of cityFrom variable in the Web Dynpro application.

In Visual Composer, the signal in should have CityFrom parameter to receive the value sent from Web Dynpro.

Hope that helps.

Best regards,

Tal.

Former Member
0 Kudos

Hello VC Gurus.

I am still stuck with the problem. I stripped the problem down to the bare minimum and tried out different combinations.

I have posted up details of my investigation here.

http://santy.wikidot.com/wd-vc-portal-eventing

Could any of you please have a look?

TIA

Santy

Former Member
0 Kudos

Hello,

Have you found any solution ? Because I am facing the same problem....

Thanks for your help...

Thibault

Former Member
0 Kudos

Hi

Have you found a solution for this?

When I raise a Portal Event i WDA the VC model can see that an event has been raisen but the parameter with the value from WDA can not be transfered to the VC model.

thanks

Lars