cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori element - Custom Filter default selection

arunmbarec
Participant
0 Kudos
I have created a custom filter in the Fiori element list report application (OData V4). The filter seems to be working fine and i am able to select a month and filter the data based on that. In the list i have i have hyperlink to navigate to another application. While i  go to other application and navigate back, the other filters selected in the filter bar are retaining the value from the App State. But the custom filter i have loses the selected value. How can i set the value back during the navigation? Here is my xml code. How can i retain this filter value.
<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m" > <!-- selectedKey="{path: 'filterValues>', type: 'sap.fe.macros.filter.type.Value', formatOptions: { operator: 'managetimesheet.ext.fragment.MonthFilter.filterItems' }}" --> <ComboBox id="MonthFilter" core:require="{handler: 'managetimesheet/ext/fragment/MonthFilter'}" selectedKey="{path: 'filterValues>', type: 'sap.fe.macros.filter.type.Value', formatOptions: { operator: 'managetimesheet.ext.fragment.MonthFilter.filterItems' }}" items="{ path: '/', sorter: { path: 'Type', descending: false, group: true} }" valueState="{path: 'filterValues>', formatter: 'handler.onFilterInputFormatValue'}" > <items> <core:Item id="MonthItem" key='{ID}' text='{Text}' /> </items> </ComboBox> </core:FragmentDefinition>

Accepted Solutions (0)

Answers (0)