cancel
Showing results for 
Search instead for 
Did you mean: 

Annotations and smart template application

Former Member
0 Kudos

Hello,

i have a problem with annotations service :

I create a new project smart template application with annotations.

In the gateway I create annotation service with help of this tutorial .

My file annotation is corrupted when I try open with Annotation Modeler i have this errror Unhandled Error: Cannot read property 'getProblems' of undefined

I try to display one column for test but no column display ... However all is declare in the manifest.


I don't found a documentation, example or tutorial ...

Screenshot of gateway, manifest and application are in attach file.

Thank you for your help

Best regards,

Stéph

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I explain better,

I have a problem in making work Annotations in the Gateway (SEGW):

I created a new project in SEGW for annotating an existing OData service and created an UI5 project (Smart Template) referring the OData service and the Annotation one.

In the annotation backend (SEGW) I added vocabulary properties to show a list of columns in the frontend Smart Table:

<?xml version="1.0" encoding="UTF-8"?>

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">

  <edmx:Reference Uri="https://ldcifl7.mo.sap.corp:44304/sap/opu/odata/IWFND/catalogservice;v=2/Vocabularies(TechnicalName=...">

  <edmx:Include/>

  </edmx:Reference>

  <edmx:Reference Uri="https://ldcifl7.mo.sap.corp:44304/sap/opu/odata/IWFND/catalogservice;v=2/Vocabularies(TechnicalName=...">

  <edmx:Include/>

  </edmx:Reference>

  <edmx:Reference Uri="https://ldcifl7.mo.sap.corp:44304/sap/opu/odata/IWFND/catalogservice;v=2/Vocabularies(TechnicalName=...">

  <edmx:Include/>

  </edmx:Reference>

  <edmx:Reference Uri="https://ldcifl7.mo.sap.corp:44304/sap/opu/odata/IWFND/catalogservice;v=2/Vocabularies(TechnicalName=...">

  <edmx:Include/>

  </edmx:Reference>

  <edmx:Reference Uri="https://ldcifl7.mo.sap.corp:44304/sap/opu/odata/SAP/GPA_ODATA_SRV">

  <edmx:Include Alias="GPA_ODATA_SRV" Namespace="GPA_ODATA_SRV"/>

  </edmx:Reference>

  <edmx:DataServices>

  <Schema Namespace="gpa_odata_ext_anno_mdl.v1" xmlns="http://docs.oasis-open.org/odata/ns/edm">

       <Annotations Target="GPA_ODATA_SRV.GuidedProcedure">

            <Annotation Term="LineItem">

                 <Collection>

                      <Record>

                           <PropertyValue String="Description" Property="Label"/>

                           <PropertyValue Property="Target" AnnotationPath="Description"/>

                      </Record>

                 </Collection>

            </Annotation>

  </Annotations>

  </Schema>

  </edmx:DataServices>

</edmx:Edmx>

When I run my UI5 project, I'm getting the following error message: Unhandled Error: Cannot read property 'getProblems' of undefined

Why does the front end does not recognize the annotation sent from the backend?

Thank you for your help

Best regards,

Stéph

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

When looking at the screenshot of the annotations you defined in SEGW for the property "Target" you are using "/Id" as a value with a leading slash.

I would use "Id" only instead.

Best Regards,

Andre

Former Member
0 Kudos

Hi,

Thanks for your answer!

Steph is not in the office then I changed it and it still do not work.

But if I change it in the Annotations.xml in the Web-IDE, it works!

But the Annotations are provided in the backend not the front-end.

Any other idea?

Regards,

Serge.