Skip to Content

Bug in Odata Backend for Annotations

Hello Everybody,

I've tried to use the "Smart"-Controls in UI5. For this task I developed a own Odata-Service via SEGW an followed following Tutorial: https://blogs.sap.com/2016/01/28/smart-table-backend-and-frontend-example

Unfortunally my Gateway seems to create "wrong"-Metadata.

This is the syntax the smarttable is expecting (found in the API):

This is what my Gateway delivers:

I found no possibility to change the Property-name in the SEGW.
Do you have any suggestions?

Thank you and best regards
Moritz Ruff

unbenannt.gif (26.6 kB)
unbenannt2.gif (7.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Apr 17, 2017 at 10:34 AM

    Hi Moritz,

    The reason is probably that your Service Builder has an older version which didn’t support the data type (Edm.PrimitiveType) of the property. Please implement OSS note 2323443 - Edm.PrimitiveType Ignored while Importing a Vocabulary File.

    Regards,

    Yellappa.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 12, 2017 at 02:26 PM

    Hello ,

    Did you try using the vocabulary chosen in step 9 on the quoted blog?(DataFieldForAnnotation)

    BR.

    Add comment
    10|10000 characters needed characters exceeded

    • Yes, this was the first one I tried. Later (searching for an solution) I changed to DataField because in the Mockserver.xml in UI5 Explored this annotations-type is used.

  • May 05, 2017 at 06:43 AM

    Hi Moritz,

    you can try out to create the annotations using code based implementation as I have described in my blog.

    How to add annotations to an OData service using code based implementation.

    Best Regards,

    Andre

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 02, 2017 at 09:50 AM

    HI Moritz

    I got the same error. The generated ODATA is shown below.

    Did you solve this problem?


    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      unfortunally we did not. We are currently trying to use SmartControls in an other project on newer GW-Server release but did not succeed so far.
      I will report back if we find a solution...

      I'am looking forward to the TechEd in Barcelona this year, so maybe someone from the SAP Team can guide me through the process....

      Best regards
      Moritz