Dynamic graphic in smartform

Hi All,
I have a requirment of displaying drawing in my smartform.But this drawing will be decided only during runtimme. I have used the third option 'DETERMINE GRAPHIC DYNAMICALLY'.I have used a variable 'bcol 'in form interface and through my driver program i am passing the name of the graphic stored in se78.Now i am passing it in the third option as '&bcol&'.
I am getting the message that 'GRAPHIC NOT FOUND'.
Please let me know that i am doing correct or i am missing something.Also is there some other way to call graphic dynamically stored in se78 in smartform.
Thanks in advance.
Binod Prakash

I think you have selected the variable for choosing between BMON and BCOL (monochrome and color graphic).
According to what you say (3000 graphics), I guess you have made a confusion.
To select dynamically the graphic name, you must first click the "triangle" button at the right of the NAME field (first line). You may not see immediately this button as it may be hidden by the graphical layout editor. Hide the editor and you will see the button.
Click this button and enter your graphic variable name (&bcol& is a weird name, instead use a name like &graphic_name&)

Similar Messages

  • Dynamic graphic in smartform with exception handle.

    Hi All,
    I have already created a graphic node in the PO Smartform which will display the buyer signature, i have uploaded some signatures graphics to the server and used the &PO-CREATED_BY& parameter in the general attributes of the node. The signature gets displayed fine if the graphic with the buyer's username as name exist.
    But what i'm looking for is: what to do if the graphic doesn't exist (the standard behavior is an error message and its not displaying the preview of the smartform). I would like to set a 'default' graphic (blank image) as the image is the user signature image doesn't exist, but i cannot find the place where i need to implement some logic to do that validation effort.
    I'll appreciate your comments rewarding points for useful answers.
    Regards,
    Gerardo.

    Hi,
    Check the table: STXBITMAPS for the graphics image what yuu are looking for.
    If it is existing, then write a SELECT query in code lines and store the value in a variable.
    [ Declare this in the Global definition part ].
    Then create a window to display the graphics image [ do not create a grpahics node] and add a ALTERNATIVE node.
    Here check the work area variable and put separate graphics in the True node and in the FALSE node.
    Hope this helps.
    Regards
    Subramanian

  • Dynamic graphic in Mail forms

    Hi All,
    I have a mail form which has been created in transaction CRMD_EMAIL. I have been asked to enhance it with a dynamic graphic image.
    There will be uploaded 1 image pr customer in transaction SE78.
    And for each document I must find the corresponding image.
    In normal smartform I can choose between 'Fixed value' and 'Dynamic field value' for graphichs name. And I can see that it works when I create a global variabel eg. 'TESTNAME' and assign it the value '123456'. if I then enter &TESTNAME& as dynamic graphic name, and test print it works fine and prints graphical image 123456.
    But in with the mail forms in CRMD_EMAIL, this is not available. If I enter a variable the field disaperes and in test mode i get the error 'Graphic cannot be displayed' - This is identical to the error I get in smartforms if I enter a name that does not exist.
    Does anybody knows if this is possible to do in mail forms. Or if I can use the smartforms instead of the Mail forms when working with campaigns.
    Best regards
    Dennis Lybecker

    Hi Gregor,
    Thanks for your quick response.
    The document was ment to include a technical drawing regarding the specific installation for the customer/prospect.
    It looks like we are going to include this drawing in a different document, which should be created in smartform.
    If anybody come up with a way to do this - please let us all know.
    Best regards
    Dennis

  • Dynamic graphics in Smart Forms

    Dear All:
    I have a requirement in my SMARTFORM page development that i have to place a dynamic graphics and printout.
    Does anyone know how to control the dynamic graphics in Smart Forms?
    Any help whould be highly appreciated.
    Many thanks in advance.
    Regards,
    Elvis

    Hello,
    You can call the graphic dynamically as per your requirement by calling the Graphic dynamically, For ex: Name of the graphic: &WA_ITAB-FIELD1& ( which is a field of IntTab ITAB taken into Work area WA_ITAB ).
    Also please note that you cannot print / overlay text in a diamond, perhaps you can have a work around to print the graphic and beside the graphic you print the Customer short name. for this you can either define a table / template.
    Hope this helps you.
    Best Regards,Murugesh AS

  • How to display dynamic signature in Smartforms?

    Hi,
    Someone could help me in displaying dynamic signatures in SmartForms?. The signature is an attached file to the document. I already have the binary file but I don't know how to display this as an image in the Smartforms.
    Thanks in advance,
    Oliver
    Message was edited by: Oliver Vera
    Message was edited by: Oliver Vera

    Please give me the reply.
    I have an image content in one internal table.I want to display that image in the smartforms.
    plaese please.

  • How to create Dynamic Window in Smartforms

    Hi all,
    Could you please help me out on how to create Dynamic Window in smartforms excluding Main Window.
    Thanks in Advance.
    Vinay.

    hi,
    Hi,
    1.If you are creating the Different windows for the Countries,then In conditions tab of window specify the Condition i.e.
    company -code = '2201'.
    2.Then that window can trigger ofr that condition.
    3.Other wise, if you are using the different layouts ,then write the condition in Print program and call that form .
    reward me if helpful.

  • I only see the image outline sometimes instead of the "dynamic graphics preview"?

    I'm sure everyone who uses InDesign for any amount of time is aware of something I just recently found out is called the "dynamic graphics preview." [See Fig. 2, below]
    The dynamic graphics preview is the whole image you temporarily see when your trying to crop, or position an image within a frame. It's the part of the image that falls outside of the frame. The parts of the image that fall outside of the image are temporarily "seen" transparently (faded), to indicate that those areas are not within the viewable area of the frame. You usually see this when you are trying to crop the image with the direct selection tool, after you click and hold on the image for a few seconds with the direct selection tool. The temporary transparent preview goes away once you decide on the position and let go of the mouse click.
    So my issue is: when I click and hold, on certain images with the direct selection tool (white arrow) the dynamic graphics preview doesn't show up? All I see is the outline of the path of the image, with NO PREVIEW, or the outline of the shape (usually a rectangle), with NO PREVIEW.
    For instance there was this one situation at work (where I work on catalogs) where the same image was copied six times, in order to make swatches, and when I clicked and held on those particular images the dynamic graphics preview would show, but not on the other images, even though they're the same image!? Meaning, the same exact image file, just copied six times.
    So why can I see the temporary transparent preview for certain instances of the same image but not for others?
    Has anyone else ever experienced this?
    Again any answers are completely appreciated.
    Fig. 1
    Fig. 2

    Peter Spier wrote:
    The first question would be does it work if you try again and wait a bit longer before moving the mouse?
    Next, does it happen in more than this file?
    Does it continue to happen if you restart the computer?
    Does it happen if you use a ne user account?
    – Nope. Tried that.
    – It happens in other files as well. The situation is similar also, where one copy of the same file will show the dynamic graphic preview but the other copies will not.
    – Yes, even after restart, it persists. It occured again today in fact.
    – Yes. Even after I login in with a different account, I get the same issue. Others in my office have had the same issue. Can it be server related? Or permisions related? I don't see how that can be when it's the same exact file, and on one copy it works but on the others it doesn't.
    ..Makes no sense at all.
    By the way this is all happening on CS 5.5 - version 7.5.2 [Fig. 3].
    NOTE: The images above [Fig. 1-2] show CS 3 screen shots because they were made from my computer at home, which as far as I know don't have the same problem with the dynamic graphics preview (DGP). Those images are only there to help illustrate what the DGP is. All the issues with the DGP are occuring in CS 5.5.
    Fig. 3

  • Background color change of dynamic graphic

    hi ,
    i am using 3D Gauge dynamic  graphic i want to change image backgrond color from white to blue.
    thanks in advance.
    regards,
    rohit

    You can add a <rect> tag, see text in bold below ...
    <?xml version="1.0" encoding="UTF-8"?><svg height="300" text-rendering="geometricPrecision" width="300">
         <rect height="299" id="Background"  width="299" x="0" y="0" style="fill:none;stroke:rgb(0,255,0);stroke-width:1" />
         <defs>
              <radialGradient cx="70%" cy="30%" fx="80%" fy="40%" gradientUnits="objectBoundingBox" id="black-white_1" r="150%" spreadMethod="pad">
                   <stop offset="100%" stop-color="rgb(180,180,180)" stop-opacity="1"/>
                   <stop offset="100%" stop-color="rgb(0,0,0)" stop-opacity="0"/>
              </radialGradient>
         </defs>
         <ellipse cx="150" cy="150" fill="url(#black-white_1)" rx="140" ry="140" stroke="rgb(0,0,0)" stroke-width="1"/>
         <ellipse cx="150" cy="150" fill="none" rx="140" ry="140" stroke="url(#black-white_1)" stroke-width="4"/>
         <line fill="none" id="Needle" stroke="rgb(255,20,20)" stroke-linecap="round" stroke-width="5" transform="rotate(330 150 150)" x1="150" x2="150" y1="150" y2="260"/>
    </svg>
    Regards.

  • Creating a Dynamic Node for a Dynamic Graphic - Tutorial

    Hi everyone,
    I'm sharing my first tutorial, hope it'll be helpful for you.
    In the Layout tab, it's possible to create an UI element "Business Graphic". It's a very simple tool that only requires a context node with a category attribute (that means, the values that will appear in the 'x' axis) and one or more series (each one with a color, generally a numerical value). It's possible to add a label for each series for better understanding of the Graphic.
    Although it's a very powerful tool, there are some problems when we must create a graphic with N series and different labels. If the graphic use an ALV or internal table to fetch data, during runtime we can have more or less series. The definition of a static node and generic series is not enough in this case. That's why I'd like to present you this little tutorial to create a dynamic node that fetchs a dynamic graph:
    In the WDDOINIT or Event Handler method that starts the application (once the data is available) we should create the dynamic node in the following way:
      DATA: lr_node_info    TYPE REF TO if_wd_context_node_info,             
                 lt_attributes      TYPE cl_abap_structdescr=>component_table,
                 attribute           LIKE LINE OF lt_attributes,
                 struct_type       TYPE REF TO cl_abap_structdescr,
                 lo_dyn_node    TYPE REF TO if_wd_context_node.
    * Let's suppouse we can LOOP at the data table, so we can fetch the
    * category data type (for example company name, month, year, ...)
    * and each series with a numeric type
      attribute-name = 'CATEGORY'.
      attribute-type ?= cl_abap_datadescr=>describe_by_name( 'STRING' ).
      INSERT attribute INTO TABLE lt_attributes.
      attribute-name = 'SERIE1'.
      attribute-type ?= cl_abap_datadescr=>describe_by_name( 'I' ).
      INSERT attribute INTO TABLE lt_attributes.
      attribute-name = 'SERIE2'.
      attribute-type ?= cl_abap_datadescr=>describe_by_name( 'I' ).
      INSERT attribute INTO TABLE lt_attributes.
    * Once we have all the attributs for the node, we create a formal structure
      struct_type = cl_abap_structdescr=>create( lt_attributes ).
    * Now we can get the context information to add a new node
      lr_node_info = wd_context->get_node_info( ).
    * Create the node
      lr_node_info = lr_node_info->add_new_child_node(
                        name = 'GRPH_DYN'
                        IS_MANDATORY = ABAP_false
                        IS_MULTIPLE = ABAP_true
                        STATIC_ELEMENT_RTTI = struct_type
                        IS_STATIC = ABAP_false ).
    * Now we should populates the node, I'll create a hardcoded table,
    * simulating the internal table that you should already have
      TYPES: BEGIN OF tw_alv,
                        category  TYPE string,
                       SERIE1    TYPE i,
                       SERIE2    TYPE i,
                    END OF tw_alv.
      TYPES: tt_alv TYPE STANDARD TABLE OF tw_alv.
      DATA: lw_alv  TYPE tw_alv,
                  lt_alv   TYPE tt_alv.
      lw_alv-category = 'Alfa'.
      lw_alv-serie1   = 3.
      lw_alv-serie2   = 8.
      APPEND lw_alv TO lt_alv.
      lw_alv-category = 'Beta'.
      lw_alv-serie1   = 4.
      lw_alv-serie2   = 4.
      APPEND lw_alv TO lt_alv.
      lw_alv-category = 'Gamma'.
      lw_alv-serie1   = 1.
      lw_alv-serie2   = 3.
      APPEND lw_alv TO lt_alv.
    * Now let's call the recently created node and bind the lt_alv table.
    * Get node from context
      lo_dyn_node = wd_context->get_child_node( name = 'GRPH_DYN' ).
    * Bind table with ALV Container
      CALL METHOD lo_dyn_node->bind_table
        EXPORTING
          new_items = lt_alv.
    * It's always good to check if the table was succesfully binded.
    * I refresh the lt_alv table and get the values from the node for controlling
      REFRESH lt_alv.
      lo_dyn_node->get_static_attributes_table( IMPORTING table = lt_alv ).
    There are other ways of adding a node structure in the method add_new_child_node, but it works for me only with STATIC_ELEMENT_RTTI. The node is now created and has the data required for the graphic. Now, we should go to WDDOONMODIFYVIEW, or save the target view as a parameter, to create the graphic, bind the category and series and show it on the screen.
      DATA: lr_graph       TYPE REF TO cl_wd_business_graphics,
                  lr_cat           TYPE REF TO cl_wd_category,
                  lr_series1    TYPE REF TO cl_wd_simple_series,
                  lr_series2    TYPE REF TO cl_wd_simple_series,
                  lr_container TYPE REF TO cl_wd_uielement_container,
                  lr_flow         TYPE REF TO cl_wd_flow_data.
    * Get the root element from the Layout or the specific
    * container you have created for the graphic
      lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    * Creates a line busniess graph
      lr_graph = cl_wd_business_graphics=>new_business_graphics(
            BIND_SERIES_SOURCE = 'GRPH_DYN'
            CHART_TYPE = cl_wd_business_graphics=>e_chart_type-lines
            HEIGHT = 340
            WIDTH = 750
            ID = 'GRAPH'  ).
    * Create the flow data for the new UI Element business graphic
      lr_flow = cl_wd_flow_data=>new_flow_data( element = lr_graph ).
    * Set graph in the root container from the Layout tab
      lr_container->add_child( lr_graph ).
    * Bind the category from the dynamic node to the dynamic graphic
      lr_cat = cl_wd_category=>new_category(
                      view = view
                      bind_description = 'GRPH_DYN.CATEGORY'
                      tooltip = 'Company Name' ).
      lr_graph->set_category( lr_cat ).
    * Bind the two series from the dynamic node to the dynamic graphic
      lr_series1 = cl_wd_simple_series=>new_simple_series(
                      bind_value = 'GRPH_DYN.SERIE1'
                      label = 'Sales'
                      view = view
                      tooltip = 'Average Sales' ).
      lr_graph->add_series( lr_series1 ).
      lr_series2 = cl_wd_simple_series=>new_simple_series(
                      bind_value = 'GRPH_DYN.SERIE2'
                      label = 'Purchases'
                      view = view
                      tooltip = 'Average Purchases' ).
      lr_graph->add_series( lr_series2 ).
    Finally we have created our business graphic. Test the application and you'll see something like the attached image.
    Hope you'll find it useful.
    Daniel Monteros.

    Hi,
    http://htmldb.oracle.com/pls/otn/f?p=26372
    then ApEx>Trees and pick a level.
    Use Help for more information.
    I you think that tree could help I will put more explanation into help page.
    Konstantin

  • Issue in populating dynamic values in smartform

    Hi Experts,
    I am facing some serious alignment issue while populating dynamic values in smartform.
    Through table, I am populating  dynamic values in smart form. If my internal table contains 20 records , first 10 records are populating in first page and remaining records are populating in next page properly. But here issue is whenever that first 10 records are populated in first page system automatically leaves empty row at the end of page. Ideally it should not happen. please tell me how to solve this issue.
    thanks
    Karthik

    Hi,
    I was wondering how are the bold lines output, if you only have one line type... is the Table node executed multiple times under the loop node, where the bold text is implemented as separate text node..? It should IMO actually not affect the output of the table in any negative way if it's done so - just curious
    With the "protect" I meant this baby:
    You could also try to download and attach only the (upper) node involved in the output of table instead of whole form, if there is something in the form that should not be seen publicly...
    cheers
    Janis

  • Upload graphic in smartform

    Hello All,
    I am facing problem in uploading graphic in smartform. I have to upload signature and its related contact details in smartform.
    I have maintained signature in z_sign_xxxx format in se78. In smartform i am taking userid of person in z_sign_xxxx variable.Now
    for eg z_sign_test is stored in se78. and i have taken 'test' name in variable z_sign_xxx. so variable z_sign_xxx has value z_sign_test now. when i call graphic there i mentioned variable name under graphic name. and while executing it is taking variable name rather than actual vaue which is z_sign_test. and thats the reason i am able to fetch signature.
    Please advice if anyone knows this.

    Hi,
    try putting name in & & in the graphic window:
    &z_sign_xxx&
    in such case program will put the value of your variable at runtime and try to find the following graphic from SE78.
    Regards,
    MC

  • Background graphics in smartform

    How to include background graphics in smartform in a particular cell on conditional basis

    Hi,
    You can set the background picture at page node level not at window or cell node level
    double click page node> background picture tab> set the graphic name.
    regards
    padma

  • Xacute query output in dynamic graphics

    Hi all,
             i have a question can i create dynamic graphics using xacute query , if yes please tell me hint or suggestion how to do this .
    thanks in advance
    Regards,
    Praveen Sharma

    Praveen,
    See the xMII help documentation first.
    In dynamic graphics load your SVG, create links/calcualted values
    Use BLS to generate the image, store to Web Root
    Reference image on your web page.
    Sam

  • Dynamic formating in smartforms

    I'm just curious if there is a possible to create a dynamic formatting in Smartforms. What I mean saying dynamic? Lets imaging that I've a strucure where I've following information;
    LINE_NUMBER
    TEXT
    This structure is used to build a table, where I can assign one or more text to one line.
    So my example data in this table will be:
    LINE_NUMBER | TEXT
    1 | my first item
    1 | first item description
    1 | some other text
    2 | second item
    2 | second item extended name
    2 | second item additional text
    2 | second item summary text
    and so one...
    So I can have varying texts number assigned into one line (max 8).
    Now I want to use paragraph, with 8 prepared tabs.
    Now the problem comes, how to pass this texts into tableline inside smartform and do not prepare separate lines for 1,2,3... elements?
    Any idea? It is possible to prepare data in variable which looks like:
    1,,my first item,,first item description,,some other text
    and display this data in such way, that commas will be recognized as tabs formatting in paragraph instead displaying them?

    hi..try this...
    create table->create a line type as required.
    loop at itab containing ur data.
    in the main area of the table create a row:
    right click on main area->table line
    in the output options of the row assign the line type from the drop down. in the condition of the row give the condition wa-LINE_NUMBER = 1.
    similarly create other rows(table lines) giving the conditions 1 to 8.
    that is you will have 8 table lines with conditions:
    row1 condition -> wa-LINE_NUMBER = 1
    row2 condition -> wa-LINE_NUMBER = 2
    row3 condition -> wa-LINE_NUMBER = 3
    row8 condition -> wa-LINE_NUMBER = 8
    so if line_number = 1 then row 1 will be use..
    if its 8 then row 8 will be used......
    inside the rows u can use different text elements with different para formats...

  • Problem in displaying applet by using dynamic graphics

    Hi,
    I followed one document for using dynamic graphics editor, the url is
    /people/abesh.bhattacharjee/blog/2007/02/27/get-started-with-dynamic-graphics-in-xmii-115 by Abesh Bhattacharjee.
    The steps are as follows:
    1). Create the tag query
    2). Preparing the 3DDialGauge Object
    3). Creating the BLS Transaction
    4). Creating an Xacute Query for the BLS Transaction
    5). Creating the HTML Page with help of applet.
    In this HTML page we get that image and also 2 buttons.
    Finally we have to get the object designed in step 2 above and it has to change dynamically and refresh the image by pressing one buttons and the other button is to stop the refresh.
    Now i am getting the image and 2 buttons as output of that HTML page but the problem is the image is getting refreshed continously without getting proper display and i am pressing the buttons it is not stopping the refresh and the warning message i am getting is
    document.TransFanSpeed is null or not an object
    and the object is not changing according to the dynamic value please can anyone help me in resolving this problem.

    Hi shyam,
    The html file is as follows:
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="../../../../ServletExec AS/se-xMII/webapps/default/Lighthammer/Stylesheets/lighthammer.css"><br />
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    <APPLET NAME="TransFanSpeed" WIDTH="300" HEIGHT="300" CODE="iCommand" CODEBASE="../Classes" ARCHIVE="illum8.zip" MAYSCRIPT><br />
    <PARAM NAME="QueryTemplate" VALUE="C:/Lighthammer/Illuminator/Templates/Training/SVGexampleXacutequery"><br />
    </APPLET><br />
    </head>
    <body>
    <img src="../../Fan1.jpg" name="refresh"><p></p>
    <button onclick="javascript:doit()">Do it !!!</button>
    <button onclick="javascript:clearit()">Clear Timeout</button>
    <script language="javascript">
    var Time;
    var imagename;
    var tmp;
    function doit(){
    executeQry();
    imagename = "Fan1.jpg";
    tmp = new Date();
    tmp = "?"+tmp.getTime();
    document.images["refresh"].src = imagename+tmp;
    Time = setTimeout("doit()", 1000);
    function clearit(){
    clearTimeout(Time);
    function executeQry(){
    document.TransFanSpeed.executeCommand();
    </script>
    </body>
    </html>
    and the iCommand.java is nothing but internal one there i didn't written any code
    Message was edited by:
            RAJESH PERLA

Maybe you are looking for

  • Is it possible to backup my current iphone to icloud backup from 2 years ago?

    I recently lost my boyfriend in an accident and was hoping to recover photos of him from my phone that I had in 2013. Is the data still available somewhere to be backed up to my iPhone I am using now? I am currently using an iPhone 4s and don't see a

  • Bad version number on Mac, but not PC

    I have a java applet that works fine in Windows. It works fine on Macs as long as I compile it with JDK 1.5. However, once I compile it with JDK 1.6 it loads in Windows, but it doesn't load at all in Mac OSX. I've tried compiling it with javac using

  • Iphone capacity question

    When you have your iphone linked to your computer and you can see the summary tab of the Iphone within Itunes, it indicates the capacity at the bottom. There is ORANGE designated as other........what is encompassed in other on the Iphone????

  • Printing Photos From PC & Mobile Device

    Ive Just Purchased a Photosmart 6520 Printer. I tested the Images I have on a 4x6 Photo Paper. The Problem is The Image Is a Little Bigger & the Outer Image is Not Showing? Im also Trying to use the Scanner Feature. Its Different From Epson? I had an

  • Another question for Experts - How can we copy an ODS structure?

    All I know is we can generate the export datasource. But will it copy the ODS structure? Thank you Swetha