on 09-04-2017 8:41 AM
<List id="invoiceList" class="sapUiResponsiveMargin" width="auto" items="{invoice>/EmployeeInfoSet(Key1='00209489')}"> <headerToolbar> <Toolbar> <Title text="{i18n>invoiceListTitle}" /> <ToolbarSpacer /> <SearchField width="50%" search="onFilterInvoices" selectOnFocus="false"/> </Toolbar> </headerToolbar> <items> <ObjectListItem title="{invoice>EmployeeNumber} x {invoice>Name}"> </ObjectListItem> </items> </List>
Hi ,
To get the single entity you are doing it correct /<entity Set>(<key>) .. But why are you attaching the single entity to the list items ??
Thanks
Viplove Khushalani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reading data from service depends on the call to service from your controller or framework.
If you want a service to accept the employee id then your oData service should be designed to accept it and return the data for the provided service.
The employee response, set the uri parameter of the oData service to JSON type.
Now, the data comes to you in JSON format. Then, use simple object methods to access its content.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.