Howtomake part of text as bold or differnt color text edit-webdynpro abap

Hi
How to make part of text as bold or differnt color in text edit-webdynpro abap.
If we can make it bold then it is ok....or else atleast we have make it into some other color of part of text.
Note:
I tried with class char utilities and able to solve the issues like new line and carriage return....but could
not make this bold or different color.
Also when I use formatedtextview, I can able to solve this bold issue but I cannot solve this newline or carriage return issue...?
Can any one help on this ?
Thanks in advance
regards,
Pons

You have to use the FormattedText UI elements for such a thing.  That is their purpose. 
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3b/219141c1d0ae5fe10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/2772f505605447e10000000a422035/frameset.htm
Supported Tags:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/08/5696420cc2c56ae10000000a155106/frameset.htm
What kind of problem did you have with the Formatted Text?  Line breaks?  Did you try using the br tag?

Similar Messages

  • How to make part of text as bold..

    hi all,
    its urgent..
    i have an expression in my ssrs report like
    =iif(passorder=1 and zoneorder<>4,
    iif(field!xxxx.value=3,field!xxxx.value & "is having perecntage of" & field!percentage.value, field!percentage.value)
    now,its having row and column  grouping..so, in preview i get 8 rows output
    so..i cant take place holders
    i need to make bold only the field!percentage.value and field!xxxx.value ...
    this static text is having perecntage of should be in normal font only
    if used iif(field!percenatge.value="xx",bold,normal) in font weight but not achieved..
    can any on please help to  me if there is any bold() function that to use in customcode..so that i can use in expression
    please help..
    thanks in advance..
    lucky

    Hi LuckyLucky12,
    According to your description, you have a long string in a textbox which concatenate values of two fields and static text. Now you want to set bold style for values of two fields, but still keep the default style for the static text. Right?
    In Reporting Service, we can set style for text in a textbox, this style will be effective on whole textbox. However, we can create placeholders in textbox. So in this scenario, we suggest put those parts of text into different placeholders inside of a textbox.
    We can set style for each placeholder. Also, we can use expression in Value to set condition for displaying data. We tested your case with some sample data in our local environment. Here are steps and screenshots for your reference:
    1. Create a table in the report, double click on textbox, right click and select Create Placeholder. Select field in Value (If we want to set condition, put expression in it). Go to Font, select Bold.
    2. Repeat step1 to create other two placeholder. For the placeholder with static text, unselect Bold. 
    3. Save and preview. In our sample report, we set the condition for displaying data (display null string when DocId = 3). It looks like below:
    Reference:
    Formatting Text and Placeholders (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou (Pactera)
      

  • How to print some text in BOLD in a classical report

    Hi,
    I need to print some selected text in BOLD in classical report.
    Went through SDN forum...came across some suggestions like using class cl_dd_document and its functions..
    The problem is that one of its function "add_text" allows to highlight text...but the display function "display_document" requires a container to display, whereas mine is a simple classical report...am i wrong somewhere..or is there any other method to do the same...
    Thanks!!

    Hi Deepti,
      I am not sure that is possible on a classical report ntu you can use colors to highlight a part of the report output in order to check the various options you have with format is to check F1 on format.
    Regards,
    Himanshu

  • Print text in Bold while creating PDF

    Hi,
    I am mapping data in the XML to a Template designed using LiveCycle Designer ES3.
    I need to print some of the text in BOLD.
    For exmple in the following XML, when we display the text in PDF,  person names should be in BOLD.
    Part of the XML that is fed to template designer.
    <house>
    <parent>Mike and Mary are Mark's parents.</parent>
    </house>
    What is expected in the PDF:
    Mike and Mary are Mark's parents.
    I would appreciate if someone could please help me to achieve this task.
    Have  a good day!
    Regards,
    Patnapu.

    Hi,
    Check out Parth's example here: http://livecyclekarma.wordpress.com/2009/05/20/richtext-tricks-for-textfield-in-designer/.
    Also do a search on this forum, I am sure Steve Walker did an example.
    Good luck,
    Niall

  • Dialog Header Text in bold

    Hi
    I am using the JavaFX dialogs. I have made a dialog as follows:
         Alert d = new Alert(AlertType.CONFIRMATION);
         d.setTitle(Resources.R(Resources.DELETE_DATA_SOURCE));
         d.setHeaderText(...);
    I want to make part of the header text bold -- I want a message like "Really delete X" where X is in bold.
    Is there any way to do this with a dialog (other than rolling my own?).
    thanks
    graham

    Hi Srini ,
    IF you are using the BAPI_PO_CREATE , we are not having the parameter to pass Header Text.
    If you want to get Header Text  directly then Use  BAPI_PO_CREATE1 wiht a parameter POTEXTHEADER (I am not sure it is  there in 4.7).
    If  BAPI_PO_CREATE1 does not exist in  4.7 then  use create_text function module to update the the Header text
    Hope it helps
    Rgds
    Sree M
    Edited by: Sree  Merugu on Jun 13, 2008 5:10 PM

  • How to Print a text in bold format in a classic report ??

    How to Print a text in bold format in a classic report ??

    hi
    u can use
    <b>FORMAT  INTENSIFIED ON.</b>
    regards
    ravish
    reward if useful

  • How to make a text in a text object Bold at run time

    I would like to make a text in a text object Bold depends on a record value. how can I control that ?
    Edited by: Hagita1 on Jan 18, 2011 10:51 AM
    I found the solution-Thank you

    You should share your solution with the community.

  • Load multiple parts of an XML file into one dynamic Text Field

    Hi I am trying to load text from an external XML file into a dynamic text box. I have so far managed to load single parts of the XML file into a dynamic text field. I now want to be able to load different parts of the XML file (something similar to a string with appendText) into the same text Field.
    I have so far managed to achive this using the String and append text properties, but would like to use XML file to do it instead.
    Any tips please?
    Thanks

    In essence you can just do:
    TextField.text = XML.node1 + XML.node2;

  • Format bold text in field and putting some text on new line - Help!

    I am lost.  I found the rich text formating item to click.  But after that, I don't know what to do next.  I want to bold some characters and I want some reponses on separate lines as I asked previously.  As to spans and the commands - I have no programming experience.  I have just been using what George has given me.  It has worked well, but I just need the bold text in some of the field text to be printed and I need some items to be on separate lines.  But I have no idea where to put the information you are saying about spans and I do not know the script to use to bold text or to start text on new line.  Am I to insert it in the calculation box of the text box?  Sorry to be so lame, but I am void in programming skills.  Help!
    For example, here is the script.  In aISOreq{0], if I want to bold "Patter#1 Check:", where do I put the span and what script do I use to say to bold it.   Could you give me an example, please.  Also, if I want to put "a. Medications on weekend?" on one line and "b. Activities on weekends? Types of activities? Supervision? With who?" on the next line, where do I put the span and what script do I use to say to put on separate lines?  Could you give me an example for this also, please.  I have literally just used the scripts George has given me and they work great - but that is all I know how to do.  Thanks.
    (function () {
        // Set up an array to hold the individual paragraphs of text
        var aISOfreq= [];
        // Populate the array with paragraph text
       aISOfreq[0] = "Pattern #1: Multiple Isolations on Mon & Tues decreasing to Fri.  Pattern # 1 Check: a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With who?";
       aISOfreq[1] = "Pattern #2: Multiple Isolations on specific days.  Note days.  Pattern #2 Check:  a.  Different schedule on these days? Different adult? Block schedule? May need consistent schedule w/same adult.  b.  Are accommodations/modifications occurring? More group v. individual instruction? Does the student need warm-up drills or a specific job?  Does student need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?";
       aISOfreq[2] = "Pattern #3: Isolations are grouped in intervals.  Note interval.  Pattern #3 Check:  a.  Cyclic behavior?  Review assessment.  Need Mental Health referral for meds and/or therapy intervention?  b.  Medication: supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  c.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns with PO?";
      aISOfreq[3] = "Patterns #1 & #2: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Multiple Isolations on specific days.  Note days.  Pattern #1 Check:  a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With whom?  Pattern #2 Check:  a. Different schedule on specific days? Different Adult? Block schedule? May need consistent schedule with same adult.  b. Accommodations/modifications occurring? More group v. individual instruction? Need warm-up drills or specific job?  Need a specific lesson routine?  c. Previous night's activities? Need calming activities before bed? Need earlier bedtime? Need additional evening structure? ";
       aISOfreq[4] = "Patterns #1 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Isolations grouped in intervals.  Note intervals.  Pattern #1 Check:  a. Medications on weekend?  b. Activities on weekend? Types of activities?  Supervision? With whom?   Pattern #3 Check:  a. Cyclic behavior?  Review assessment.  Need Mental Health referral for meds and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need med check with physician?  Share concerns with physician?  c.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?"
      aISOfreq[5] = "Patterns #2 & #3: Multiple Isolations on a specific day AND Isolations grouped in intervals.  Note days & intervals.  Pattern #2 Check:  a.  Different schedule? Different Adult? Block schedule? May need consistent schedule w/same adult.  b.  Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job?  Need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?  Pattern #3 Check:  a. Cyclic behavior? Review assessment.  Need Mental Health referral for medication and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  c. History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?";
       aISOfreq[6] = "Patterns #1, #2 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Friday, Multiple Isolations on specific days AND Isolations grouped in intervals.  Note days and intervals.  Pattern #1 Check: a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With whom?   Pattern #2 Check:  a. Different schedule? Adult?  Block schedule?  May need consistent schedule w/same adult.  b.  Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job?  Need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?  Pattern #3 Check:  a. Cyclic behavior? Review assessment.  Need Mental Health referral for medication and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  h.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?";
       aISOfreq[7] = "No Pattern";
         // Get the selected item, which is the export value of the selected combo box item
        var item = getField("ISO Frequency Pattern").value;
        // Display the text corresponding to the selected item in the text field
        event.value = aISOfreq[item];

    Look at the reference of the richValue property of the Field object. It contains a couple of examples of how it should be done. Also read the reference of the Span object.

  • Bold text appears bold and italic

    Hi Folks,
    Can anyone please explain why this happens?
    In FW when I click the bold text button, the text appears bold but italic aswell.
    Thanks in advance

    That's unusual. Which version of Fireworks and what operating system are you using?
    If you click on the Faux Italic button, is the italic styling removed? (It should be. If not, click twice.) You might want to try quitting and restarting the application—or shutting down and restarting your computer—and see if this takes care of the problem.
    FYI: It's generally a better choice to add bolding via the Font Style dropdown menu, if that style is available within the currently selected font family.

  • Want to send a text in BOLD via email

    Hi all,
    I want to send a text in BOLD via email,
    Right now i ma using the Function Module: SO_NEW_DOCUMENT_ATT_SEND_API1 for sending attachments via mail.
    But i do not know how i can send some text in BOLD.
    <b>****NOTE: I want the text in BOLD is in the BODY of the mail</b>
    I checked the Import and tables parameters inthat FM.But there is no option in those parameters.
    So, can any one plz help me to solve this issue.
    Thanks&Regards,
    Srikanth T
    Message was edited by:
            srikanth T
    Message was edited by:
            srikanth T

    Convert them into smartform or SAP Script from report then convert into pdf format and then send an email ...
    See the example code :
    report zemail.
    data: itcpo like itcpo,
          tab_lines like sy-tabix.
    Variables for EMAIL functionality
    data: maildata   like sodocchgi1.
    data: mailpack   like sopcklsti1 occurs 2 with header line.
    data: mailhead   like solisti1 occurs 1 with header line.
    data: mailbin    like solisti1 occurs 10 with header line.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
    data: solisti1   like solisti1 occurs 0 with header line.
    perform send_form_via_email.
          FORM  SEND_FORM_VIA_EMAIL                                      *
    form  send_form_via_email.
      clear:    maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
      refresh:  mailtxt, mailbin, mailpack, mailhead, mailrec.
    Creation of the document to be sent File Name
      maildata-obj_name = 'TEST'.
    Mail Subject
      maildata-obj_descr = 'Subject'.
    Mail Contents
      mailtxt-line = 'Here is your file'.
      append mailtxt.
    Prepare Packing List
      perform prepare_packing_list.
    Set recipient - email address here!!!
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
    Sending the document
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = maildata
                put_in_outbox              = ' '
           tables
                packing_list               = mailpack
                object_header              = mailhead
                contents_bin               = mailbin
                contents_txt               = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                operation_no_authorization = 4
                others                     = 99.
    if sy-subrc = 0.
    submit rsconn01 with mode = 'INT' and return.
    endif.
    endform.
         Form  PREPARE_PACKING_LIST
    form prepare_packing_list.
      clear:    mailpack, mailbin, mailhead.
      refresh:  mailpack, mailbin, mailhead.
      describe table mailtxt lines tab_lines.
      read table mailtxt index tab_lines.
      maildata-doc_size = ( tab_lines - 1 ) * 255 + strlen( mailtxt ).
    Creation of the entry for the compressed document
      clear mailpack-transf_bin.
      mailpack-head_start = 1.
      mailpack-head_num = 0.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'RAW'.
      append mailpack.
      mailhead = 'TEST.TXT'.
      append mailhead.
    File 1
      mailbin = 'This is file 1'.
      append mailbin.
      describe table mailbin lines tab_lines.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST1'.
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    *File 2
      mailbin = 'This is file 2'.
      append mailbin.
      data: start type i.
      data: end type i.
      start = tab_lines + 1.
      describe table mailbin lines end.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = start.
      mailpack-body_num = end.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST2'.
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    endform.
    With PDF Attachment:CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'Z_TEST'
    IMPORTING
    fm_name = v_fname.
    CALL FUNCTION v_fname
    EXPORTING
    control_parameters = x_ctrl_p
    IMPORTING
    job_output_info = x_output_data.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 134
    IMPORTING
    bin_filesize = v_size
    TABLES
    otf = x_output_data-otfdata
    lines = it_lines
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    OTHERS = 4.
    CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
    EXPORTING
    line_width_dst = 255
    TABLES
    content_in = it_lines
    content_out = it_soli
    EXCEPTIONS
    err_line_width_src_too_long = 1
    err_line_width_dst_too_long = 2
    err_conv_failed = 3
    OTHERS = 4.
    CALL FUNCTION 'FUNC_CONVERT_DATA_ODC01'
    EXPORTING
    iv_byte_mode = 'X'
    TABLES
    it_data = it_lines
    et_data = it_table.
    *-----To caluculate total number of lines of internal table
    DESCRIBE TABLE it_table LINES v_lines.
    *-----Create Message Body and Title and Description
    it_mess = 'successfully converted smartform from otf format to pdf' .
    APPEND it_mess.
    wa_doc_data-obj_name = 'smartform'.
    wa_doc_data-expiry_dat = sy-datum + 10.
    wa_doc_data-obj_descr = 'smartform'.
    wa_doc_data-sensitivty = 'F'.
    wa_doc_data-doc_size = v_lines * 255.
    APPEND it_pcklist.
    *-----PDF Attachment
    it_pcklist-transf_bin = 'X'.
    it_pcklist-head_start = 1.
    it_pcklist-head_num = 0.
    it_pcklist-body_start = 1.
    it_pcklist-doc_size = v_lines_bin * 255 .
    it_pcklist-body_num = v_lines.
    it_pcklist-doc_type = 'PDF'.
    it_pcklist-obj_name = 'smartform'.
    it_pcklist-obj_descr = 'smart_desc'.
    it_pcklist-obj_langu = 'E'.
    it_pcklist-doc_size = v_lines * 255.
    APPEND it_pcklist.
    *-----Giving the receiver email-id
    CLEAR it_receivers.
    it_receivers-receiver = [email protected]'.
    it_receivers-rec_type = 'U'.
    APPEND it_receivers.
    *-----Calling the function module to sending email
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = wa_doc_data
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = it_pcklist
    contents_txt = it_mess
    contents_hex = it_table
    receivers = it_receivers
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.

  • Is there any option to display selection screen text in bold or big font?

    Hi all,
    Is there any option to display selection screen text in bold letters or with increase font size?
    Thanks n Regards

    Hi,
    Just give atry in this way..
    open the same program ans selection-screen screen no will be 1000 in se51 screen painter,
    go to properties of the texts u want to change then go to display tab and check the checkbox bright.
    it may or may not work but this will work in module pool .
    just give a try...
    Regards,
    Suresh.

  • How can i input some text in bold and other in normal font in h:messages

    Hi
    I have a message which comes from properties file.I need half of the text in bold and the other half in normal font.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
        public Test() {
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container content = getContentPane();
         JEditorPane jep = new JEditorPane("text/html",
                  "Joe: <font color=red>R u <b>There</b>?</Font><BR>"+
                  "Mary: <font color=green>Keep ur shorts on...</Font>");
         content.add(new JScrollPane(jep), BorderLayout.CENTER);
         setSize(200,200);
         show();
        public static void main(String[] args) { new Test(); }
    }

  • How to give Bold style inside Single Text Frame

    Hi
    I created a text frame with some text in it. It comes in three paragraphs. First para is the title with two words and below two are small description. All the text is kept in single textframe and I need that to be in single frame only. NOW, I need to bold the first para that is the title with two words. How can I write the code to give bold style to the first paragraph inside that frame? Do I need to take different frame? I want all in single actually. Also I want the entire text frame to give my customized text color.
    Hoping a valuable suggestion
    Thanks in advance.
    Regards
    P

    Dave, Good questions(s)!!! Details below...
    It's CS2. I need to put some text in all (many) documents I work regularly. Instead of copying from the previous file or any other source, as the text is same for all, I thought of writing the script with the text itself. Running that will create text frame and write the text. Got almost but was unable to bold the title of the text which I mentioned earlier as a first paragraph with two words.
    Also I couldn't give the my color swatch to the text.
    Here is my script:
    var myTextFrame = app.activeWindow.activePage.textFrames.add()
    var myParagraph = myTextFrame.paragraphs.item(0)
    var myFont = app.fonts.item("Arial")
    myTextFrame.geometricBounds = ["11.2in", "6in","9.57in","0.5in"];
    myTextFrame.contents = "First Paragraph"
    myTextFrame.parentStory.insertionPoints.item(-1).contents = "\r This is Second paragraph.";
    myTextFrame.parentStory.insertionPoints.item(-2).contents = "\r\rHere comes the Third Paragraph with extra para space";
    myParagraph.parentStory.appliedFont = myFont
    myParagraph.parentStory.pointSize = 8
    myParagraph.paragraphs.item(-1).spaceAfter = "0.05in"
    myTextFrame.fit(FitOptions.frameToContent)
    Hope this answers all your questions. Waiting for valuable solution. Have another question will ask after I got this. For now, two questions 1) making bold first two words 2) font color

  • Text in bold in normal report

    hi to all,
    plz help me in this issue
    how can we make text heading bold in the normal report
    thanks in advance
    kiran kumar.

    hi,
    If you are using WRITE statements, use
    FORMAT INTENSIFIED ON.
    WRITE : / 'welcome'.
    FORMAT INTENSIFIED OFF.
    rgds
    Anver

Maybe you are looking for