Render HTML text as read-only field

Hi,
I want to display the text entered in a rich text editor as "true" HTML in read-only mode. If I make the field read-only (Read Only = Always), the display is screwed up quite badly. Obviously CSS gets in the way somehow.
Here's how to see my problem:
- create a report/form with a text field (e.g. a CLOB, but that doesn't matter), displayed as "Rich Text Editor", and enter some text.
- create the same report/form again, this time making the field read-only.
Quite a difference...
Has anybody a quick answer?
Thank you,
Thomas

Hi,
yeah, that would be ok. I tried it already, but if I use something like "&P8_HTML.", the HTML text is displayed and not rendered.
But I followed this up again after reading your advice, and I found that if I enter true HTML code as the region source, it's rendered as expected. The rest was simple:
- create a separate region for the HTML display (as you proposed).
- make the region type "PL/SQL (anonymous block)".
- use "BEGIN \n htp.print(:P8_HTML); \nEND;" as region source.
Thank you all very much for this instantaneous help!
Cheers,
Thomas

Similar Messages

  • Can no longer select text in email template or read only field with mouse using IE or Firefox?

    Hi Guys,
    I can no longer select text in email template or read only field using my mouse in IE or Firefox anymore. We are using CRM 2011 rollup 18 applied with IE 11 and the latest version of Firefox. We only applied roll up 18 in Feb when this issue began.
    Thanks
    Dave
    David Kelly

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these. While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    These features rely on JavaScript, and it sounds as though you have scripting enabled if you get (the wrong) color changes. Some add-ons might alter the way scripts operate, so a standard diagnostic to bypass interference by extensions (and some custom settings) is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode."
    If those features work correctly, this points to one of your extensions or custom settings as the problem.
    To also disable plugins, you can use this page:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Plugins category
    Any change?

  • Field Validation on Read Only Field

    I'm trying to create a pop up error box if a field contains null values. The problem is that the field I'm trying to do the validation on is a read-only field. It's the Account field on the Contact Object or Module. It won't allow me to include validation. The goal here is to have a POP UP ERROR box come up if someone does not select a value for that field. Making it required doesn't generate a popup box, it only has a small "required" text next to the field which can be easily missed by a user. Any ideas?

    Hi !
    I found the way to do what you wan't, but it sounds a bit strange for me...
    You have to put a field validation on the Account Id field. I made some tests to know what is in the AccountId field when it's blank and i see that the value is "No Match Row Id" !!
    So your validation rule must be simply
    *<> "No Match Row Id"*
    It worked for me, the error message appears... But I think this is something we have to report to Oracle...
    Hope this will help, feel free to ask more !
    Max

  • Search help overwrite a read-only field

    Hi, I have some problems with search help and hope someone can help me.
    My search helps (either standards or customs) work perfectly,  but a strange behaviour
    occur on Read-Only fields. If I open the Search Help popup and select a value, it overwrite the
    READ-ONLY value !!!!!
    Hope you can help.

    Depending on the support pack level you are on - search helps - freely programmed or otherwise don't seem to trigger off read only fields (I noticed this when we moved to NW7.01)
    I've got around this by making the field a link to action - providing the read only link I want as the text, and then calling the following code:
    call method cl_wdr_value_help_handler=>handle_application_def_vh
        exporting
          context_element      = context_element
          component_usage_name = 'JOB_SELECTION'
          context_attribute    = 'JOB'.
    Where component 'JOB_SELECTION' is my freely programmed value help - implementing WD interface IWD_VALUE_HELP.
    This was helpful as I wanted the search help to trigger and the user to be able to update the field but only by using the search help - I didn't want the user to be able to write anything in the field.
    it was a particular use case I had - it may or may not fit your needs.
    Cheers, Chris

  • SPD Workflow - Update a hidden/read only field

    Hi there,
    I have a list with a hidden/read only field (ie Status).  So the user cannot update this field using the form or datasheet ...etc.
    I have an SPD workflow that I was hoping would modify the value of the Status field.  But it appears as though the option to modify it is not available as long as it is hidden and/or read-only.  Aka, the field doesn't show up in the list of fields
    to modify for the "Set field on current item" action.
    I was hoping to avoid importing this into a visual studio project and adding in code, which I believe would do the trick; so are there any solutions that I can do within SPD itself?
    Thanks in advance.

    Hi Eirc,
                       as i understand you question  you want to update hidden filed from workflow ? 
     solution 1 when workflow started it change field read only to false and after completing workflow
    change it again true.  by code.
    Solution 2 Use javascript to make the field read only on presentation.
    http://sputility.codeplex.com/ check this lib that might help you to manage readonly field on runtime
    Solution 3 : you achieve by setting column level permission 

  • Any difference in signature lock function, read-only field property, & signed tab "Mark as read-only

    Is there any real difference between
    1) simply setting a field to read-only in a custom script on the Signed tab of a signature field by:
    this.getField("field name").readonly = true;
    2) including the field in the "Mark as read-only: " list of fields on the Signed tab of a signature field
    and, 3) including the field in a call to the setLock() method of a signature field?
    As far as I can tell there isn't, but am I missing something? And if they are all the same, then since setLock() must execute in a priviledged context, it seems the harder way to get a read-only field.

    Hi Ron,
    It certainly sounds like you are on the right track.What version of Acrobat are you using, is it Pro or Standard, Mac or Win? I see where you mentioned the file was created in Acrobat X, but I'm not sure that the app that create the PDF file is the same version as the one you are using for editing.
    Steve

  • How to make read only field in Task list?

    Hi All,
    How to make read only field in Task list?

    This can be done one of two ways:
    1. Customize the form in Infopath, right click your field and disable the control.
    2. Use JavaScript/jQuery on the page to disable the element.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Read only fields clear with for actions

    Read only fields that are populated via lov mappings clear when any button is pressed on the page. This only happens when the field is read only or disabled. Is this intended and if it is what is the workaround???

    The button must be a submit button.
    Readonly fields or messageStyledTexts are not formElements, that they can post the value back to the ViewObject. Hence they just pass empty value to the underlying VO, when pressed formSubmit. The empty value refreshes the UI when the page refreshes after submit.
    Workaround for this is to have formValuebean that has the same VO attribute and the same LOV mapping as the readOnly field or MessageStyledText. It will act as mirror to submit the values.

  • Read Only Fields

    When a read only field is in a user role and the field is removed, the read only flag disappears.
    How can controls be implemented so that a role can not be added back in and the read only doesn't follow.
    It is important to have some fields read only and some edittable and they may change periodically.

    There is two ways to make a field "Read Only". (1) in step 2 of a Layout (2) Edit the field in the Field Setup.

  • Upload a value in read-only field using Webservices or Workflow

    Can you please let me know if is feasible to upload a value into a read-only field using webservices or workflow
    If so, can you please provide an example?
    Thanks

    Using WS, you cant update the field value, if it is set as "Read-Only" @ the object - Field definition level, but you can update that using WS if it is set as "Read-Only" @ the layout level. Same applicable to Workflows too
    -- Venky CRMIT

  • Updating Read-Only Field

    All,
    We have some read-only fields (configured @ the page layout settings) in OnDemand edit form
    As per the business rule, the values for these fields has to be set externally using a weblink in the same form
    We are able set back the externally selected values in the OnDemand page to the read-only fields
    But when the user tries to save, the information it is not "Saved" in OnDemand database but it works fine if fields are "Editable"
    Is there a "Server Side" restriction in OnDemand which doesnt allow to update the moidfications on the client side to read-only field on "Save"?
    Are there any workarounds to solve this issue?
    Appreciate your inputs
    Regards,
    Venkatesan
    CRMIT

    Venky,
    If I understand you correctly, you're setting the field values on the client, pushing the values into the edit form. The layout read-only setting has to prevent that - that's what it's for. What you should be able to do is set the values on the back end, using a web service call.
    Regards,
    AO.

  • This operation is not available for read only field 'Type MVF'

    Hi All,
    We are using OrderToCash PIP and we are on Siebel 8.1X.
    While Synching the customer from Ebiz to Siebel facing the following issues:
    Method 'WriteRecord' of business component 'Account' (integration component 'Account') for record with search specification '[Row Id] = "2d3434313239353"' returned the following error:"This operation is not available for read only field 'Type MVF'.(SBL-DAT-00402)"(SBL-EAI-04451)
    Please suggest us what steps to be done in Siebel.
    Thanks
    Maanasa

    First check the process why this is calling Account BC WriteRecord(). The field "Type MVF" might be read only and this sync process is trying to update this field which is read only. This is the reason for the error. Check the OM log / EAI Obj Manager Comp log (set log level to 5) and check.
    Joseph Arul Dass

  • Urgent:Regarding Reports for read only field.

    Hi All,
    Does it happen that the fields which are read only or system defined does not get reflected in report subject area or so ? I have created one report where one field 'Triage' which is Look up window and Picklist read only field is not showing up values in report subject area.Is this due to the field which is a Picklist read only field.
    Quick response will be highly appreciated!!
    Thanks and Regards,
    Manish.

    user12880720 wrote:
    Hi All,
    Does it happen that the fields which are read only or system defined does not get reflected in report subject area or so ? I have created one report where one field 'Triage' which is Look up window and Picklist read only field is not showing up values in report subject area.Is this due to the field which is a Picklist read only field.
    Quick response will be highly appreciated!!
    Thanks and Regards,
    Manish.Hi Manish,
    You do not specific if this is a multiselect picklist you are refering to or what type of reporting you are trying real-time or analytics?
    Anyway please see the below from the help file:
    Multiselect Picklists
    Multiselect picklist (MSPs) values are not supported in real-time reporting subject areas. They are supported in the historical subject areas for the following subject areas:
    Account
    Activity
    Contact
    Dealer
    Lead
    Opportunity
    Service Request

  • Read only field

    Hi friends,
    I have to make one field in the selection screen(report) as a read only field.  Can you suggest how to do it.
    regards,
    John

    Hi,
    You can refer to the following code:
    AT SELECTION-SCREEN OUTPUT.
    loop at screen.
      if screen-name eq 'PNPS$MSL'.
        screen-active = 0.
      endif.
      modify screen.
    endloop.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Problem with HTML in a read only textarea item

    I'm working on a messaging system for our site. For the body of the message, we use a standard textarea item. However, if we come to the messaging page from a certain page in our system, then we pre-load the textarea item, and make it read only. The only problem with this is that there are HTML tags in the body that we try to pre-load. This is causing problems because they aren't being interpreted as tags, but are being displayed as text. If I make the textarea editable, then everything looks fine, it's just when I set the area to be read only that it doesn't work. Any thoughts on how to fix this? Thanks!

    Not always. A user is allowed to edit that area in most circumstances except for when the user arrives at the page coming from 1 page in particular. In this case, then the field is read-only. At all other times though, it is editable.
    As a workaround, whenever I know I'm coming from this page, I set a variable, and if the variable is set, then I use a Display Only item and then hide the Textarea. If the variable is not set, then I hide my Display Only item and show the Textarea. Not very elegant, but it works.

