Skip to Content

Invalid Annotation XML when adding Common.Label to UI.SelectionFields Annotation

Hello Annotation Modeler Experts, Hi Mariana Naboka,

I've used the Annotation Modeler in this Version:

in SAP Web IDE Full-Stack Version: 181206 on SAP Cloud Platform production.

Here I've redefined the External Annotation for the UI.SelectionFields which resulted in this HTML:

<Annotation Term="UI.SelectionFields">
	<Collection>
		<PropertyPath>Salesdocno</PropertyPath>
		<PropertyPath>Divisiontxt</PropertyPath>
		<PropertyPath>Purchno</PropertyPath>
		<PropertyPath>Transactiontype</PropertyPath>
		<PropertyPath>Documentdate</PropertyPath>
	</Collection>
</Annotation>

When I now Add a "Common.Label" with a String value:

The result is this invalid XML:

<Annotation Term="UI.SelectionFields">
	<Collection>
		<PropertyPath>Salesdocno<Annotation Term="Common.Label" String="'Abrufauftrag'"/>
		</PropertyPath>
		<PropertyPath>Divisiontxt</PropertyPath>
		<PropertyPath>Purchno</PropertyPath>
		<PropertyPath>Transactiontype</PropertyPath>
		<PropertyPath>Documentdate</PropertyPath>
	</Collection>
</Annotation>

Either it is not possible to have Common.Label annotations for SelectonFields or the nnotation Modeler has a bug here.

Hope for help.

Best regars
Gregor Wolf

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    2 days ago

    Hello Gregor,

    you are right, no annotation can be applied to <PropertyPath> elements because the element body contains the path, i.e. there’s no place for the annotation.

    We are now working to implement this restriction in SAP Web IDE Annotation Modeler to avoid the confusion.

    Best Regards,

    Mariana

    Add comment
    10|10000 characters needed characters exceeded