This topic is locked

HTML Field Type in PHPRunner V3.1

3/27/2007 11:32:09 PM
PHPRunner General questions
D
douglasbraun author

Hello, I must have lost my way. I can't seem to find a way to display a field as HTML. Since I have HTML tags stored in some fields that's a bit of a drawback. Am I missing something? The HTML field type seems to be missing from the properties list in the Visual Editor.

Sergey Kornilov admin 3/28/2007

Douglas,
proceed to Visual Editor, open List page, double-click on any text field and set "View as" type to "HTML". This is it.

D
douglasbraun author 3/28/2007

Douglas,

proceed to Visual Editor, open List page, double-click on any text field and set "View as" type to "HTML". This is it.


Ah, excellent. Now to challenge you a bit. I want the field to show as HTML during edit as well. Let me explain. I'm maintaining a running dialog where content is entered and can be viewed as well as added to but it can't be changed or deleted. So I've edited the query to treat the dialog field as two fields. One that will display the content and one that can be used to add to the content. Then using Before Record Update I add the new content to the existing content and complete the update.
Here's part of the modified MySQL Query. It renames sr_message for viewing as sr_existing then blanks it. In this way I have the original content available for display as sr_existing and still have an empty field for new content entry.

`sr_message` as `sr_existing`,

'' as `sr_message`,
So what I need is the viewing capability of sr_existing (like in List) over in Edit. Sr_existing should display as HTML but it's just for viewing not updating. Now if it were addressable so I could reference it like sr_existing.=sr_message. That would be wonderful.
PS. This is one of the finest tools ever. You're a genius.

Sergey Kornilov admin 3/28/2007

Also very easy.
Just set "Edit as" type of this field to Readonly. Nothing else to modify.

D
douglasbraun author 3/29/2007

Also very easy.

Just set "Edit as" type of this field to Readonly. Nothing else to modify.


Oh good grief.
Brilliant. Thank you. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=16598&image=1&table=forumreplies' class='bbc_emoticon' alt=':o' />