Comparing string fields not working as intended... - InfoPath Dev
in

InfoPath Dev

Comparing string fields not working as intended...

Last post 04-21-2009 07:43 AM by TiltnSpill. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 04-20-2009 01:56 PM

    Comparing string fields not working as intended...

    Good afternoon,

    I'm not quite sure I understand string fields in infopath.

    What i'm trying to do is compare different string fields on form open to control who can view data in the forms.

    Unfortunately, my string comparisons aren't working...

    I use the Qdabra webservice to grab UserName for each person that inputs data into the specific form.  Once the form is submitted to Sharepoint (finalized), I only want specific people to be able to view the form.

    The problem is even if two fields contain the exact same strings. (For example "User.NAME") It will always return false. 

    Am I going about comparing fields the wrong way?  If so, how should I be comparing them?

     

  • 04-20-2009 09:27 PM In reply to

    Re: Comparing string fields not working as intended...

    Hi,

    Once verify the case of the strings. The case of the letters must be same when you compare two strings otherwise it will return false.

    Swathip
    www.ggktech.com
  • 04-21-2009 05:31 AM In reply to

    Re: Comparing string fields not working as intended...

     they are identical in case.

  • 04-21-2009 05:39 AM In reply to

    Re: Comparing string fields not working as intended...

    How you are comparing the strings?
    Swathip
    www.ggktech.com
  • 04-21-2009 07:43 AM In reply to

    Re: Comparing string fields not working as intended...

    I believe I've found the problem.  It has to do with form open rules and initializing the string fields.  (I was comparing 2 fields before one of them was initialized.. leading to false positives.)

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.