Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid Live Filtering Expression

    Hi,
    In the SmartGWT showcase sample https://www.smartclient.com/smartgwt...er_live_filter
    The filter expression as below doesn't seem to be working.
    Tried the expression with comma as well as with brackets but still, it wasn't able to filter.
    Attached Files
    Last edited by emimayank; 13 Aug 2018, 11:59.

    #2
    That sample doesn't have expression-support switched on - try this sample instead.

    Comment


      #3
      Click image for larger version  Name:	image_11708.jpg Views:	1 Size:	34.6 KB ID:	254489 It is broken there as well, or maybe I'm putting in the wrong expression?
      Attached Files
      Last edited by emimayank; 14 Aug 2018, 06:21.

      Comment


        #4
        What are you trying to achieve with the the use of "|" characters? ORs?

        Comment


          #5
          Yes, ORs. So which is the correct expression among these?

          ~U|A

          ~U OR A

          ~U,A

          Comment


            #6
            What is the correct expression for filtering with an OR condition in the contains expression.
            In the showcase for expression filter, in the Country column,

            ~Q gives 2 results,

            but

            ~Q|W does not show any results.

            ~Q OR W does not show any results.








            Attached Files

            Comment


              #7
              This isn't currently supported - the simple expression-parsing subsystem doesn't deal with logical operators like AND / OR for text-based fields, because a search value could very well contain those strings. Logical operators will work with numeric fields though.

              There's an "inSet" operator, which provides "equals one of" searches, but there is no current operator that provides "contains one of" searches.

              For more complex filter creation, see the FilterBuilder widget, where you can build up multiple ORs/ANDs and so on.

              Comment


                #8
                *Deleted*
                Last edited by emimayank; 14 Aug 2018, 10:36.

                Comment

                Working...
                X