cancel
Showing results for 
Search instead for 
Did you mean: 

How to use P13 Dialog Filter in SAPUI5 Application?

Jayakrishnan
Active Participant
0 Kudos

Hi Experts,

I am working on one custom application development. In my app i need to implement P13n Dialog filter .

How to get the added filter values from the dialog. And how i can send this to OData Backend Service?

Please help me solve this. If you have any samples please share the link.

Thank you,

Regards,

JK.

former_member673418
Discoverer
0 Kudos

hi jayakrishnan.chnadramohan,

i have a similar requirement....have u implemented the filter?

Accepted Solutions (0)

Answers (1)

Answers (1)

ThorstenHoefer
Active Contributor

Hi,

use a JSON Model to get the Filter Values:

   <P13nDialog 
          id="idFilterDialog"
          title="Test Page"
          ok=".onFilterDialogOk"
          cancel=".onFilterDialogCancel">
     <panels>
       <P13nFilterPanel 
         filterItems="{filterModel>/arrFilter}"
         addFilterItem=".onAddFilterItem"
         removeFilterItem=".onRemoveFilterItem"
       >
       <items>
       <P13nItem 
         columnKey="myColumnKey"
         description="Filter"
         text="mein Filter">
       </P13nItem>
       </items>
       <filterItems>
       <P13nFilterItem 
           key="{filterModel>key}"
           columnKey="{filterModel>columnKey}"
           exclude="{filterModel>exclude}"
           operation="{filterModel>operation}"
           value1="{filterModel>value1}"
           value2="{filterModel>value2}">
       </P13nFilterItem>
       </filterItems>
       </P13nFilterPanel>
     </panels>
   </P13nDialog>