Skip to main content

Ampersand in where clause

Comments

2 comments

  • Permanently deleted user

    Hi Mark,

    I've also just run into this problem with my own workflows.  I found another discussion https://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=7&thread=45940 where they suggest an Assign Task to replace the single apersand with two ampersands.  I have not tested it myself yet, but hopefully it works.  

    I've also noticed that the global search bar is not able to search with a single ampersand, but when you replace it with two ampersands, the global search works just fine.  Do you think this problem will be fixed in the new release of HTML5 2.4?

    0
  • Permanently deleted user

    Just tested it and it worked, the single apostrophe needs to be replaced by two single apostrophes.

    Assign Task:

    strLastName = strLastName.ToString().Replace("'","''")

    0

Please sign in to leave a comment.