cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Filter Bar with UI annotation

Debashish1
Active Participant
0 Kudos

Hi experts,

I am facing in creating smartfilter bar with annotations with Blank template in Web IDE

Below are the steps that i did.

1. This is my SmartFilter Bar -

2. The annotation that defined in UI

3. Metadata of my entityset SalesOrderSet

4.

5. Filters button is still disable

Can any one help me to solve this problem.

Accepted Solutions (0)

Answers (2)

Answers (2)

Debashish1
Active Participant
0 Kudos

I solved myself the problem. I had to update the manifest json file.

max_anjos
Explorer
0 Kudos

Hi,

What do you do in manifest.json file? I'm with the same mistake 😞

kashif_bashir
Explorer
0 Kudos

Hi debashish007 . Do you mind sharing what needs to be fixed in manifest.Json.

looks like i am stuck with the same mistake.

your help is highly appreciated. At least myself & max.dosanjos would get some benefit. 🙂

Br,

Kashif

TheGokke
Active Participant
0 Kudos

I think you need to add the "key" property in your smartFilterBar:ControlConfiguration tag (key = the ID of the field you want to add as a filter)

Debashish1
Active Participant
0 Kudos

Hi Andy,

I have used the Key. But still not any solution

I have also noticed in network metadata.xml is not loading.

TheGokke
Active Participant
0 Kudos

That's indeed strange, I would focus on finding out why it is not loaded. The field shown be shown by default if you set visibleInAdvancedArea to true.

Do you have errors in the console? Try running the app with sap-ui-debug=true as parameter.

Also check if there are errors in the log via the transactions (frontend and backend)

Debashish1
Active Participant
0 Kudos

Hi Andy,

I have used the below code to load the metadata.

it loads $metadata, but nothing shows up

TheGokke
Active Participant
0 Kudos

I think the metadata is ok than. But you should check the console and the reporting transactions for other errors. I see the com.tatayui.anno entry in red for example. Can be related to that