cancel
Showing results for 
Search instead for 
Did you mean: 

How to map context for two requests from model to component's context

Former Member
0 Kudos

Hi experts,

My web dynpro view would like to first retrieve some details such as name, user id and division informations, at the same time require user to input leave date, leave reason and so on.

Thus there is a webservice that has two services:

1) getUserDetails ( userid )

2) saveUserLeave (Leave Details)

where

(1) getUserDetails will return

UserDetails class that has

division Name

departmentName

and

(2) saveUserLeave

LeaveDetails class has:

userid

division Name

departmentName

leaaveDate

leaveReason

are to send as request : saveUserLeave

In the Mode context:

  • Request_UserDetails

*-> UserDetails

*-------> userid

*-------> divisionName

*------> departmentName

*Response


> ...

  • Request_SaveLeave

*-> UserDetails

*-------> userid

*-------> divisionName

*------> departmentName

*-------> leaaveDate

*-------> leaveReason

I have problem doing the data binding for the context. This is because initially, I have map the context,

  • Request_UserDetails

*-> UserDetails

*-------> userid

*-------> divisionName

*------> departmentName

*Response


> ...

and the view

  • Request_UserDetails

*-> UserDetails

*-------> userid

*-------> divisionName

*------> departmentName

*Response

| -


> ...

Next I bind the layout of the field to the UserDetails to display layout.

The problem occur, when I want to map the Leave details since those field such as division Name and departmentName already map to UserDetail.

In this case, how would like map my component model context and subsequently my view context? can advise?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If I am not wrong then you are getting error while you try to drag your model node to the component controller.

If yes then while you get that error then just rename the names on the node (may be append 1) and then say OK and Finish.

Regards,

Murtuza