Passing Text name in text includes dynamically in Smartforms

Hi Experts,
How to pass text name , text object and text id dynamically while i include text in smartforms.
I surfed in SDN but still i am not clear.
I am calling READ_TEXT FM in my print program. When i try to call using the variables which are used in Print program and here i import them to pass it in text module, It gives me error that no variable of that name found.
Regards
Swetha

Swetha,
it depends how many text combination you want to pass.
if they are some 4-5 than you can simply pass them like:
CASE &VBDKR-VKORG&.
  WHEN '1552'.
INCLUDE ZADDRESS_1552_RT OBJECT TEXT ID ADRS
  WHEN '1454'.
INCLUDE ZADDRESS_1454_RT OBJECT TEXT ID ADRS
  WHEN '1555'.
INCLUDE ZADDRESS_1555_RT OBJECT TEXT ID ADRS
  WHEN '1482'.
INCLUDE ZADDRESS_1482_RT OBJECT TEXT ID ADRS
  WHEN '1483'.
INCLUDE ZADDRESS_1483_RT OBJECT TEXT ID ADRS
  WHEN '1484'.
INCLUDE ZADDRESS_1484_RT OBJECT TEXT ID ADRS
  WHEN '1485'.
INCLUDE ZADDRESS_1485_RT OBJECT TEXT ID ADRS
  WHEN '1486'.
INCLUDE ZADDRESS_1486_RT OBJECT TEXT ID ADRS
above example i used to pass address in script.
else if you dont know how many combination are there than you can write perform routine.
Amit.

