on 09-10-2014 7:32 AM
Hi,
I have created a Attribute View and trying to consume it in UI5 via ODATA Service .
Code for XSODATA:
service {
"_SYS_BIC"."Nik_HANA/AT_EMPLOYEE_ADDRESS" as "Employee_table" keys local generate "EmployeeId";
}
In UI5 Application I am not getting all the coloumns of the view only the coloumns of first table displayed .
Thanks,
Nikhil.
You have the schema name on the front of the specification and therefore accessing this as the catalog object. This is not recommended as changes to the view won't be reflected in the service without reactivating the service. For repository objects please just provide the package path :: model name like the following example:
service {
"sap.hana.democontent.epmNext.models::AT_BUYER"
as "BusinessPartners"
keys("PartnerId");
}
This could explain why you aren't seeing all columns. If you added the columns to the view after the service activation, they wouldn't be reflected. However if you change to the repository specification any changes are picked up automatically by the service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Thomas for your Reply .
Now I have used MyPackage::AT_EMPLOYEE . But still the UI5 Application is not displaying the columns of second table in the attribute view.
Attribute view consist of 2 tables Employee Table and Address Table both from EPM Model.
I also checked the Service but it is only displaying the columns of Employee table
http://dewdftzld018u.pgdev.sap.corp:8001/XSJS_UI/Table.xsodata/Employee_table?$top=4&$format=json
Thanks,
Nikhil Arya.
hi,
While designing the attribute view, are the columns from the other table are also added in the output?
First check in data preview of attribute view, if all the columns are coming as per your requirement.
Where you are checking the columns, in the metadata of odata service?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.