cancel
Showing results for 
Search instead for 
Did you mean: 

Binding with Odata Navigation

eyal_alsheikh
Active Participant
0 Kudos

Dear experts,

I have an application with Master/Detail views ( JS views ).

The List in the Master view is bind to an Odata collection named VacReqSet ( vacation request collection):

The ObjectListItem of this list needs to display in its title attribute the employee name

that invoked the vacation request. However, VacReq entity type in the Odata has only

the employee number (pernr) and in order to get the employee name I need to use

the navigation from the VaqRec entity to the Employee entity of the Odata model.

I tried to write the following in order to bind the title using the navigation but it did not work:

When I am using the navigation directly in the web browser address bar it works:

<odata service url>/VacReqSet('1234')/Employee/Ename

I will appreciate your ideas,

Thank you,

Eyal

Accepted Solutions (0)

Answers (2)

Answers (2)

Qualiture
Active Contributor
0 Kudos

Not sure how your response looks like, but if node Employee is a child to node VacReqSet, then simply use

title="{Employee/Ename}"

(without the preceding slash for Employee, since you want the Employee relative to VacReqSet)

eyal_alsheikh
Active Participant
0 Kudos

Hi Robin,

After I applied the change in the code

to title="{Employee/Ename}" and run the application

I see nothing ( no text at all ) in the position of the title field.

Thank You,

Eyal

Qualiture
Active Contributor
0 Kudos

Can you share how your OData response looks like? I just assumed Employee was a child node to VacReqSet

former_member91307
Contributor
0 Kudos

Hi Eyal,

Try

title='Employee/Ename'

Thanks and Regards, Venkatesh

eyal_alsheikh
Active Participant
0 Kudos

Hi Venkatesh,

Unfortunately, when I changed to title='Employee/Ename'

it just display it as a constant text string.


Thanks,

Eyal