Smartforms - Handle dynamic text

Hi All,
I have a smartform where in the "header" window is defined a "template1" which fields are: %graphic2, %text1, %text2, %text3 and %graphic3.
I need to change the text of the "header" if the plant changes. First of all, now I have 3 text elements but I wont to replace these text by only one text.  In other words I need to set a condition for showing 3 text elents or 1 text element with a new text.
My doubt if about the definition and use of a text module (tcode smartforms) and how to link it in my smartforms without to remove the structure "template1".
Which is the best way to proceed?
Thanks in advance for your help.
Regards,
      Giovanni

Hi,
I have understood the way to display the text under a condition (i.e. plant) but I don't need to print a string but a complex text on many lines and with words in bold and other words in different font and size. I wish to display dynamically the right text.
For example, is there the possibility do define a "global" text and outside the smarform? Then is it possible to set this text dynamically in this way:
<template name/node>-<name of the text field> = Z<text element defined globally or outside the smartform>
Should be an easy way for me.
Any help will be well appreciated.
Thanks.
Regards,
      Giovanni

Similar Messages

  • Dynamic Text translation in Smartforms

    Hi experts,
       I want to translate a smartform from EN(English) to DE(German).I achieved this through SE63 transaction.It is working fine,but I have three dynamic values passed to the smartform as (&One&,&two&,&three&). These three values are always displayed in EN(English).How to translate these dynamic values also in to DE(German).
    Every thing is based on log on language.
    I searched in SDN but didn't hit any result. Help me on this issue experts.
    Thanks&Regards,
    Karthik.

    goto so10, give a name to text
    give text id as 'ST'
    object as 'TEXT'
    and language as u want.
    and create
    now in ur smartform-> create a text node of type include text and provide the same details ie name, textid, object and language.
    see page 46 in this pdf doc for more help on include text(sapscript texts)
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    Edited by: kartik tarla on Jan 31, 2009 1:35 PM

  • Issue passing values to text symbols in Dynamic text PDF forms

    Hello Everyone,
    I am facing a problem related to Dynamic texts in Adobe PDF forms (Text node of type include text). I am able to pass the dynamic values to the Text node properties but i am not able to pass the values to Text symbols inside the Text node. When tested it says the field not found. I have the same structure and field in the CONTEXT as that of the text symbol. The problem i see is because in PDF the field names have $record.(fieldname) ?
    Please share your thoughts if anyone has faced similar problem or know how to handle it.
    Thanks a million in advance,
    Chandu

    Open the report up in the Designer and Click on Edit, Subreport Links. Likely what you can do is use Shared Variables to pass values from the main report to the subreport.
    You need to do this in the report first. If you are using RAS then you can at runtime. If RAS is not available to you then no way in code.
    See these samples:
    Root Page
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    Enterprise Samples (including managed and unmanaged ras)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Exporting Samples (RAS)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Also refer to the DSK help files for the Engine or RAS and search on the subreportcontroller.
    If you are using RAS I'll move your post to the SDK forum.
    Thank you
    Don

  • Using loadVariables() to populate a Dynamic Text in a MovieClip

    Hello everyone,
    I am trying to populate a Dynamic Text with data from a
    remote database. I have no problem populating the Dynamic Text with
    the data from the remote database if the Dynamic Text is placed in
    the main timeline using the following code.
    loadVariables ("php/attorney.php", "");
    Once I move the Dynamic Text into a Movie Clip with instance
    name of “MC_But_1” I am only able to populate the
    Dynamic Text if I place the above code in the movie clip. Since it
    is going to take sometimes for the data to be transferred from the
    remote database I rather to do this on the main timeline before the
    MC_But_1 is shown. I have used the following code but for some
    reason it is not working.
    loadVariables ("php/attorney.php", _root.MC_But_1);
    Can someone be kind enough to tell me where I am going wrong?
    Thank you very much and have a great day.
    Khoramdin

    > Since it is going to take sometimes for the data to be
    > transferred from the remote database
    That is one of the best arguments for abandoning
    loadVariables() in
    favor of LoadVars(). Check that out in the manual. It's
    better because
    there are events that get triggered when a data transfer has
    completed
    and you can write an event handler script to deal with server
    responses.
    Christian Scholz-Flöter

  • Load Multiple Dynamic Text Files in Different frames on Maintimeline

    Hello!
    I have managed to load an external text file in one place one the maintimeline. I would like to do the same thing on other frames. When I go to duplicate the same thing that I did on the first one I get a duplicate textReq request. Do I need to give the textReq a more specific name for each section? When I did this the movie wouldn't even recognize and of the code that was working before.
    Can anyone help me with this code? Thanks in advance
    I am attaching link so you can see sections I am talking about. Also you will notice that the swf file I loaded won't go away. That's another problem...ugh.
    Here is link:
    http://www.sandraschmitt.com/coclico/index100.html
    Here is code on maintimeline:
    stop();
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.events.ProgressEvent;
    function startLoad() {
        var swfLoader:Loader = new Loader();
        var swfRequest:URLRequest = new URLRequest("endlessCoclico3.swf");
        swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
        swfLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
        swfLoader.load(swfRequest);
    function onCompleteHandler(loadEvent:Event) {
        addChild(loadEvent.currentTarget.content);
    function onProgressHandler(swfProgress:ProgressEvent) {
        var percent:Number = swfProgress.bytesLoaded/swfProgress.bytesTotal;
        trace(percent);
    startLoad();
    //handle events for buttons...
    collections.addEventListener(MouseEvent.CLICK, clickSection);
    raison.addEventListener(MouseEvent.CLICK, clickSection);
    stores.addEventListener(MouseEvent.CLICK, clickSection);
    news.addEventListener(MouseEvent.CLICK, clickSection);
    contact.addEventListener(MouseEvent.CLICK, clickSection);
    home.addEventListener(MouseEvent.CLICK, clickSection);
    function clickSection(evtObj:MouseEvent) {
        //trace shows what's happening... in the output window
        trace("The "+evtObj.target.name+" button was clicked!");
        //go to the section clicked on...
        gotoAndStop(evtObj.target.name);
    Here is code on actual frame where the dynamic text is working:
    //Loaded exteranl text fields
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("text_philosophy.txt");
    function textLoaded(event:Event):void {
        philosophy_txt.text = textLoader.data;
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE, textLoaded);

    Textfields:  What I like to do, mainly for peace of mind, is to have a layer that I dedicate to actionscript that only has code in frame 1 but it extends the full length of the timeline so that this code is available to every frame on any other layer.  In this frame I put variables and functions that can get used/shared wherever they happen to be needed.  I usually create another separate layer for actions types of actionscript... stuff that happens at the local frame level, like stop();, or like assigning a variable a new value, etc... things local to being at that frame/location.  So with that in mind
    In frame 1 on my shared-by-everyone layer, I'd probably declare the variable....
    var textReq:URLRequest;
    And when I get to a particular frame where I want to load a new textfield with data, I assign that var its value on the local actions layer...
    textReq = new URLRequest("text_philosophy.txt");
    along with the rest of the local execution regarding loading the file, etc...
    SWF's:
    Yeah, pretty much, and it becomes an object that has a home on the timeline, so if you move away from that frame the swf doesn't follow.

  • A drag and drop game with dynamic text response

    Hi,
    I am a teacher and my school has recently upgraded to Adobe Design Premium.  Our previous version was about 5 versions out of date.
    I teach A Level which requires students to create an Interactice Multimedia product.
    In the previous 6 years, I have taught students how to create simple drag and drop game with dynamic text responses.
    Since the upgrade to Actionscript 3.0 the dynamic text response has ceased working.
    When creating the game from scratch, I need to move to Actionscript 2.0 as 3.0 does not allow me to add actionscript to objects - I know and am sure that this is a better way of doing things, but I would prefer to keep working the way I am used to.
    I use a switch case statement which I have copied below to make the drag and drop work.  The objects I apply the code to work in that they can be dragged, however, my dynamic text box with a variable name of "answer" is no longer displaying the response when an answer is left on a dropzone (rectangle converted to a symbol and given an instance name).
    on(press) {
    startdrag(this);
    on(release) {
    stopdrag();
    switch(this._droptarget) {
      case "/dropzoneB":
       _root.answer="Well done";
       break;
      case "/dropzoneA":
      case "/dropzoneC":
       _root.answer="Hopeless";
       break;
      default:
       _root.answer="";
       break;
    Any help would be much apeciated.
    Thanks
    Adrian

    To drag in as3
    blie_btn is the instance of the object drawin on the stage. In AS3 you have to assign a even listener, in this case MOUSE_DOWN, and MOUSE_UP, as we want the drag to stop if the mouse is not clicked. Then we fire the functions, and tell the object to start drag.
    // Register mouse event functions
    blue_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    blue_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    // Define a mouse down handler (user is dragging)
    function mouseDownHandler(evt:MouseEvent):void {
         var object = evt.target;
         // we should limit dragging to the area inside the canvas
         object.startDrag();
    function mouseUpHandler(evt:MouseEvent):void {
         var obj = evt.target;
              obj.stopDrag();
    if you want to make the text do what you want then something like this might work.
    In the function, you could add a text box onto the stage, give it a instance of something like outputText
    and then:
    outputText = ("Bla Bla Bla");
    (^Not sure if this will work exactly^)
    PS. I am currently a A-level student

  • Dynamic text in different movie clip

    Inside scene one i have a movie clip that contains a movie
    clip that contains a dynamic text field. Also inside Scene one I
    have a different movie clip that contains a movie clip that
    contains a movie clip that contains a input text field. And I need
    for the user to type in to the input text field and see what they
    are typing show up in the dynamic text field. What would that
    script look like and where would I put it? Can anyone help
    please?

    hi!
    Lets say you have your dynamic clip on the same level as the
    movieclip containing your input field.
    _root.dynamic_texfield_name.text =
    _root.name_of_movieclip.input_texfield_name.text;
    If you need the dynamic textfield to be updated as soon as
    the user types something in the input field you can use a onChange
    handler.
    _root.name_of_movieclip.input_texfield_name.onChange =
    function(){
    _root.dynamic_texfield_name.text =
    _root.name_of_movieclip.input_texfield_name.text;
    }

  • Php vs textfile dynamic text

    ok i am at the last part of my project. it worked all well and reads all text fields from a text file as seen on :
    http://www.myblueranch.com/index2.html
    now i am trying to get the same thing working from MYSQL.
    Notice that the text file i used for index2.html is called
    www.myblueranch.com/trees1.txt
    and it was a direct copy/paste from the php page that gave the results from the MYSQL query. (the php query page is:)
    www.myblueranch.com/flash_names.php
    The problem is i am getting an error in
    www.myblueranch.com/index.html
    which uses the php to get the text for the dynamic fields.
    I get the following error:
    TypeError: Error #2007: Parameter text must be non-null.
        at flash.text::TextField/set text()
        at final_fla::MainTimeline/onDataLoad()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    my flash movie has 113 buttons called button_1 --> button_113 and 113 dynamic text fields tcname_1-->tcname_113
    my AC3 code is the following:
    // button links: to all buttons to open in iframe 'tdes'
    // link corrosponds to button number
    // i have 113 buttons.
        for(var i:int=1;i<=130;i++){
            if(this["button_"+i]){
                this["button_"+i].addEventListener(MouseEvent.CLICK,f);   
        function f(e:MouseEvent):void{
            var n:String=e.currentTarget.name.split("_")[1];
            navigateToURL(new URLRequest("ranch.php?id="+n),"tdes");
    // end of button links
    //Create the URLLOader instance
        var myLoader:URLLoader = new URLLoader()
        //the data will come as URL-encoded variables
        myLoader.dataFormat = URLLoaderDataFormat.VARIABLES
        //Load using an URLRequest, even beeing local
        myLoader.load(new URLRequest("flash_names.php"))
        //onLoad handler listener
        myLoader.addEventListener(Event.COMPLETE, onDataLoad)
        //Error handling   
        myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError)
        myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError)
        //Could be an error or just a message
        myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus)   
        //add a listener for the complete event
        function onDataLoad(evt:Event){
            trace(evt.target.data.cant);
            for(var i:uint=1; i<evt.target.data.cant; i++){ 
                this["tcname_"+i].text = evt.target.data["tcname_"+i]
                this["tcname_"+i].autoSize="left"
                this["tcname_"+i].multiline = true;
                this["tcname_"+i].wordWrap = true;
                this["tcname_"+i].width = 70;http://forums.adobe.com/post!input.jspa?container=2066&containerType=14
                this["tcname_"+i].visible = false;
                this["button_"+i].addEventListener(MouseEvent.ROLL_OVER, buttonover);
                this["button_"+i].addEventListener(MouseEvent.ROLL_OUT, buttonout);
                trace(i);
    // ON ROLLOVER make text field visible and change color
        function buttonover(e:Event){
            var tf:TextField=TextField(this["tcname_"+e.currentTarget.name.split("_") [1]]);
            trace (tf.name);
            tf.visible = true;
            tf.textColor=0xff0000;
    // ON ROLLOVER make change color and make invisible
        function buttonout(e:Event){
            var tf:TextField=TextField(this["tcname_"+e.currentTarget.name.split("_") [1]]);
            tf.textColor=0x000000;
            tf.visible = false;
        //error callbacks
        function onIOError(evt:IOErrorEvent){
            trace("IOError: "+evt.text)
        function onHTTPStatus(evt:HTTPStatusEvent){
            trace("HTTPStatus: "+evt.status)
        function onSecurityError(evt:SecurityErrorEvent){
            trace("SecurityError: "+evt.text)

    Kenneth this created another problem:
    1- i changed the code of the php to make it look like:
    &tcname_1=Cherokee SweetGum&tcname_2=cedar&tcname_3=cedar&cant=3
    and now i get this error:
    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
    at Error$/throwError()
    at flash.net::URLVariables/decode()
    at flash.net::URLVariables()
    at flash.net::URLLoader/onComplete()
    Also when i do that even when i load from a textfile (i.e. not from MYSQL through php) i see no text at all!!
    2- Where did you want me to put these trace lines? if i put them in the end of my ac3 script i get this compile error:
    Scene 1, Layer 'Layer 1', Frame 1, Line 97
    1120: Access of undefined property evt.
    did i do something wrong?

  • Displaying images in dynamic text fields

    Hi, I am having some difficulty getting my images to display
    in a dynamic text field. The images are linked from a txt file with
    the <img src=""> tag however they are not showing up in the
    text area. The rest of the html are rendering fine except the image
    tag. My example online is here:
    www.supernaturalmedia.com.
    Here is the code I used in Flash:
    var style_sheet = new TextField.StyleSheet();
    var css_url = "global.css";
    style_sheet.load(css_url);
    news.StyleSheet = style_sheet;
    loadVariables("projects_news.txt", this.news);
    My css styles also isn't loadin so i temporarily am using
    html styles for formatting. I'd like to get the css to work as
    well.
    My movie is published as Flash Player 6, AS 2.0.
    I'd appreciate any helpful advice.
    Thanks,
    Stanton

    1. don't assign the stylesheet property of your textfield
    until loading of global.css is complete. ie, use the onLoad handler
    for stylesheets.
    2. you have movieclip images that are linked for export and
    you're using their linkage id in src property of the img
    tag?

  • Dynamic text based on page number

    Hi Everyone,
    I'm trying to place a dynamic text on an hrform. The form is displaying wage types and when there are more than 2 pages, the values on the first page need to be summerized into a variable with the text subtotal in front of it. When we are on the last page, the text total with the total of all the wagetypes needs to be displayed. I tried to use the sfsy-page and sfsy-formpages variables to know on which page i am but the strange thing is that when i use in in program lines and i use debugger to look into the variable i get this:
    First page:
    sfsy-page = 1
    sfsy-formpages = 1
    Second page:
    sfsy-page = 2
    sfsy-formpages = 2
    But when i place it into a text element to test i get 1 of 2 on page one and 2 of 2 on page two. How is this possible?
    Also i want to display a subtotal of the displayed wagetypes per page. Anyone an idea how i can do that?
    Thank you!
    Lars

    Hi,
    The reason you get 1-1 ,2-2 in debugging is because, the pages are added dynamically,depending on the length of your main window.Which doesnt get captured initially,but can be used in text element.
    As far as totalling on every page and at the last page is concerned ,try teh following link:
    link: [http://wiki.sdn.sap.com/wiki/display/ABAP/Togetsubtotalsoneachpagein+smartforms]

  • Handling dynamic item data in VSTS

    Hi Team,
    Can you please let us know how to handle dynamic item data in VSTS.
    Regards
    Raghavendra
    8105577088

    Hi Raghavendra,
    Based on your previous threads posted by you in the test forum, I doubt that you want to create the coded UI test, am I right?
    If so, which kind of app did you want to test, WPF or others? Could you share us a screen shot about the real UI controls you want to test? What real Controls you want to test, list item controls or others?
    You know that to find a control in coded UI test, we have to use the unique peoperties as the search properties, so if your controls are dynamic, the real issue would be related to the search properties you use in your code.
    Like this case:
    https://social.msdn.microsoft.com/Forums/en-US/4c4805f0-230d-459d-a3e5-61e62746c5b9/list-box-item-is-not-get-selected-while-play-back-the-recorded-script-in-coded-ui-test?forum=vsautotest
    As Pankaj's suggestion, if the list items are dynamic then you can use the index values instead of the innertext, so the real issue would be related to how to use the search perperties in your side. If you item text value is dynamic, you'd better not
    use the text value as the search properties. 
    About "How does “Coded UI test” finds a control ??", reference:
    http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspx
    If I have misunderstood this issue, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Formatting dynamic texts

    Hi,
    in SmartForms I use dynamic texts to output information in the form. It works fine but I have to format some of them for a smaller or bigger font. SAP does not give any possibility to set the paragraph and/or character formats like in the case of text elements.
    How can I format my texts ??
    Thanks.

    Hi Jorge,
    It is possible to create paragraph format and character formats in smartforms.
    Go to tcode-SMARTSTYLES and create a style and then specify ur style in smartforms
    Globalsettings->Formattributes->outputoptions->style
    if ur copying predefined smartform the copy the used style into Zstyle and make further changes like ur own formata and use it...
    Thanks&Regards,
    Rama Krishna.

  • Dynamic text load

    Hello
    I've created a button "link1" and a dynamic text box
    "my_dynamic_text". When i click on the link i want it to load my
    text. For the text loading I followed this link
    EXAMPLE
    But i get some errors
    **Error** Scene=poetry, layer=link1, frame=1:Line 5:
    Statement must appear within on handler
    myData = new LoadVars();
    **Error** Scene=poetry, layer=link1, frame=1:Line 7:
    Statement must appear within on handler
    myData.onLaod = function(success){
    **Error** Scene=poetry, layer=link1, frame=1:Line 15:
    Statement must appear within on handler
    myData.load("C:/Users/Shevi/Web Sites/Archi
    Baldo/photo1.txt");
    Total ActionScript Errors: 3 Reported Errors: 3
    any idea??
    Thank you

    Hi Brian,
    thanks for your help, this works.
    But, do you know if I can specifiy the file path in an database field and crystal reports will load the file from the specific path.
    Background:
    I have descriptions for items and every item has its own description file.
    If I create the report for item 1 I want to show the item description for item 1, when I create the report for item 2 then I want to show the item description of item 2 etc.
    Thanks
    Jacqueline

  • Change Smartform Language Dynamically

    Hello Guys,
    I got a requirement to display the Smartform text in Russian language from English with the user Login to SAP. I know the way to change the static text with TCode SE63. It also changes the text with user login but what about dynamic text, which we get with our select query in smartform.
    For example: Employee description from KNA1. All the list should automatically changed to the Logged in user language, in my case Russian.
    I have searched on SDN and found only for the static text maintained via Text module or Text element can be converted. Is there any way around, we can achieve this functionality dynamically.
    Regards,
    Chandan

    Hi,
    Check if you have in ADRC the russian info for the Customer .
    To get the data you will need kna1-adrnr .
    This is how it is done here .
    And finally a tip: In the future try to put all your data extraction in the calling program .
    Also note the use of parameter CONTROL_PARAMETERS field LANGU .
    Regards.

  • Newb needs help with dynamic text

    Hi Everyone,
    I don't like being a newb - but that's how it is...
    I'm trying to create a multipage registration form that
    allows uses to register products.
    The first page asks for name etc, and on the second page I
    want it to say "Welcome "+username "!" - that sort of thing...
    The problem is I can't get it to keep the dynamic text values
    accross the pages.
    I can get it to repeat the input on the first page with this
    code:
    _root.firstname_txt.onChanged = function() {
    _root.firstname_repeat.text="Hello
    "+_root.firstname_txt.text;
    However when I call it on the second page it is undefined:
    second_repeat.text="hello "+_root.firstnamt_txt.text;
    trace (_root.second_repeat.text);
    I'm sure this is something simple and I'm just a programming
    dunce...
    Any help is appreciated.
    ta

    if your textfield (_root.firstname_repeat) doesn't exist on
    the 2nd frame, its text property will be undefined.
    to remedy, either extend your textfield's existance into the
    frames needed or use a variable to store its text property (in your
    onChanged handler) and use that variable to retrieve the value you
    need.

Maybe you are looking for

  • Black screen after login while on battery with graphics switching enabled

    Getting a black screen after entering my password while logging into my account while on battery with graphics switching enabled. Everything is up and running, I just can't see it. I can log into the guest account on battery I can log into my account

  • Not getting any Data for Batch and storage Location for 2LIS_03_UM

    Hi All, My requirement is to extract Data from 2lis_13_vdkon from R/3 source system. currently we are on R/3 PI 2003_1_470, For 2lis_13_vdkon we need to upgrade to PlugIn 2004_1. we are planning to upgraded to Solution Tool 2008-1, will that be helpf

  • Installing NeoSpeech voices.  Error

    Captivate 6 -  Version 6.0.1.240.  I am unable to install NeoSpeech voices.  Error:  "Adobe Application Manager may be damaged...etc.  I have downloaded a new copy of Adobe Application Manager 7.0, but continue to get error.

  • MDM Web Services - connectivity

    Hello I deployed the MDM web services on the portal and I am trying to test the web service - update BP the message that I get is Problem while connecting to MDM repository BP on server server_name with user name it seems like the user is empty even

  • Service Levels

    I suffered a drop in the speeds to which I had become accustomed last August I rraised a fault report via the help desk. It was sorted - well I thought so then In September I raised another fault report about slow speeds and once again the fault was