NetTalk Central

Author Topic: Show HTML in browse column  (Read 3564 times)

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Show HTML in browse column
« on: May 07, 2013, 07:25:53 AM »
I am trying to display a column in one of my browses as HTML. I have ticked the column setting: Allow xHTML in column, but it is only displaying the field's text which includes the HTML coding. When I create a separate field on the same parent form that contains the browse procedure that uses the field type: Display, and tick the Allow xHTML in column setting, the field's text IS displayed as HTML. I've enclosed a png file that shows the issue.

Regards,

Mark

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Show HTML in browse column
« Reply #1 on: May 07, 2013, 09:34:18 PM »
did you perhaps tick on "allow xHtml in column header" and not "allow xHtml in column"?

cheers
Bruce

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Show HTML in browse column
« Reply #2 on: May 08, 2013, 03:05:16 PM »
No. I definitely have the Allow xHTML in column option ticked, not the column header.

Mark

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Show HTML in browse column
« Reply #3 on: May 08, 2013, 03:18:39 PM »
Update: I fiddled with the allow xHTML and allow unsafe xHTML settings and discovered the following: If there is only one <p> tag in the data field containing the HTML, then it will display. But if the data field contains more than one <p> tag, not only will it not display, but when you click on the browse row that contains the data nothing happens--you cannot select it.

Can you think of any workaround to allow all the HTML in a field to be displayed? I have created a table structure that will display in tree format, but I need to be able to display HTML data in one of the fields. For example, FAQ's with the answer in HTML.

Thanks,

Mark

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Show HTML in browse column
« Reply #4 on: May 08, 2013, 03:46:30 PM »
just a thought,

your original screen shot, shows your html truncated, is your field big enough?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Show HTML in browse column
« Reply #5 on: May 08, 2013, 09:28:58 PM »
yeah, sounds to me like a field truncation problem as well. Check the "picture" on the browse column is not set to clip the field. (ie '@S255' would clip it to the first 255 chars, whereas '' wouldn't)

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Show HTML in browse column
« Reply #6 on: May 10, 2013, 01:28:31 PM »
Yes, that was it! When I get my tree working, I'll try and post an example...

Thanks,

Mark