cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in Odata Backend for Annotations

moritz_ruff2
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

yellappam
Explorer

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.

moritz_ruff2
Explorer
0 Kudos

Thank yu for your input. We will implement the note and report back if it works.

daniel_song
Discoverer
0 Kudos

HI Moritz

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

Did you solve this problem?

moritz_ruff2
Explorer
0 Kudos

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

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

former_member185414
Active Contributor
0 Kudos

Hello ,

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

BR.

moritz_ruff2
Explorer
0 Kudos

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.