Skip to Content
0

how to use conditional operator for filters in SAPUI 5.

Aug 28, 2017 at 11:58 PM

43

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers