Skip to Content
0
May 12, 2016 at 12:32 PM

Dynamic Filters (Data Binding) in oData Calls

241 Views

Hi all

Does the sapui5 support dynamic filters using data binding? Means the filter value would be based on binding and dynamic, and these would be defined in the xml view. I tried the following, but it didnt work

<OverflowToolbar id="footerToolbar" content="{
     path:'/ET_Workorder_ActionsSet',
     filters:[{ 
         path: 'DelMode_Desc', operator: 'EQ', value1:'{DelMode_Desc}'
     },{ 
         path: 'Curr_Status', operator: 'EQ', value1:'{WO_Status}'
     }]
     }">
  <ToolbarSpacer/>
  <OverflowToolbarButton text="{
     path:'Next_Action',
     formatter:'.getButtonText'}" 
     type="Accept"/>
  </OverflowToolbar>

If I pass fixed values to the filters, it works.

I know there was an issue reported in github, not sure if it has been resolved with the newer versions.

Thanks

Sandip