cancel
Showing results for 
Search instead for 
Did you mean: 

[SEGW] Gateway service annotations issue for smartfilterbar/smarttable

yanev
Participant
0 Kudos

Hi,

I'll go straight forward to the problem I'm facing.

I want to use the smartfilterbar control in my JS view. I'm using theis tutorial as a reference: SAPUI5 SDK - Demo Kit. But I noticed that the metadata is lacking the Annotation tags. So I tried importing vocabularies into my model, but the problem here is that although I'm using the same vocabulary as in the tutorials(com.sap.vocabularies.Common.v1) I'm not able to see the Record property as in the tutorial metadata and then all the rest of the subproperties to it, or to be more concrete I can't create this part:


<Record>

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

<PropertyValue Property="CollectionPath" String="Currency" />

<PropertyValue Property="SearchSupported" Bool="true" />

<PropertyValue Property="Parameters">

<Collection>

<Record Type="com.sap.vocabularies.Common.v1.ValueListParameterOut">

<PropertyValue Property="LocalDataProperty"

PropertyPath="CurrencyCode" />

<PropertyValue Property="ValueListProperty"

String="CURR" />

</Record>

<Record

Type="com.sap.vocabularies.Common.v1.ValueListParameterDisplayOnly">

<PropertyValue Property="ValueListProperty"

String="DESCR" />

</Record>

</Collection>

</PropertyValue>

</Record>

These are all the properties I get with that vocabulary:

Can the problem be with the versions, because I noticed that we have SP Level 0007 on the system

And on top of that it has a SAPUI5 version 1.20.1:

Any ideas on this matter are welcomed.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

yanev
Participant
0 Kudos

The problem was in the version of the Gateway component. Make sure that you have the latest version (SP Level 0011) for that tutorial.

Answers (0)