• Stuart Jones
    May 20, 2016 at 8:15 pm #1833

    Hello,

    I am migrating a Heritage Human Service to be a Client Side Human Service. I have a list and am using a Table to show the list. One of my data items is a string and is HTML. In my heritage Human Service I used an Output Text control to and my data was rendered without the HTML tags. However, this doesn’t seem to work in my client side human service. Is there a ‘standard’ way to properly render an HTML string?

    Thanks

    Neil Kolban
    May 20, 2016 at 9:40 pm #1834

    Howdy, reading your post I wasn’t sure quite what effect you wanted to achieve.  In my tests, I created a string which contains:

    “hello <b>world</b> again”

    and when I bind this string to an Output Text Coach View (SPARK), I find that the output “honors” the HTML formatting (in my example the word “world” is boldened).  Is this not what you want?  Are you seeing something different?

    Stuart Jones
    May 22, 2016 at 6:12 pm #1838

    Hello Neil, and others,

    I agree with you. An Output Text CV is what I had used for my server side HS and I did the same thing in my client side HS. I was surprised when it didn’t work. The only thing that I had changed, moving to a CSHS, was to put my Table in a Well CV. I configured the Well to use a non default Color Style – Primary. When I moved the Table out of the Well, my html based Output Text appeared as expected

    I then put the Table back in the Well but set the Color Style to Default. My Output Text data appeared just fine. I experimented with other Color Styles and if the style is anything but Default, my Output Text is empty. This made me curious so I placed a regular Output Text CV in the well (as well as the Table) and bound it to a String that contained HTML content. My Output Text CV wasn’t affected by changing the Color Style but the Output Text column in my table fails to show anything unless the Color Style is set to Default.

    So, I will change my question to what’s happening in a Well with non-default Color Style to affect how output text within a Table is displayed?

    Stuart…

    Neil Kolban
    May 23, 2016 at 8:12 am #1857

    Howdy Stuart,

    I think this is a bug.  When one changes the color style of the Well, the font color of children Coach Views becomes “white”.  One can see this is happening if one performs a “selection” of all the text on the browser … one can then see that the selected text is present … just not visible (white on white).  I don’t know any workarounds at this time.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search