Announcement

Collapse
No announcement yet.

Filter On Multiple fields using code on run time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Filter On Multiple fields using code on run time

    Hello,

    In list small view I need to filter data with 2 conditions, on 2 varchar field values.

    Suppose in the quote, when we select a product, I need to pass product name and brand name, to use as filter condition for the product list vew.

    How can I achieve this?

    primaryFilterName works for only one field ryt?

    Please help.

    Thanks.


  • #2
    Hi,
    no primaryFilterName works for the condition you set. You cant set a several fields

    Comment


    • krishnapriya
      krishnapriya commented
      Editing a comment
      Condition I want to give on run time. So the name can be any X. So I cannot use primaryFilterName for this ryt

  • #3
    Or how to use getSelectFilters for a varchar field in list small view?

    Please help
    Last edited by krishnapriya; 02-27-2018, 07:26 AM.

    Comment


    • #4
      if productName is varchar

      getSelectFilters: function () {
      return {
      'productName': {
      type: 'equals',
      field: 'productName',
      value: "123",
      }
      };
      },

      Comment

      Working...
      X