2 Replies Latest reply on Sep 12, 2014 5:50 AM by beverly

    XML find == operator?

    jhunter.tty

      Hi,

       

      I am using XML web publishing and I need to have the find operation match the input exactly (filemaker client: ==).

       

      In XML I seem to just have 'eq' (filemaker client: =) as an option.

       

      The issue I'm having with the 'eq' operator is that it will match incorrectly when I have special characters in the field.

       

      Is there any way for me to do an exact match with the XML url?

       

      FMS 13

       

      Thanks,

      -Jeremy

       

      Field Value: Str!ng

       

      XML find with eq operator:

      Operator: eq

      Value: Str (match - bad)

      Value: Str!n (match - bad)

      Value: Str!ng (match - good)

      Value: St (no match - good)

       

      Filemaker Client:

      Operator: =

      Value: Str (match - bad)

      Value: Str!n (match - bad)

      Value: Str!ng (match - good)

      Value: St (no match - good)

      Operator: ==

      Value: Str (no match - good)

      Value: Str!n (no match - good)

      Value: Str!ng (match - good)

      Value: St (no match - good)

        • 1. Re: XML find == operator?
          user19752

          Use 'bw' and prepend '==' to finding value.

          • 2. Re: XML find == operator?
            beverly

            jhunter does not specify if this is URL or FORM request, so I'll expound on user19752's reply:

             

            the nature of requests is that if you use the SAME field more than once the request is concatenated:

             

            URL:     &abc=%3D%3D&abc=String

             

            FORM:     input type=hidden name=abc value="=="

                      input type=hidden name=abc value="String"

             

            both of these actually SEND the request so that "abc" is really:

             

                 ==String

             

            u. said to use the 'bw' operator and prepend the "==". since by default all requests in FileMaker are 'bw' (begins with), this is an unnecessary step. just prepend the "==". NOTE the URL encoding of the character "=" as "%3D" in the URL format of the request.

             

            HTH,

            beverly