Maybe you are looking for

  • "USB Hardware Not Recognized by Windows"

    Please help. I keep getting an error mssage "USB Hardware not Recognized by Windows" I believe i have tried it all. Uninstalled Itunes. Reinstalled Itunes. Okay I just tried pluggin it in as I typed this and it worked. The only thing I did diffrent w

  • Problem mit öffnen mehrerer PDF's in Adobe Reader X

    Hallo Adobe Community Ich habe ein Problem bei einem unserer Kunden mit Adobe Reader X. Es besteht das Problem, dass das öffnen von mehreren PDF Dateien nur verzögert möglich ist. Es wird jeweils das erste angeklickte PDF ohne Probleme geöffnet und a

  • BP Transaction Horizontal scroll bar is not working

    Hi, Horizontal Scroll Bar Not working for Marketing Attribute after Upgradation from Crm 6.0 to EHP 7.02 Scroll bar need to be Enabled or active Please suggest any OSS Note or any Idea in doing this .Please help me out Thanks & Regards Srinivas

  • Adobe ID Sign In Not Connecting to the Internet

    I am not using brand-new software. I had to wipe my computer recently and now I am trying to install CS6. Same computer, same software, same product ID codes, and I cannot sign in with my Adobe ID using the installation client. My computer's internet

  • Can't print JPEG image

    When I try to print a jpeg image from PE it goes to the "send fax" mode of my HP Photosmart Premium Printer/Fax/Scanner/Copy/Web.  On the print screen that comes up I have two items listed i.e. fax and printer.  I highlight the "printer" but it still