Skip to Content

how to use conditional operator for filters in SAPUI 5.

Dear Experts,

Please tell me how to use conditional operator for filters in SAPUI 5. As in the sample source code below,

I would like to know how to describe how to combine multiple conditional expressions with and, or or on an XML format View.

What you can realize with JavaScript is known in the past Q & A, but if possible, I want to realize the condition with XML view. If you do not specify anything, it will recognize that it will be [and] by default.

In the following source code format, the condition operator (and: false) is ignored as well.

    <semantic:content>
      <Table
        id="table"
        width="auto"
        items="{
          path: '/C_BusinessPartnerCustomer',
          sorter: {
            path: 'BusinessPartner',
            descending: false
          },
          filters : [
            { path : 'IsActiveEntity', 
              operator :'EQ', 
              value1: 'false'
            },
            { path : 'SiblingEntity/IsActiveEntity',
              operator :'EQ', 
              value1: 'null'
            }
          ],
          and : false
        }"
        noDataText="{worklistView>/tableNoDataText}"
        busyIndicatorDelay="{worklistView>/tableBusyDelay}"
        growing="true"
        growingScrollToLoad="true"
        updateFinished="onUpdateFinished">


Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers