Using SO10 texts in (dynamic) textfields

Dear,
We're using SO10 texts from SAP in our Interative Forms to translate conditions and the like. We added a style to it etc. and by setting the textfield to XHML and Rich Text in the settings it can be set directly with all layout programming saved. It's obviously also set to Multiple Lines.
I was wondering, is there a way to dynamically adjust the size of a textfield (in a flowed subform)?
Or, and this solution is just as fine, is there a javascript function or method I can use to adjust the textfield height at runtime after the text has been entered (in the 'initialize' event then).
Thanks in advance,
Frederik-Jan

Hello!
Check at Layout pallete if your field has 'Expand to fit' parameter set under its Height.
Regards,
Pjotr Perstnev

Similar Messages

  • Text in Dynamic Textfield gets cut off

    Hi
    I have a dynamic text field which is just one line of text.
    For some reason letters like g or p that go below the regular
    line of text get cut off.
    I have made the field bigger, and also played around with the
    _height Property but it doesn't make a difference.
    I have imported the font into the Library. When I embed it
    the font doesn't cut off but looks very different. And if I change
    the field to a static field it doesn't cut off either, but the font
    looks a little different as well.
    Any ideas?

    Why should I start a new thread if this one was never resolved and I am still having the same problem?
    ANYWAY,
    I was able to fix this by finding an answer on a different forum.
    Simply increase the text leading using the text format option, like so:
    var format:TextFormat = new TextFormat();
    format.leading = 2;
    field_txt.defaultTextFormat=format;

  • Using formats of SO10 text in Adobe forms

    Hello guys,
    I got a question concerning the interaction of SO10 texts with adobe form text fields.
    I know there are some threads about it here, and I think I understand the default SAP behavior, but can you please confirm if I am right? Then I got a special question about one case.
    So is it right that there is only the difference between formatting the textfield itself in adobe form layout and adding a style to the text field in form context?
    This means:
    (1) Whenever in my text field in form context no style is added, the adobe form will take the formatting like it is done in the adobe form layout? This would mean that every format which is entered in the SO10 text is insignificant for the adobe form?
    (2) Whenever in my text field a style is added, SAP will use SO10 text formats? This means, SAP searches for the smartforms style which is entered in the textfield and uses the formats from SO10 text like they were defined in the smartforms style?
    Is this correct so far?
    Now the special questions:
    (1) What happens if a style is added, but the style does not exist as smartforms style. Which font etc. will be used then?
    (2) What happens if a style is added, but the format of SO10 text does not exist in the smartform style?
    In both cases it looks like SAP takes some "default" style, but where does it come from?
    Thanks a lot!
    Regards
    Michael

    Thanks Rakhi, but that did not resolve my issue. Below is new out as per the thread suggestion and this is not what I wanted.:
    "<H>Thank you for choosing Enterprise.</> We look forward to seeing you at 9:00 am on Monday,
    November 28, 2011. This message is to confirm you have updated your reservation.
    Following are the details for the updated reservation:
    P.S. Remember us when you're renting in town. Enterprise is always nearby at more than 6,500
    neighborhood locations."
    - shalini

  • How to preserve special characters in dynamic textfield for text comparison?

    The problem is as follows:
    Since I mostly develop for multiple languages I am forced to have dynamic textfields in my buttons which contain three lines (to account for the differnt text.lengths in different languages).
    I then populate the textfields with strings out of an array or xml and use the textfields contents later in my button class to execute different code depending on the textfields content.
    This works fine as long as I don`t use any special characters, like for example "\n".
    var labels:Array = ["\nLABEL1","LABEL\n\n2"];
    switch (e.currentTarget.txt.text)
                    case labels[0]:
                        doSomething();
                        break;
                    case labels[1]:
                        doSomethingElse();
                        break;
    shows the right thing in the button label (breaks the text were I want it)
    but stops to work
    (with htmlText &  <br> its the same)
    my workaround for the moment is to use filler spaces,
    var labels:Array = ["                   LABEL1","LABEL                                                                        2"];
    but that`s obviously ugly to setUp and requires a lot of trial/error to get it right for all languages.
    Any ideas how to bypass that?

    Bad habits die hard ;-)
    Weird enough spelling the problem out and getting this response from you cleared my head and  I finally got an easy solution.
    I simply attach a dynamic property to the movieclip, copy the array contents into them and instead of using the text-property for comparison I compare the MovieClips fresh created spectext property.
    Voila: Now I can be lazy without too much of a bad conscience.

  • Standard Text in Smartforms using SO10 Transaction

    Hi,
    My requirement is i have IF Condition followed by Elseif. when ever any of above conditions satisfy i need to print a text of at least 5 lines.
    If <>
    Print Text upto 5 lines each line at least 100 char(text1)
    elseif <>
    Print Text upto 5 lines each line at least 100 char(text2).
    else <>
    text24.
    If solution for the above  is using SO10 Tcode then  plz expain me in detail.
    thanx in advance

    Hi
    Check this
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Subtotals - Check the link...
    Re: Subtotal with Table Node in smartforms
    Regards
    Anji

  • How to Maintain documentation (se38) using standard text (SO10)

    Hi,
    I have created standard text using SO10. Now I want to include the standard text in documentation (SE38) section of my ABAP program.
    I tried using /: INCLUDE 'YTEST' OBJECT TEXT ID ST LANGUAGE EN
    But the standard text is not showing up when I click the documentation icon in the selection screen.
    Can you please let me know how to maintain documentation for ABAP programs using Standard Texts.
    Thanks in advance.
    Sincerely,
    Vidya

    Hi Mahesh,
    In SO10, which format key has been used (AS, /*, /:, *.... to show up in documentation). when you used insert->text-> did you use 'expand immediately' check box. If expand immediately option is used, it won't serve our purpose.
    =
      (space)
    Example
    SO10 Yeurope_terms
    Inside Yeurope_terms
    Terms: For Europe
    /*           No Tax for Italy
    Waiting for your reply.
    Sincerely,
    Vidya

  • Standard Texts using SO10

    Hi,
    I am using SO10 for Interview letters, Rejection letters..etc with Text ID 'PALT'. But when ever I try to create a new text in SO10 or even display and change,it opens with a DOC/RTF format rather than the normal SAP script editor. Due to this I am not able to use the options like Insert( for program and system symbols) that are available in SAP Script editor... What can be done?? Pls guide me.. I am working on ECC 6.0 version of SAP.
    Regards,
    Anu.

    Dear Anu,
    u try to go into setting , see the setting in anothet system compare it with your system.
    Best Regards,
    Flavya
    Edited by: Flavya on Dec 5, 2008 1:12 PM

  • How to create transport request for standard text created using SO10.

    Hi,
    How to create transport request for standard text created using SO10?
    Regards
    Ramakrishna L

    Hi,
    For the Standard text created in SO10,
    please go to transaction SE78 -> FORM GRAPHICS->STORED AS TEXT->STANDARD TEXTS->
    Double click on ADRS or ST or what ever your type of text->
    Enter your standard text name
    Click on transport button->SHIFT+f6-> It will ask you for a transport request.
    Best regards,
    Siva

  • Read Text using SO10

    Dear all,
    i m Creating Text using SO10.
    Now i want to Bold or High light some text and want to change font size.
    how can i.
    actually first time i m using SO10 for creting own text.
    Thanx in advance

    Hi,
    Use the character format in the standard text. It automatically shows the format which you want. If you are assigning SO10 text in smartform don't forgot to assign style to the text node.
    Example:
    write the message like below
    <C1>Message</> <C2> is here</>
    After C1 close your message with /
    Make sure that Character formats C1 & C2 should be there in the style format.
    Regards,
    vinod

  • Transporting Text using SO10

    Hello,
    I have created some text using SO10 in dev environment. These text hass to be moved to QA. We dont get transports created for these texts.
    So what is the alternative and best way to move the text from Dev to QA?

    Hi Rajasekhar,
      The standard text created in SO10 transaction never asks for a transport request while it is getting saved in SAP box.  So we need to create a transport request for it.  follow the below procedure.
    1) in SE38 run the program RSTXTRAN.
    2) it will asks for the transport request.  create a new transport request in SE10 and give this request here.
    3) save the std text in this transport request.
    4) now give this request number to BASIS people who will transport the object to QA box.
    thanks & regards
    Kishore Kumar Maram

  • Use standard text (SO10) in report(SE38) to compose the body of email

    hello experts,
    here i wanna create the body of email with a format, hence i decide to use Standard Text. in this Standard Text, i also maintain some variable such &p_name&( i remember it works  in forms,such script and ssf), while i define p_name as 'demo' in the program and try to transfer p_name to standard text, it fails. while i check the output of standard text, it show &p_name& instead of demo.
    could anyone tell me how to realize this function?
    Thanks in advance.
    Desmond

    Hi,
    try this,
    data:w_field(10) type c VALUE '1234'.
    DATA:wa_head TYPE THEAD.
    data:it_final TYPE TABLE OF tline.
    wa_head-tdname = 'Z_SAMPLE'.  u201CStandard text,refer screen shot
    wa_head-tdid = 'ST'.
    wa_head-tdobject = 'TEXT'.
    wa_head-tdspras = 'EN'.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = wa_head-tdid
        language                      = wa_head-tdspras
        name                          = wa_head-tdname
        object                        = wa_head-tdobject
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        = HEADER
      TABLES
        lines                         = it_final
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REPLACE_TEXTSYMBOL'
      EXPORTING
        endline                = 10
      FORMATWIDTH            = 72
      LANGUAGE               = SY-LANGU
      LINEWIDTH              = 132
      OPTION_DIALOG          = ' '
      REPLACE_PROGRAM        = 'X'
      REPLACE_STANDARD       = 'X'
      REPLACE_SYSTEM         = 'X'
      REPLACE_TEXT           = 'X'
        startline              = 1
    IMPORTING
      CHANGED                = CHANGED
      TABLES
        lines                  = it_final

  • Using input text that's in a MC

    Hi all -
    Tearing my hair out on this, and it seems like it shouldn't be that difficult.
    I've got an input text box (opAnswerTxt) that I've added to a movie clip (questAns) using AS3:
    questAns.addChild(opAnswerTxt);
    That's fine -- I'm able to type text into the text field. Now I need to trace this text. (Ultimately, I will want to capture the text in a variable and then reuse the text in a dynamic text field, but just tracing to make sure I can get the text first.)
    I added a button (opSaveBtn) - also to the MC - and added an event listener to the button:
    questAns.addChild(opSaveBtn);
    opSaveBtn.addEventListener(MouseEvent.CLICK, saveOpInput);
    but can't seem to trace the input text. Here's what I'm using:
    function saveOpInput(me:MouseEvent):void
      trace (opAnswerTxt.text);
    My output is the original default text I have in the text box, rather than the text I just typed in.
    When I add the input text box to the stage, rather than to the MC, it works fine.
    Note: I've tried targeting the instance -- see the following -- but I get an error.
    trace (questAns.opAnswerTxt.text);
    Also tried trace (MovieClip(root).questAns.opAnswerTxt.text) and that didn't work either.
    Can anyone help?
    Thanks!
    Miriam

    Thanks for your quick response. You may be right on this. The MC (and child text box and button) are all within a loop that's parsing an external XML file.
    Basically, I'm trying to create a "form". The questions are in the external XML file (so they can be updated by the customer later). I've got a loop that's parsing the XML file and creating an MC for each question element it finds. Each MC has a question text field (dynamic - populated from the XML), an answer text field (the input text field), and a save button. Here's the code:
    for (var i:int = 0; i < opLen; i++)
    //declare variables - the XML is loaded in the first frame - this all works fine
    var opQuestionElement:XML = opQuestion[i];
    var opQuestText:String = opQuestionElement;
    var opQuestionsElement:XML = opQuestions[i];
    var opQuestNum:int = opQuestion[i];
    //add container to hold each q&a
    questAns = new qAndAMC();
    questAns.width = 575;
    questAns.height = 200;
    questAns.x = 0;
    questAns.y = 0 + i * questAns.height;
    containerOp.addChild(questAns);
    questAns.name = "Q&A #" + (i+1);
    //add question text
    var opQuestionTxt:TextField = new TextField();
    opQuestionTxt.multiline = true;
    opQuestionTxt.wordWrap = true;
    opQuestionTxt.defaultTextFormat = qTextFormat;
    opQuestionTxt.embedFonts = true;
    opQuestionTxt.htmlText = (i+1) + ". " + opQuestText.toString();
    opQuestionTxt.width = 545;
    opQuestionTxt.x = 5;
    opQuestionTxt.y = 10;
    questAns.addChild(opQuestionTxt);
    opQuestionTxt.name = "OpQuestTxt " + (i+1);
    trace(opQuestionTxt.name);
    opQuestionTxtFieldList.push(opQuestionTxt);
    //add answer input text box;
    var opAnswerTxt:TextField = new TextField();
    opAnswerTxt.type = "input";
    opAnswerTxt.multiline = true;
    opAnswerTxt.wordWrap = true;
    opAnswerTxt.background = true;
    opAnswerTxt.backgroundColor = 0xFFFFFF;
    opAnswerTxt.border = true;
    opAnswerTxt.defaultTextFormat = qTextFormat;
    opAnswerTxt.embedFonts = true;
    opAnswerTxt.width = 545;
    opAnswerTxt.height = 110;
    opAnswerTxt.x = 10;
    opAnswerTxt.y = 60;
    opAnswerTxt.text = "Here's some text";
    addChild(opAnswerTxt);
    //add save btn
    opSaveBtn = new saveButton();
    opSaveBtn.x = 522;
    opSaveBtn.y = 188;
    opSaveBtn.buttonMode = true;
    questAns.addChild(opSaveBtn);
    opSaveBtn.addEventListener(MouseEvent.CLICK, saveOpInput);
    function saveOpInput(me:MouseEvent):void
      trace (opAnswerTxt.text); //This currently traces "Here's some text", rather than what I type in
    The two things I need to solve are:
    1. I want to be able to "save" the input text in each of the input fields, so if the user navigates away from this frame, the text they input last time isn't lost. Ideally, I'd like all of the input text fields to display whatever text they entered last time -- but they should still be an input field so they can edit the text if they want.
    2. I want to be able to print (or save to a text file) ALL of the question and answer text fields. I believe I need to create a separate print job MC for this?
    Any help you can give would be greatly appreciated!!
    Miriam

  • Why can access the dynamic textField inside a Button?

    yep, I have another problem
    I create a button in the library, it has a background graphic
    on a layer and a textField, the textField has a instance name
    defined in the properties panels and some text. I manually place
    some instance of the button on stage, I give them different
    instance names and voilà a new problem arise
    when with actionscript I try to assign a new text to the
    textField inside a button it throws me error 1119. A quick look at
    the menu option debug ->list objects, shows me that the instance
    name of the textField inside the button it is not what I defined
    but it was replaced with some random name like "instance66"
    I did a test with a movieclip instead of a button and I can
    correctly access my textField with the instance name that I
    manually defined.
    Why that can be the same with the button? And if for some
    arcane reason cant be possible to access a manually defined
    instance inside a button WHY flash give me the possibility to give
    an instance name to a dynamic textField inside a button?

    Buttons simply do not have the same properties and methods
    that movieclips have. Anytime you want to create a button that has
    anything beyond the simple 3 states of activity, use a movieclip.
    I can't answer why flash allows you to give an instance name
    to the textfield, but in any case, it won't allow you to use
    it.

  • [Q] how to change lines in dynamic textfield

    Hi, I am struggling to change lines of loaded text from xml.
    Basically I wrote few sentences in one child of xml file but
    when i loaded it to dynamic textfield I cant change the lines.
    (i tried with <br> /n both didnt work, textfield was
    multilined)
    thank you for your time

    how much text are we talking about?
    What parameters have you set for the text field? multilane?
    html?
    What size is your text field?
    Just some basic questions to think about. I actually link to
    an external text file if I have too much text to deal with. However
    I usually write text box's in the code.
    You already have the text field, so you shouldn't need the
    create command, which I probably got wrong anyway.
    my_TXT.createTextFeild(name,depth, x, y, width, hight)
    my_TXT = new textformat ("my_format")
    my_format.size = 27
    my_format.mutilne = ture
    my_TXT.html = true
    my_TXT.htmltxt = "bla bla <b>bla</b>"
    my_TXT.format(my_format)
    Again I can't be sure I got all the names right, but
    that’s about how it works.
    Again you don't have to use that, but to get the text to work
    you at least need mutiline to be on. To get html to work, you need
    html to be on, and you need to use the htmltxt to write it to the
    txt field in code. However I’m not 100% on if that’s
    the correct way to write it.

  • Trouble with Dynamic TextField and Virtual Keyboard

    I'm working on a flashlite 3.1 touchscreen device running a flash app that I've written. At certain times, I need to be able to enter text, so I created an onscreen keyboard that updates a dynamic textfield.
    If I use a dynamic textfield, a caret doesn't appear, and you can tell where you are entering text. Using some of the text metric info, I've been able to *draw* a caret at the proper position for single line textfields. However, when I try and handle multiline textfields (with wordwrap on), I can seem to figure out what line the *caret* would be or how to breakdown what text is on each line. Has anybody had any success with this? Obviously, hard newlines could be parsed, but the wordwrap is giving me grief.
    In addition, for the Selection class to work, the textfield must have focus. In flashlite, this results in a yellow box around the input, which looks horrible. Is there a way to disable the yellow box?
    Regards,
    Bill

    It is simple, and should be, but I can't say whether you are implementing something incorrectly or if CS5 has some added complexity (or bug) at play.  If we go back to your initial posting, and my initial response, then that should be the end of the story.
    I don't own CS5, but I'd hate to think they made something else difficult to deal with like they seemingly did with timeline tweening in CS4 (which I also did not buy into).  I believe they invented some new form of textfield in CS5, but it'd be sad if they invented some new property to deal with for assigning text to it.
    The only thing I can imagine at this point where it might be something you did involves a couple of factors being at play... 1)  you are using the library name of the movieclip, not the instance name, and 2) your Publish Settings are set for AS2 (so that no error is generated... AS2 is not generous with them like AS3).

Maybe you are looking for