cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Elements Smart Filter and Column Filter not working together

sajanmathew7777
Explorer
0 Kudos
541

Good day

At our client we are using Fiori Elements reading ABAP oData V2 from SEGW, we have a smart filter at the top and a table with columns that has filters, if we use filters on their own they work, but if it is used together, it clears all filters.

<Annotation Term="UI.SelectionFields"> <Collection> <PropertyPath>Rbukrs</PropertyPath> //Company Code <PropertyPath>Ebeln</PropertyPath> //Purchasing Doc </Collection> </Annotation>

<Annotation Term="UI.LineItem"> <Collection> <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="Rbukrs" /> <PropertyValue Property="Label" String="{@i18n>,companyCode}"/> </Record> <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="Ebeln"/> <PropertyValue Property="Label" String="{@i18n>purchDoc}"/> </Record> </Annotation>

Kind Regards

sajanmathew7777
Explorer
0 Kudos

Hi Premendra

Thanks for your response, both filters works, but when both are used at the same time, all filters are cleared.

Example, if someone filters on purhchase order 1001* in smart filter and then filters further on purchase order column with 10011 , all filters are cleared

xlg00ru
Explorer
0 Kudos

Please let me know if you need help in code as well.

View Entire Topic
xlg00ru
Explorer
0 Kudos

There is an error in the provided code snippet. The <Annotation> tags are not closed properly. Here's the corrected version of the code:

<Annotation Term="UI.SelectionFields">
  <Collection>
    <PropertyPath>Rbukrs</PropertyPath> <!-- Company Code -->
    <PropertyPath>Ebeln</PropertyPath> <!-- Purchasing Doc -->
  </Collection>
</Annotation>

<Annotation Term="UI.LineItem">
  <Collection>
    <Record Type="UI.DataField">
      <PropertyValue Property="Value" Path="Rbukrs" />
      <PropertyValue Property="Label" String="{@i18n>companyCode}"/>
    </Record>
    <Record Type="UI.DataField">
      <PropertyValue Property="Value" Path="Ebeln"/>
      <PropertyValue Property="Label" String="{@i18n>purchDoc}"/>
    </Record>
  </Collection>
</Annotation>
In the corrected code, the <Annotation> tags are closed properly, ensuring the correct XML structure.
sajanmathew7777
Explorer
0 Kudos

Correct in the snippet I copied certain parts from the system, it is not closed properly.

But in the system it is closed properly.