cancel
Showing results for 
Search instead for 
Did you mean: 

Modeled Relationships in VC 7.1

Former Member
0 Kudos

Hi all,

I have modeled the following scenario with the Composite Application Framework:

I have 1 Business Object Person and 1 Business Object Address.

Address has remote persistency on the backend.

Person has local persistency on the NetWeaver Application Server.

Person has a relationship to Address (None to One).

If I test this scenario with the service browser all works fine.

How can I use this relationship in the Visual Composer ?

I would like to have a Composite View to create a new Person.

So I complete a form with all person data and I would like to create or choose an Address which have a relation to the Person.

Furthermore I would like to have a composite view which shows me all persons and if I choose one person I would like to see the Address of this Person.

How can I model this with the Visual Composer ?

Thanks for any tips and best regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Micheal,

you should expose the relevant application/local services as a web service thus you will be able to use the web service in the visual composer.

refer to the following article

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7000a4db-d4e2-2a10-ebaf-c6e1de63...

Best regards.

Ahmed Salah

Former Member
0 Kudos

Hello Ahmed,

thanks for your answer.

I have further questions relating this issue.

Do I really have to implement the Relationship between Person and Address in an own Application Service ?

When I have to implement the Relationship on my own which advantage has the modeled Relationship in the Business Objects in CAF (Associations Tab in CAF)?

I hope someone can explain this to me.

Thanks and regards,

Michael

Answers (1)

Answers (1)

Former Member
0 Kudos

You have to develop an own application service for the relationship between the two business objects.

The advantage of the modeled relationship in the composite application framework is that you have a table which represent the relationship. So you can use this in your application service.

Now you use the new application service in the visual composer.

I hope this description helps if someone has a similar question.