Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
FilterCriterion ignored on implicit fetch — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

FilterCriterion ignored on implicit fetch

Received Response
12
Views
2
Comments
edited Aug 2, 2022 8:16PM in Visual Builder 2 comments

Summary:

We have oj-table configured with service data provider as below.

Content (required):

    "srTableSDP": {

      "type": "vb/ServiceDataProvider",

      "defaultValue": {

        "endpoint": "crmRestApi/getall_serviceRequests",

        "responseType": "getall_serviceRequests1",

        "itemsPath": "items",

        "keyAttributes": "SrNumber",

        "filterCriterion": "{{ $application.variable.srFilterCriterion}}",

        "uriParameters": {

          "onlyData": true

        }

      }

    }


  }

srFilterCriterion definition:

{

 "op": "$and",

 "criteria": [

 {

  "op": "$eq",

  "attribute": "BUOrgId",

  "value": "{{ $application.constants.BU_ID }}"

 },

 {

  "op": "$or",

  "criteria": [

  {

   "op": "$co",

   "attribute": "SrNumber",

   "value": "{{ $variables.searchVar }}"

  },

  {

   "op": "$co",

   "attribute": "CategoryName",

   "value": "{{ $variables.searchVar }}"

  },

  {

   "op": "$co",

   "attribute": "Title",

   "value": "$variables.searchVar"

  },

  {

   "op": "$co",

   "attribute": "StatusCdMeaning",

   "value": "{{ $variables.searchVar }}"

  }

  ]

 }

 ]

}


<div

  class="oj-flex oj-flex-item oj-sm-only-flex-direction-column oj-lg-padding-1x-end oj-helper-margin-start-auto oj-md-align-items-center"

  :class="[[ {'oj-sm-12': !$application.responsive.LG_UP()} ]]">

  <oj-label for="sr-search-input" id="sr-search-input-label"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!