Script change for rich text use

I am using the script below to add user instructions to Textfields. I would like to do the same thing with textfields formatted for rich text but this script stops working when i set the field to accept rich text. Can you tell me how to modify the script so it will work in a ttext field that will allow the user to enter rich text?
MeetingMinutes.#subform[2].Attendees::initialize - (JavaScript, client)
this.execEvent("exit");
this.format.picture.value = "null{'" + this.assist.toolTip.value + "'}";
MeetingMinutes.#subform[2].Attendees::enter - (JavaScript, client)
this.fontColor = "0,0,0";
this.font.posture = "normal";
MeetingMinutes.#subform[2].Attendees::exit - (JavaScript, client)
if (this.isNull)
this.fontColor = "153,153,153";
this.font.posture = "italic";
MeetingMinutes.#subform[2].Attendees::prePrint - (JavaScript, client)
this.format.picture.value = "";
MeetingMinutes.#subform[2].Attendees::postPrint - (JavaScript, client)
this.format.picture.value = "null{'" + this.assist.toolTip.value + "'}";
Thank you,
-Don

Hi Don,
Similar to your script above, but try this in the enter event:
if (this.rawValue === this.assist.toolTip.value) {
          this.rawValue = "";
and then this on the exit event:
if (this.rawValue === null) {
          this.rawValue = this.assist.toolTip.value;
Alter to suit formatting and initialize event, etc.
Niall

Similar Messages

  • MessageRichTextEditor - How to hide the link 'Change to Rich Text Mode'

    Hi,
    I will be using RTE only in plain text mode.So I want to hide the link 'Change to Rich Text Mode'.How can we do this.
    Please suggest.
    Regards,
    ashok

    Personalize the page to hide the link and set its rendered property to false.
    --Kumar                                                                                                                                                                               

  • How can I change Label's text using ActionScript?

    Hi~ everyone~
    I want change Label's text using ActionScript.
    Test.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="init()">
    <fx:Script>
      <![CDATA[
       private function init():void{
        var btn:BtnScript = new BtnScript();
        this.addElement(btn);
      ]]>
    </fx:Script>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Label x="182" y="149" text="Label" id="lbl"/>
    </s:Application>
    BtnScript.as
    package
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    import spark.components.Button;
    public class BtnScript extends Button
      public function BtnScript()
       super();
       this.addEventListener(MouseEvent.CLICK, eventHandler);
      private function eventHandler(event:MouseEvent):void{
              // lbl.text = "changed text";
           // HOW CAN I ACCESS LABEL IN MXML FILE?
    I'm about to learn flex. Please help me.
    Thanks in advanced.

    You could achive this very easily(but this shouldn't be used in production code as it'll be difficult to manage as the project grows) by defining a static data member varibale of DataType Label something like below, (modified/added code in BOLD)
    Test.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="init()"
          creationComplete="creationCompleteHandler(event)">
    <fx:Script>
      <![CDATA[
       private function init():void{
         var btn:BtnScript = new BtnScript();
         this.addElement(btn);
       private function creationCompleteHandler(event:FlexEvent):void{
         Model.someLabel = lbl;
      ]]>
    </fx:Script>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Label x="182" y="149" text="Label" id="lbl"/>
    </s:Application>
    BtnScript.as
    package
      import flash.events.MouseEvent;
      import mx.controls.Alert;
      import spark.components.Button;
      public class BtnScript extends Button
        public function BtnScript()
          super();
          this.addEventListener(MouseEvent.CLICK, eventHandler);
        private function eventHandler(event:MouseEvent):void{
              // lbl.text = "changed text";
          // Now use Model.someLabel which is basically 'lbl'.
          Model.someLabel.text = "changed text";  //Mission Accomplished....
    Model.as
    package
      public class Model
        public static someLabel:Label;
    Note: This approach is just to give you an idea but instead should use the MVC pattern.

  • Create new tag for selected text using API?

    Hello,
    I want to add new tag for the selected text just like 'Create Tag from selection' .
    is it possible to create tag for selected text using acrobat api?
         please,help me.

    As per sample of snippetRunner for adding tag for selected text.
    I tried below code
    PDPage pg;
    AVDoc avDoc = AVAppGetActiveDoc();
    PDDoc pd = AVDocGetPDDoc(avDoc);
        pg = PDDocAcquirePage(pd, 0);
    ASAtom theSelectionType = AVDocGetSelectionType(avDoc);
    if (theSelectionType == ASAtomFromString("Text")){
        PDTextSelect ts = static_cast<PDTextSelect>(AVDocGetSelection(avDoc));
        PDSTreeRoot pdsTreeRoot;
        CosObj pageObj = PDPageGetCosObj (pg);
        PDSElement newElem;
        PDSElementCreate(pd, &newElem);
        char buf1[64];
        strcpy (buf1, "A new structure element");
        // set its type as "Document" standard type
        PDSElementSetType(newElem, ASAtomFromString ("Document"));
        // set its title
        PDSElementSetTitle(newElem, reinterpret_cast<const ASUns8*> (buf1), strlen(buf1));
        PDSTreeRootInsertKid (pdsTreeRoot, aElem, kPDSAfterLast);
        PDSElementInsertMCAsKid // here something i have to add
    If i have PDTextSelect how i can add tag for selected text.like user add tag using "CreateTagForSelectedText" option.
    please,help me.
    thanks.

  • How to enable copy , cut for Rich Text editors

    I have a rich-text with cut , copy options but when i try to cut or copy it gives me the following error -
    Your browser's security settings don't permit the editor to execute cut operations.
    Please use the keyboard shortcut (Ctrl/Cmd+X).
    I have tried editing the user.js and almost all the solutions given related to it here but still it doesn't seem to work.
    Please Please Please give me some solution for this.

    Are you not able to use the text editer to access anything displayed with Firefox, for instance this forum, or is it only specific file locations that are affected.
    What is the software you are using, and have you tried any other alternatives.
    And can you give a very simple example of something you try to do and can not.
    See also
    * This article seems likely to be highly relevant http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
    ** https://addons.mozilla.org/firefox/addon/allowclipboard-helper/
    * Aimed more at developers themselves https://developer.mozilla.org/en-US/docs/Using_the_Clipboard
    * If it is particular domains or file locations, and is a change since Firefox 29 then this article may be applicable https://developer.mozilla.org/en-US/Firefox/Releases/29/Site_Compatibility#Security

  • Is it possible to do a GLOBAL color change for both text and graphics in ACrobat XI?

    I used to do this using the Pitstop Pro plugin but now Pitstop is almost $900 and this is the only thing that I would use it for, not worth the investment
    I can change text color by selecting individual text items, but I want to change all of the red text into white text
    I also need to change all of the red graphics into white graphics and I can't figure out how to do that either
    I have a trial version of XI on a Mac and will buy it if it can do what I am trying to do, i.e. global color changes to both text and graphics
    thanks!!

    I have version 6, but it is way out of date, doesn't work on my current system, I downloaded a trial version of the new one, version 12 I think, now I have to decide if I can afford to buy it, it is not cheap!
    oops, sorry, I didn't read your entire message, aargh!
    I'll check with them if I can upgrade from this early version, thanks for the suggestion!
    (edited because I didn't read properly!)

  • Database Column Type for Rich Text Editor

    Hi,
    I have a page item as Rich Text Editor. Now I want to store the data in tables in the same format as user entered in the page item.
    What would be the database column type for that?
    Thanks,
    Mehabub

    Mehabub Sheikh wrote:
    I have a page item as Rich Text Editor. Now I want to store the data in tables in the same format as user entered in the page item.
    What would be the database column type for that?As usual, the answer is "It depends".
    In this case it depends on the nature and size of the content. For content up to 4000 bytes in length, use VARCHAR2 or NVARCHAR2 (depending on the DB character set and globalization requirements), for content of longer length use CLOB or NCLOB (again depending on DB characterset and your globalization requirements).
    Note the effect of DB character set on the number of characters you can store in a VARCHAR2 or NVARCHAR2 column, and the overhead of HTML tags generated by formatting in the Rich Text Editor.

  • IOException: invalid content type for SOAP: TEXT/ using Sender SOAP adapter

    Hi all,
    When I am using Sender SOAP adapter, i am getting (MessagingException: Could not parse XMBMessage. Reason: java.io.IOException: invalid content type for SOAP: TEXT/HTML using connection SOAP_http://sap.com/xi/XI/System) exception.
    From my RWB I can see:
    2009-05-25 16:18:39 Information The message was successfully retrieved from the call queue.
    2009-05-25 16:18:39 Information The message status was set to DLNG.
    2009-05-25 16:18:39 Error Failed to parse the XI system response.
    2009-05-25 16:18:39 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIMessage creation failed (inbound). Reason: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not parse XMBMessage. Reason: java.io.IOException: invalid content type for SOAP: TEXT/HTML using connection SOAP_http://sap.com/xi/XI/System.
    2009-05-25 16:18:39 Error The message status was set to FAIL.
    2009-05-25 16:18:39 Error Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIMessage creation failed (inbound). Reason: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not parse XMBMessage. Reason: java.io.IOException: invalid content type for SOAP: TEXT/HTML
    Please help if possible! Thanks!
    Mayank

    Hi,
    Check in SLD your integration engine business system have the following
    pipeline url : http://server:httpport/sap/xi/engine?type=entry
    check Http port also
    After that go to TCODE - SXMB_ADM - integrationn engine configuration and check if your server is configured as HUB with the same url or not.
    Thanks
    Kasturika Phukan

  • Infoobject change for extracting texts data.

    Hi BW guys,
    Here is my requirement.
    I have one info object 'salesmen', which is already used in some other ODS & Cube's.
    Now I want to extract texts data for the object 'salesmen', for that I will need to change my infoobject (changes are : adding credit control are object under compounding).
    But while i am activating the info object again it is giving errors.
    Error messages:
    1) InfoObject XXXXX (or ref.) is used in data targets with data -> Error:
    2) Characteristic XXXXX: Compound or reference was changed
    3)InfoObject XXXXX being used in InfoCube XXXX (contains data)
    etc....
    But i don't want to delete the data in any data target.
    Is there any way to solve this problem?
    Thanks in advance......

    Hi,
    If you have not many cubes and ODSs with this salesman, you can consider another, beter, but more time-consuming way.
    1. Create a new IO for your salesman, add a compounding attribute as you want.
    2. Load master data for the new IO.
    3. Create copies of your infoproviders.
    3. In each of them delete an old salesman IO and insert a new one.
    4. Create export datasourses for old cubes.
    5. Create update rules for new data targets based on old ones.
    6. In URs map your new IO with the old one. All other IOs should be mapped 1:1 (new<-old).
    7. Reload data targets.
    That's all.
    The way I proposed earlier is less preferrable. Because anyway you'll have to change loaded into data targets data. And in this case it's better to change data model as you want.
    Best regards,
    Eugene

  • Language change for standard text

    How to change the language of standard text.
    ex; from 'EN' to 'CS'

    Hi,
    Refer note 3355 in OSS for a complete explanation. The SAPscript objects that should be transported must be written in a
         transport request.
         The entries are as follows:
         R3TR FORM NAME (NAME = Name of the layout set)
         R3TR STYL NAME (NAME = Name of the style)
         R3TR TEXT OBJECT,NAME,ID,L
         (OBJECT = Text object, NAME = Text name, ID = Text ID, L = Text language)
         If you want to transport a number of texts, you can use report RSTXTRAN to insert the individual text keys into a
         correction.
         The transport request must be entered and released via the transport system.
    Reward points if helpful
    Regards.
    Srikanta Gope

  • Scripts : changing ....using

    Hi,
    In scripts why u use Changing and using statements?pls explain?
    Thanks.

    Hello,
    The statements using and chnagin can be used with the perform statements in the sap script line editor. If the print program is the standard program, and we need to get any values so we write an subroutine pool, in that we call the perform statement and based on the values specified in the using we can do some calculations or retrival and pass them to the changing parameters. And this can be used in the SAP Script.

  • When reading the Rich Text present in Excel column using open XML its taking it as plain text

    Hello All,
    When i am reading excel columns using open Xml in C# everything is working fine except the column that
    contain Rich Text (ex: bold, italic,color,size). Its reading the Rich Text content as plain text. As we know for Rich Text in open XML we get the text as Runs (C#
    object) which contains the text as value and rpr as run properties. I have also written the code to convert Runs to html. But the issue is that for some Rich Text format its reading it as Runs but most of the Rich Text its reading it as plain text.
    The issue i am getting is, for some rich text its creating RUN and for some of the rich text its not creatingRUN.
    Let me give the example for more understanding:
    Suppose i have two cells in excel which contains the below text.
    1. Rich Text
    1
    2. RichText
    2
    Now when i read these cells using the below code
    var stringTable =spreadsheetDocument.WorkbookPart.GetPartsOfType<SharedStringTablePart>().FirstOrDefault();
    if (stringTable.SharedStringTable.ElementAt(index1).ChildElements.GetItem(0).GetType().Name == "Run")
    Custom code to convert Rich text to HTML...
    else
    Read the plain text...
    Though both the cell contains rich text, one is going in RUN block and one is going in Plain text bloc.
    Also, one thing that i have noticed is when i use standard color for text its consider it as RUNS and when i use color apart from the standard color it does not consider it as RUNS. Same behavior occurs for different combination of text viz. bold, italic, underline
    etc

    Hi Ejaz,
    This forum is for software developers who are using the Open Specification documentation to assist them in developing systems, services, and applications that are interoperable with Microsoft products. The Open Specifications can be found at:
    http://msdn.microsoft.com/en-us/library/cc203350(PROT.10).aspx. Since your post does not appear to be related to the Open Specification documentation set, we would appreciate it if
    you could try to post your question in a more relevant forum. Thank you.
    Open XML Format SDK
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=oxmlsdk&filter=alltypes&sort=lastpostdesc
    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

  • Search for a particular text used in formule - whole repository search

    Is there a way to search for a text used in formulae in all reports (CMS Database). We have hundreds of reports and some are using legacy Crystal formulae syntax. We want to know which reports are using such formulae.
    Please share if you have any utilities or scripts to search all reports. There is a Find/Replace feature in report formula editor.But I want to search all the reports in CMS.
    Thank you!

    Hello,
    Sorry nothing built into BOE. Only way would be to write an application to go through each report object and search, update then write back to the repository.
    You'll need a developer to write this for you or possibly contact our Professional Services to write this for you.
    Thank you
    Don

  • HTML email saving as Rich Text

    Hi,
    We are having an issue with Outlook 2013 on Exchange 2013, where we need to save emails on a regular basis and it loses embedded attachments.
    The emails when we attempt to save them are in html format – but when they save they auto change to Rich Text and as such they lose the attachment.
    We found another guy who has the same issue
    http://community.spiceworks.com/topic/392648-outlook-items-converting-to-rich-text
    and there seems to be no solution – drama is I really need one !!!!! HELP!
    We have so far: -
    Tried a ‘save as’ to outlook msg with and without uni code.
    When saved email is opened, it is in ‘Rich Text’ format
    Embedded attachments are missing.
    Also when responding to emails that are received from clients outside of the organisation, it converts the email to rich text and if sent, do not get past the exchange and remain in the ‘submission queue’ with “a storage transient failure” error for 3 days
    before bouncing back as undeliverable.
    TNEF was enabled which gave a whole lot of other errors so was disabled again

    Hi Alanvdw,
    Thanks for your response.
    Cached Exchange Mode provide users a better online and offline experience. Cached Exchange Mode lets users move between connected and disconnected environments without interrupting their experience in Outlook. Also, it insulates users from network latency
    and connectivity issues while they are using Outlook.
    For more information, here is an article for your reference.
    Choose between Cached Exchange Mode and Online Mode for Outlook 2013
    http://technet.microsoft.com/en-us/library/jj683103.aspx
    Hope it helps.
    If you need further assistance, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Handling RICH TEXT content on BI publisher report

    Hello,
    I have requirment where I have to handle RICH TEXT content, and show data in report with RICH TEXT formating.
    The RICH TEXT content(with tags) is comming from database CLOB column. Here is the sample XML data.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <DATA_DS>
    - <G_1>
    <ID>1</ID>
    <RICH_TEXT_DATE>'<p' class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 1.15pt">'<span' style="FONT-FAMILY: Arial Narrow,sans-serif; mso-bidi-font-family: bold; Tahoma">'<font' size="3">Testing data for rich text '</font'>'</span'>'</p'></RICH_TEXT_DATE>
    </G_1>
    </DATA_DS>
    Report Output should be below with all the formating:-
    <p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 1.15pt"><span style="FONT-FAMILY: Arial Narrow,sans-serif; mso-bidi-font-family: bold; Tahoma"><font size="3">Testing data for rich text</font></span></p> <p></p>So, how to get above output with all formating, Please let me you soultions.
    I am using, Oracle BI Publisher desktop version 11.1.1.5
    Thanks in advance.
    San.

    https://blogs.oracle.com/xmlpublisher/entry/html_in_xml_support
    http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#CHDCEEIJ
    Rendering HTML Formatted Data in a Report : <BR/>  are not being parsed

Maybe you are looking for

  • Screen Saver (using iphoto folder) - 2 questions

    New imac....thanks for the input. Two questions with the screen saver that uses random iphoto folder pics. 1. The resolution on some pics looks horrible (I thinked they must be zoomed in), but even on ones that are not, the pics look more grainy then

  • How to modify OOTB email notification

    Hi All, I need to modify OIM 11g default email notification for create user event ("Create User") to send email to Organization Admins. The goal is to send notification when the user is created (from console, from api, and from reconciliation). Is it

  • Dock conversationwindow incoming conversations, without rendering stand-alone before the .Dock() call

    We are busy developing a desktop application which uses the Lync 2013 client SDK. One of the features is to dock the conversation window of the Lync client into our own app. At the moment, this is working but the flow is not ideal: The (incoming) con

  • Calender preview date

    Not a big deal, just an annoying problem. Down on the bottom dock where your programs are shown, the date is always shown as "July 17". Once I open iCal it goes to the correct date. Once iCal is closed it reverts back to "July 17". How do you get tha

  • CALL transaction using generic user.

    Hi experts, I have a   CALL TRANSACTION, which code is: 'ME54' USING BDC_TAB MODE 'E' UPDATE 'S'. I have previosly defines the BDC_TAB. Is is a backgroud process executes with an event. The sy-uname there is the same as the user that has lauched the