cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Composer WS

Former Member
0 Kudos

Hi everybody, I´m facing I guess a design issue with a VC model, I need to call a WebService that has a flat structure and three tables, the data comes from different form views, so I investigate and I see that maybe a data bridge will be helpful, the thing is that I can´t found the data bridge connector, unless they are talking about a data source or data share.

I don´t know if I´m complicated the thing, I thought I was doing an easy scenario here, any help will be appreciated.

Here is my model, the service is in the upper right side of the screen.

This is the last step of the VC Model and I´m thinking create a whole WD component only to call this WS

Accepted Solutions (1)

Accepted Solutions (1)

former_member202465
Contributor
0 Kudos

Hi ,

In general I think it should be OK to do this from VC, you could:

- Collect the data from different Forms into one Data Share element.

- When the relevant event happens pass the data to the Service.

I'll try to provide an example model picture soon.

Thank you,

Udi

Former Member
0 Kudos

Hi Ehud, I  tried to do the data share thing, the problem that I have is that the WS has 3 input ports, one of the flat structure and other two input ports for the tables, and when I link a data share with the three input ports the webservice seems to be called in secuence, one call per input port and not in one single call, or do you think the VC runtime is setting all the ports in a secuencial way and in then call the WS !?

former_member202465
Contributor
0 Kudos

Hi Isaac,

I was under the impression this is possible with R3 services, but I don't know about Web Services. I could suggest the following:

- try to activate the service the way you wanted.

- you could connect Form / Table from the output of the service in a way for you to you see it was activated. this way you know the number of activations.

In case what you want is impossible: Is it a Web Service you write yourself? if so, you could write it differently, so instead of the hierarchy:

- input1

- input2

You design it to be:

- input (cluster)

   - input1

   - input2

Example clustered service:

So for VC it would be one input port to pass data into, as VC works with clustered data.

Thanks,

Udi

Former Member
0 Kudos

Hi Ehud, i was thinking in re-edit the WS with a nested structure, the thing is that I know that previous versions of VC doesn´t support clustered services only flat, is that right, as you said is supported already !? I´m working in a NW 7.3 EHP1.

former_member202465
Contributor
0 Kudos

Hi Issac,

Here are some links about working in Visual Composer with clustered data:

Multilevel Controls - SAP Visual Composer | Facebook

Skip cluster nodes in the UI modeling - SAP Visual Composer | Facebook

Thanks,

Udi

Answers (1)

Answers (1)

former_member202465
Contributor
0 Kudos

Hi again,

I hope this little example helps: The flow works this way:

- the data is entered into Forms in different tabs

- each data changed in copied into the Data Share (and also presented in a summary Form but this is not a must for the scenario)

- a button press is triggering the service execution - the exec_service event, so the data is passed from the Data Share to the service.

In the Layout Board - set the control action to copy data to the Data Share:

The execution of the event by the button. Note the we listen on the link to the event *exec_service, as this is a "global event listening": The event not coming from the source element of the link.

Hope this helps,

Thanks,

Udi

Former Member
0 Kudos

Hi thanks a lot for your reply, I rebuild the WS and now I see one port with a nested structure, but I tried to do the ASSIGN thing with mapping but not sure if the actions are triggered, I try to set all the actions to one action called 'save' thinking that while the wizard is completed this 'save' event is triggered step by step updating the share data object.

The last step is the one who should excecute the last 'save' event but this 'save' don´t excecute the link between the data share and the WS, if I link the last form to the WS is called ok but without the datashare data.

former_member202465
Contributor
0 Kudos

Hi ,

I would try to use the steps as in my reply from

- each data changed in copied into the Data Share using an ASSIGN Action:

- a button press is triggering the service execution - the "save" event in your case, so the data is passed from the Data Share to the service.

Note the we listen on the link to the event *exec_service, as this is a "global event listening": The event not coming from the source element of the link, but from another element in the model.

Hope this helps,

Thanks,

Udi