Announcement

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

    SelectItem ampersand issue

    We have a SelectItem that has values with the ampersand character. These items are correctly shown in the list but when I select such an item, the selected value is shown incorrectly (all characters behind the ampersand are lost). Is there a solution for this?

    The attached screenshot shows this problem (P vs P&ID).

    We are using SmartGWT 2.3 Pro.
    Attached Files

    #2
    Wild guess: try replacing the value with '&' character with &

    regards,
    Andrius J.

    Comment


      #3
      Originally posted by phuqit
      Wild guess: try replacing the value with '&' character with &
      I have tried this and then indeed it works. But I don't want to convert all ampersand characters within my datasource when I show them and convert them back when I save the values. Or is there an easy way of doing this?

      Comment


        #4
        Anyone with suggestions?

        Comment


          #5
          We have updated our SmartGWT version to 2.4 Pro but still the issue persists.

          I did some further testing and noticed the following values are displayed correctly when selected by the SelectItem:
          - 04. Contracting & Procurement
          - 03. O&M organisation
          - 05. P&ID(s)

          The following value is shown incorrectly when selected (see attached screenshot):
          - 06. P&IDs

          Comment


            #6
            Display values are treated as HTML. The previous suggestion of quoting the ampersand as & was correct. There are lots of places you could do this and the easiest depends on how your code is arranged.

            Comment

            Working...
            X