Skip to Content
avatar image
Former Member

XSODATA Service for Attribute Views

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Sep 10, 2014 at 10:56 AM

    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?


    Add comment
    10|10000 characters needed characters exceeded

  • Sep 10, 2014 at 11:28 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Sreehari V Pillai

      Hey ,

      I have checked the ODATA file in Browser in JSON format but it is not showing me the columns of second table meaning all the columns of attribute view are not visible.

      Thanks,

      Nikhil Arya.