Similar Messages

  • Passing text including special characters to Javascript functions

    I need to call a Javascript function with some text retrieved from the database, which may include carriage returns, line feeds etc. I need to change these to the Javascript escape characters "\r", "\n" etc. I can easily write my own function to do this, but suspect there may be a built-in one somewhere I could be using - but can't find one. Is there one?

    Tony,
    I tried using XMLDB_GEN.CONVERT and it worked for me:
    DECLARE
       v_value_to_save   VARCHAR2 (30);
    BEGIN
       v_value_to_save := DBMS_XMLGEN.CONVERT (:t_sql, 1);
       UPDATE my_table
          SET my_column = v_value_to_save
        WHERE my_key = :my_key_value;
    END;
    DECLARE
       v_value_to_select   VARCHAR2 (30);
    BEGIN
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       FOR c IN (SELECT my_value
                   FROM my_table)
       LOOP
          v_value_to_select := DBMS_XMLGEN.CONVERT (c.my_value, 0);
          HTP.prn (v_value_to_select);
       END LOOP;
    END;
    /Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • Problem using text element with type TEXT INCLUDE in smartforms

    Hi,
    I am working on smartform.
    My requirement is to print the text which can range from 1 to 99 (free text). I am using TDNAME, TDOBJECT and TDID from STXH table and putting it in the fields Text Name, Text Object and Text ID of text element created with type "TEXT INCLUDE" in window in smartform.
    It works Fine only when I put exact value of TDNAME in Text Name field.
    But in my case TDNAME can vary according to value of AENNR from Table AENR.
    So I am trying to use a variable called W_TDNAME and pass TDNAME value to it. I am putting this W_TDNAME in the field TEXT NAME. And it says "Inlcude text W_TDNAME does not exist".
    HELP ME OUT.
    ANSWERS WILL BE AWARDED..
    Tushar

    Hi Tushar,
    When you see in Text name field, there is a small button at the end of that field. This is to switch the dynamic field value option on. Click that and use the format &field_name& to enter your variable in that field.
    Deepak Charanyan

  • How to pass text in MDX query

    Hi All,
    I was wondering how to pass text in MDX query.
    Below mentioned is my sample query and it is working fine.
    SELECT
    {[Measures].members} ON AXIS(0),
    NON EMPTY [0MATERIAL].[LEVEL01].MEMBERS
    *[0DOC_NUMBER].[LEVEL01].MEMBERS ON AXIS(1)"
    FROM [$ZTEST]"
    WHERE {[0MATERIAL].[000012345]} ";      
    But in data base 000012345 consists of material name as “ Pepsi “
    Now based on Pepsi I want to fetch results? Is it possible?
    Thanks in advance.

    Srinivas,
    So you are using JAVA, if you consult the developer's guide there is a section specifically addressing your question the ResultSet API should handle this via the formatted
    <b>Retrieving Result Sets
    ResultSet API</b>
    Note that the concept allows for more than two axes, however a two-dimensional, table-like data set makes the
    example easy to illustrate. On the columns axis, two members (“Store Cost” and ”Store Sales”) of the measures
    dimension have been selected; on the rows axis, three members (“Berlin,” ”Hamburg,” and ”Munich”) of the City level
    of a geographical hierarchy. The dataset has six cells:
    Cells provide four mandatory properties:
    • Value — supports all common column types, for example:
    o numeric types
    o dates
    o time values
    o strings
    o null
    • Data type — int value describing the data-type (see java.sql.Types)
    • Status — state of the cell (for example, error or null)
    <b>• Formatted value — a string representation of value</b>
    You can retrieve text in this manner.
    Do you want to be able to pass text as if it were a value as well?
    Cheers,
    Scott

  • Flash CS5 Greeter.cs HelloWorld.fla text type Dynamic not an option? ActionScript 3

    Learning to program in ActionScript 3 for Flash CS5 Pro,
    http://help.adobe.com/en_US/as3/learn/WS5b3ccc516d4fbf351e63e3d118a9b90204-7fdf.html
    The tutorial says that the text box, should be text type Dynamic, but the only choices are TLF and Classic
    Since the Classic closed the Instance name box, I chose TLF text.
    When I test the scene, I get a blank screen, instead of a "Hello World" greeting.  Is there a way around this?

    I had the class file in the wrong directory, and so now it works!  Thank you for looking.

  • Text printinng misalign from text include

    Hi Buddy,
    I am using smartform / smartstyle to print my layout. I was able to print correctly my output but somehow some of the blank character was misaligned.
    Eg. my orginal text is like this:
    Article   2342           phone no     2332
    Article   2999           fax no          8899
    But when I print it is misaligned like this
    Article   2342           phone no     2332
    Article     2999      fax no          8899
    It sounds weird, do you have any ideas that smartstyle may cause this error?
    I use text paragraph as ST since in the text include it is defined as *
    Thanks
    nicki

    Just before the text elememnt, create a COMMAND node and in that specify Go To--> Give the name of the next page. That should introduce a page break.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • How to create a Text Input Dynamically

    hi,
    I have to create a text input dynamically.
    I have use follwing code but its nt working
    OAMessageTextInputBean oamessage=new OAMessageTextInputBean();
    oamessage.setLabel("Table Name");
    oamessage.setMaximumLength(30);
    oamessage.setID("TableId");
    Can ny body share ur thoughts
    Thanks
    Nani:)

    Hi Nani,
    OAPageLayoutBean pagelayout=(OAPageLayoutBean)webBean.findChildRecursive("PageLayoutRN");If your code is for top most controller of page, above line possibly returns null because webBean itself is "PageLayoutRN" so no other child with "PageLayoutRN".
    please use webBean.addIndexedChild as told by gaurav.
    In case the above controller is not associated with pageLayout region and the need is to add the new child under pageLayout then use pageContext.getPageLayoutBean().
    Optionally you can just replace quoted line in your existing code with this one and that should work.
    OAPageLayoutBean pagelayout=pageContext.getPageLayoutBean();Abdul Wahid

  • Subtotal Text in Dynamic ALV

    I have faced the problem with Subtotal Text in Dynamic ALV.
    I don't know why it is not get into "FORM subtotal_text " .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
         i_callback_program             = sy-repid
       IS_LAYOUT                        = gw_layout
         it_fieldcat                    = gi_fieldcat[]
         it_sort                        = gi_sort[]
         it_events                      = gi_events
        TABLES
          t_outtab                       = <gi_dyntable>
       EXCEPTIONS
         program_error                  = 1
         OTHERS                         = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    and
    *&      Form  subtotal_text
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM subtotal_text USING  p_total type ref to data
                             p_subtottxt_info TYPE slis_subtot_text.
      break-point.
    ENDFORM.                    " alv_subtotal
    Thanks in advance

    I put the form name to gi_events
    *&      Form  event_build
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM event_build .
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = gi_events.
      READ TABLE gi_events WITH KEY name = 'SUBTOTAL_TEXT' INTO gw_events.
      IF sy-subrc = 0.
        MOVE 'SUBTOTAL_TEXT' TO gw_events-form.
        MODIFY gi_events FROM gw_events INDEX sy-tabix.
      ENDIF.
    ENDFORM.                    " event_build

  • Change Text Color Dynamically Depending on Which MP3 File is Playing

    Change Text Color Dynamically Depending on Which MP3 File is
    Playing
    Hi,
    Can anyone help with this problem.
    I am trying to change a text cast member's color dynamically
    based on which audio file is currently playing.
    I have 4 Text Cast member buttons named
    Play Song 1
    Play Song 2
    Play Song 3
    Play Song 4
    I am successfully playing the 4 songs in a queue like this
    (ie. If "Play Song 1" sprite text member is pressed then...
    sound(1).queue(member "Song1")
    sound(1).queue(member "Song2")
    sound(1).queue(member "Song3")
    sound(1).queue(member "Song4")
    sound(1).play
    What I would like to do is to have the currently playing song
    text color changed to a different value, say Green.
    So if "Song2" in the queue starts to play then the text "Play
    Song 2" would become Green. When done it would then turn back to
    black then "Song3" starts to play and "Play Song 3" text script
    button would then turn from black to Green an so on.
    These are the codes I've tried in the frame script and none
    seem to work...
    on enterFrame me
    if sound(1).status = 3 then member("Play Song 1").foreColor=5
    (This works but only for the first song because "Play Song 1"
    is directly named and clicked on.)
    else member("Play Song 1").foreColor=255
    end if
    I have tried to make a reference to the playing song and so
    far each of these doesn't work...
    --if sound(1).status = 3 then
    sprite(me.sound.member).foreColor=5
    --if sound(1).status = 3 then
    sprite(me.spriteNum).member.color=rgb(0,255,0)
    --if sound(1).status = 3 then member
    (sound(1).member).foreColor=5
    --text = member(whichMember).scriptText
    end
    Is there any way to reference the song name text cast
    member??
    I thought I had it when I discovered sound(1).member but
    sound(1).showProps returns the playing sound.member as
    member: (member 28 of castLib 1) nothing there I can use?
    It doesn't show the member name and
    It doesn't show the song name "Song1" which I could then
    match up to the "Play Song 1" text
    I'm pretty new to lingo so specific code examples would be
    appreciated.
    Can anyone help??? Thanks!!!

    did you get anywhere with this?
    When applying a styleClass to a af:showDetailItem, it doesnt seem to have any effect whatsoever.

  • Passing text data

    The web page loading (browsing) sequence is
    www.abc.com/main.html > www.abc.com/subpage1.html > www.abc.com/subpage2.html
    QUESTION:
    How to pass text data which is in a dynamic textbox ("I want to fly") from www.abc.com/main.html  to www.abc.com/subpage2.html

    You are correct. The js function and externalinterface class. are not a problem. But how could I add (pass on) the current stiring to the next URL?
    Because in my case the sring varies all the time.
    www.abc.com/main/?john=111
    www.abc.com/main/?peter=222
    www.abc.com/main/?mathew=333
    www.abc.com/main/?paul=444
    What I want is;
    www.abc.com/main/?peter=222  > www.abc.com/sub/?peter=222  > www.abc.com/supersub?peter=222
    If you suggestion works please could you show me a code to do the following
    yourURLstring = "www.xxxx.com?yourquerystringvariable="+yourquerystringvalue;

  • Generate input text fields dynamically on clicking a image with adf??

    Is it possible to generate input text fields dynamically on clicking a image with adf??
    The functionality to add and remove text field from UI with ADF??

    Yes, you can dynamically add components to a page.
    [url http://www.nearinfinity.com/blogs/michael_bevels/dynamic_forms_using_jsf.html]Here is an example - it demonstrates with ICE Faces components, but the concept is the same for any type of component, including ADF
    John

  • Execute immediate with using clause to pass column name dynamically

    Hai,
    Is there any way using execute immeidate to pass the column name dynamically. I used to pass the column value as dynamic with the help of "Using clause" . But if i use to pass column name, it is giving numberic error at run time. Eg,. for testing has been given below.
    1. Column value as dynamic, which is working correctly.
    create or replace function testexeimm (acctnum char)
    return number as
    acctbal number;
    begin
    execute immediate 'select balance from acct_master where acct_no=:a' into acctbal using acctnum;
    return acctbal;
    end;
    2. Column name as dynamic which is not working
    create or replace function testexeimm (colnam char)
    return char as
    acctbal char;
    begin
    execute immediate 'select :a from ch_acct_mast where rownum=1' into acctbal using colnam;
    return acctbal;
    end;
    Any help in this regard will be highly appericated.
    Regards
    Sridhar

    So the variable has to be numeric too:
    create or replace function testexeimm (colnam char)
    return number as
    acctbal number;
    begin
    execute immediate 'select '|||colnam||' from ch_acct_mast where rownum=1' into acctbal;
    return acctbal;
    end;Max
    http://oracleitalia.wordpress.com

  • Passing file name dynamically to the file adapter

    Hi All,
    I'm using a file adapter to create a file from the XML message after mapping in XI. The file name is given in the file adapter configuration. Is it possible to have the file name as a part of the message and pass it to the file adapter dynamically? Or is it possible to have the file name in some variable or something in XI (like a BPM variable) and pass it to the adapter for every message?
    Does someone have any idea?
    Thanks,
    Sandeep

    Hi Sandeep,
    This is possible.
    For creating filenames dynamically for your sender, you will have to crate a variable name ( eg: %VAR%) as you file name and then you will have to give the name of your file under variable substitution. Just check this link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    In the case of receiver file adapaters, you have 5 options for file creation like,
    1.Create
    2.Append
    3. Add time stamp
    4.Add Counter
    5. Add Message ID
    You can choose any of these options or you can do it dynamically from you payload. Just check out this help link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Hope this helps

  • Format text in dynamic pages

    I4ve built a form in Portal where I insert multi-line text into a date base. Then I4ve created dynamic page where I call through and oracle tag to this text inserted in date base but the text I obtain has different format.The one I get is as single line format.
    Does anyone Knows how to apply a format to a text in dynamic pages or DB?

    Hi,
    When you are printing or displaying the data make use of the <pre> tags. This tag keeps the formatting as it is.
    Here is a sample
    <html>
    <head>
    </head>
    <body>
    <oracle>
    for c1 in select description from tab
    loop
    htp.p('<pre>');
    htp.p(c1.description);
    htp.p('</pre>');
    end loop
    </oracle>
    </body>
    </html>
    Thanks,
    Sharmila

Maybe you are looking for

  • Problem overclocking A64 x2 3800+ with K9A2 CF !

    Hi there, I have an A64 x2 3800+ (windsor) on a MSI k9A2 CF (AMD 790X) with a pair of GeIL 1Gb DDR2 800 CL4 (4-4-4-12) and I'm trying to boost it up... I've followed some guides and I was able to determine the maximum speed of each component. With a

  • Connection is not following the Sticky database when one router is comming to up state.

    Dear Team, We have 2 routers configured  in Cisco ACE.( Router 1: 10.250.226.4,Router 2: 10.250.226.6) and VIP 10.250.226.19. In a normal scenario all the client connections are perfectly handled by ACE and Its sending to client request to router as

  • Excel to Txt file

    Hi, I have data from Excel sheet, but the program I am using needs .txt tab delimited format. When I save the Excel as text(tab delimited) file, the Amount is moving under Docu Date and Reson code data is moving under Customer. Can you please help me

  • Missing python libraries such as rsvg

    Hello, I'm new to Arch Linux and Linux in general. I've just manually installed tpfand and tpfan-admin from https://launchpad.net/tp-fan which are fan controllers for Thinkpads. I had some trouble running tpfan-admin, because it was looking for a mis

  • Which Java API's must a Expert Java Developer know thoroughly ?

    There are more than 3000 classes in Java how can Java Developer remember or be aware of most of them if he wants to become a Core Java Expert. Concepts like Object Orientation, Java Programming Syntax, Operators, Flow Control, Exceptions, Assertions,