$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: false, vro: false, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content
0

Bug in Odata Backend for Annotations

Mar 02, 2017 at 03:33 PM

573

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

avatar image
Former Member Apr 17, 2017 at 10:34 AM
1

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Ankit Maskara
Mar 12, 2017 at 02:26 PM
0

Hello ,

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

BR.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0
Andre Fischer
May 05, 2017 at 06:43 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jun 02, 2017 at 09:50 AM
0

HI Moritz

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

Did you solve this problem?


Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0