Display ABAP variable in an HTML page

I am trying to display an ABAP variable in an HTML page. What is the syntax for the same? Kindly help.

Thats exactly what im doing...modifying a class to change the properties of the table in a web template. Srry its not a BSP page....
I tried ur syntax..
concatenate '<table><tr><td colspan=6 style="background:green;height:20px">'l_r_tmp_var'</td></tr></table>' into C_CELL_CONTENT.
.It gives an error..
After "'<table><tr><td colspan=6 style="background:green;height:20px">'", there must be a space or equivalent character (":", ",", "."). (":", "          
And when i remove the single quotes from the variable...it gives an error...
Unable to interpret "'<table><tr><td colspan=6          
style="background:green;height:20px">l_r_tmp_var</td></tr></table>'".     
Possible causes: Incorrect spelling or comma error.     
Plz help...

Similar Messages

  • How to display an image on the HTML page by using applet

    Dear friends,
    I am now writing an java applet, I want to display an image on the HTML page, and tried the following commands:
    {color:#ff00ff}{color:#000000}Image map; //put in the class definition
    map=getImage(getCodeBase(),"hhh.gif"); //put in the function of init()
    g.drawImage(map,0,300,this); //put in the function of paint(){color}
    {color}
    However, when I run it, the image wasn't displayed at all.
    I hope who guys ever come across this problem could help me to solve it. Thank you in advance!
    Hawaii

    Hi,
    I am no expert on Images
    but
    from personal exp.
    are you sure that map actually contains the image?
    try using
    ImageIcon ii = ImageIcon(String name);
    map = ii.getImage();I saw a tutorial on images i think on sun
    where they use ImageIcon to load the image

  • Displaying changing data in DW4 HTML pages

    Hi - I'm hoping someone can offer a way to do this more efficiently in DW4 than how I did it for the client.
    I originally did this in Flash but since I'm the only person who knows Flash here, and because I would not be the person updating the data on a daily basis, I moved it to DW4 as HTML files.
    They wanted a map with pushpins of the US and other countries.  See image below:
    When you click on a pushpin, the state or country appears displaying names.  Then you click on a name and it displays data about that person on the right.  See below:
    It's basically a drill-down concept, starting with usa.html, clicking on a state, which displays northcarolina.html, clicking on a name, which displays personname.html. 
    As you can imagine, if you have 50 names, you're going to have 50 HTML pages to keep track of.  And if 20 of those names are displayed on each page like the one above, if Ron quits and is replaced by someone named Mike Smith, you have to go to the NC page and all 20 individual pages to change the names.
    I would love to be able to do this same concept but with one central spreadsheet or some other document that holds all of the names and data for each.  Then, when something needs to be updated, just do it in this central document and the HTML display automatically updates.
    Any idea how this can be done with DW4 and some other type of data file?  Thanks. 

    When you say "DW4" do you really mean "DW4" (vintage 1999) or "DW CS4" (vintage 2009)?
    The best way to do this would be to use server scripting with a database.  But if you really mean DW4, then you would have to manually create all of that scripting.

  • How to display selected records on one HTML page?

    Hi,
    I would like to display selected part of records on one page in HTML region. For example I have a Master - Detail table set named Procedures and Tasks (each Procedure can have one or more tasks)
    I would like to be able to display all Tasks for a given Procedure in one HTML region on a page... The problem is that the number of tasks vary between procedures and can change in time. Also, the 'task description' can be very large so a simple report list of all tasks is something I cannot use... (I would like eg for the task name to be here, and the task_description to be there - unlike the report where everything is in one line...) The following are my ideas but non of them seemed to be feasable here...
    1. Use a report based on vertical columns (However I am using Theme 10 for which there are no vertical column templates. The only vertical templates I can see are the default ones but I have no idea how to customize them - where are they?)
    2. In HTML region use &ITEM_NAME. substitutions. In order to display more than one &EMN_NAME. (based on eg. EMPID) I suspect that I would need to write some kind of javascript loop. Has anyone have an idea about how would such a script look like?
    3. Display each Task in a separate screen. This is something I would want least but better than nothing - to have a customized report which would display one task at a time with some kind of pagination to it...
    Please let me know if someone has tried something simmilar or maybe there is a 4th option which will be simpler and easier...
    Many thanks,
    Pawel.
    I tried to make a very simple illustration of what I would like to achive here:
    http://htmldb.oracle.com/pls/otn/f?p=44995:3:9461299983704828937::::
    Message was edited by:
    padmocho

    Just to answer this one myself....
    In order to achive the above I used a PL/SQL Dynamic Content page and entered a html content in htp.prn('');
    Then, I created a PL/SQL LOOP which searches through the various rows...
    In the end, whenever I wanted to display html content I just used htp.prn and for variables I used htp.p(<var_name>);
    Maybe, it helps ;)

  • How to display an applet in a html page

    I can't get my beautifull new applet displayed in IE.
    I just get a grey box instead of my applet...
    Can someone send me the correct code for displaying an applet under IE ???
    Thanks in advance,
    Menno.

    You need the following code between <body></body> tag:The applet tag wont help unless the OP has NN 6.0 or better. The OP will need the OBJECT tag when using IE and EMBED tag when using NN -- evidently he has a JApplet that will need the java plug-in so that it can run. Conversion from a HTML file having the APPLET-tag is done must then be done with the HTMLConverter.
    If it is in "/java/my_applet" then in the CODE
    attribute you type "/java/my_applet.class" No; the value of the code attribute must be the fully qualified class name. If the applet class file is in "/java/my_applet" and the applet's class name is "my_applet", the value of the code attribute must be "my_applet". The value of the codebase attribute must be "/java/my_applet".

  • How to show a MPEG4/H.264 video in Flash in an HTML page?

    Maybe my title isn't clear. I am hoping someone can shed some
    light on the h264 use in flash.
    Instead of displaying a progressive download .FLV video , I
    am trying to have an MPEG4 /h.264 approx. - a 30meg video display
    in flash in an .html page. Quicktime is easy to do, but Flash is my
    goal.
    I read several articles on h264 and flash 9, including this
    adobe
    H264 article but was hoping there might be an easier and maybe
    quicker solution. I did try renaming the .mp4 extension to .flv in
    dreamweaver but it did not display the video. (...unless it was
    downloading the video completely before displaying...not sure)
    There is a ton of sites, blogs and articles on h.264 and how
    flash 9 will display it...but when it comes to how one might
    actually have h.264 in flash on their own site...I am finding it
    difficult to figure out.
    Forgive my lack of action script and Flash knowledge...any
    direction is appreciated.
    Erick

    ...well I did follow that article on playing an h264/mpeg4
    video in flash. It works well, but how would you add playback
    controls?
    FLVPlayback component only allows you to source an FLV video
    not h264/mpeg4.
    This is probably a simple as3 answer...but I am not
    knowledgeable on as3 to know what code to add.
    Any suggests or direction that I should look would be great.
    In the meantime I am researching actionscript 3 to find and anwer.
    E.

  • How can i display database data in my jsp page?

    actually i m doing a small appliaction of quiz test.
    where i m keeping my question and answers in the database.
    now i want to pull questions from the database and display in the jsp or html page.for each question i m having 4 options 4 them.
    like this user has to answer the question and display the resuklt in the end.
    so how can i do this?
    can i get any example or source code for this from any sites?

    I never tried this... but doesn't the normal html <applet> tag work?

  • How to display a HTML page using ABAP program.

    Hi all,
    I know that this is easy and possible too but I haven't worked on this kind yet. I need to display a screen/ABAP program like TCODE PPMDT, where an HTML page is to be displayed and on the click of the HTML links provided, I need to navigate to someother transaction codes.
    Cheers,
    Sam

    Hi,
    See this sample code
    REPORT ZTESTHTML .
    DATA: ok_code LIKE sy-ucomm,
          myurl(132).
    data: custom_container type ref to cl_gui_custom_container,
          myhtml type ref to CL_GUI_HTML_VIEWER,
          repid like sy-repid.
    DATA events TYPE cntl_simple_events.
    DATA wa_events TYPE  cntl_simple_event.
          CLASS lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS NC_Handler
                FOR EVENT NAVIGATE_COMPLETE OF CL_GUI_HTML_VIEWER
                IMPORTING URL.
    ENDCLASS.
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD NC_Handler.
        myurl = URL.
      ENDMETHOD.
    ENDCLASS.
    start-of-selection.
      set screen 100.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE OK_CODE.
        WHEN 'BACK'.
          CALL METHOD myhtml->go_back
               EXCEPTIONS cntl_error = 1.
          if sy-subrc ne 0.
          endif.
        WHEN 'FORW'.
          CALL METHOD myhtml->go_forward
               EXCEPTIONS cntl_error = 1.
          if sy-subrc ne 0.
          endif.
        WHEN 'STOP'.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'REFR'.
          CALL METHOD myhtml->SHOW_URL
               EXPORTING
                  URL = myurl
                  IN_PLACE = 'X'
                  FRAME = ''
               EXCEPTIONS
                  CNTL_ERROR = 1
                  CNHT_ERROR_NOT_ALLOWED = 2
                  CNHT_ERROR_PARAMETER = 3
                  DP_ERROR_GENERAL = 4.
        WHEN 'OTHERS'.
          CALL METHOD CL_GUI_CFW=>DISPATCH.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MENU'.
      if myhtml is initial.
        CREATE OBJECT custom_container
           EXPORTING
              CONTAINER_NAME = 'CONTAINER1'
           EXCEPTIONS
              CNTL_ERROR = 1
              CNTL_SYSTEM_ERROR = 2
              CREATE_ERROR = 3
              LIFETIME_ERROR = 4
              LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        CREATE OBJECT myhtml
           EXPORTING
              PARENT = custom_container
           EXCEPTIONS
              CNTL_ERROR = 1
              CNTL_INSTALL_ERROR = 2
              DP_INSTALL_ERROR = 3
              DP_ERROR = 4.
        wa_events-eventid = CL_GUI_HTML_VIEWER=>M_ID_NAVIGATE_COMPLETE .
        wa_events-appl_event = 'X'.
        APPEND wa_events TO events.
        CALL METHOD myhtml->set_registered_events( events = events ).
        SET HANDLER lcl_event_receiver=>NC_Handler FOR myhtml.
        CALL METHOD cl_gui_cfw=>flush
             EXCEPTIONS cntl_system_error = 1
                        cntl_error        = 2.
      endif.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Svetlin

  • How to display the value of a javascript variable in a html region ?

    Hello,
    I need to display my page title or name in a html region.
    I added a script in the <title> section of the template header... :
    (thanks Andy : Get page name from page attributes ?
    <script type="text/javascript">
    var pageTitle = '#TITLE#';
    </script>... so I can use it in a javascript variable.
    But now I don't know how to display it in a html syntax..
    Thanks!
    Fanny

    ... so I can use it in a javascript variable.Don't see any reason to modify page templates to introduce an unnecessary global JS variable when the document property is already there. Display it using an appropriate HTML element, e.g <tt>h1</tt> if it's the overall page heading.
    <h1>
      <script type="text/javascript">
        document.write(document.title);
      </script>
    </h1>

  • Cannot display a named part of a HTML page

    Hallo,
    I want to display a named part of a HTML page in a JEditorFrame.
    I have index.html and a part of it is named with <a name="label1">
    My Java code looks as follows
         url = this.getClass().getResource("/Res/index.html#label1");However, I get no URL back from this call. And I have not found any other means to set the ref variable in the URL object.
    Need your help on how to set the fragment name in the URL object.
    Thanks
    Walter

    Hallo,
    with your help I have now the code below which works within Eclipse as well as from a jar file and supports named fragments in HTML files as well. For the sake of completenes, here is how it looks llike
         public HTMLBrowser(String dir, String startPage, String fragment) {
              URL url = null;
              String sFragment = "";
              String sFile = "";
              if (fragment !="") sFragment = '#' + fragment;
              try
                   String urlName;
                   if (dir == "") urlName= '/'+startPage;
                   else urlName = '/' + dir+'/'+startPage;
                   url = this.getClass().getResource(urlName);
                   if (!url.getPath().startsWith("file:")) sFile = "file://";
                   else sFile = "jar:";
                   setPage(sFile + url.getPath() + sFragment);
              catch (Exception e)
                   JOptionPane.showMessageDialog(null, e.getMessage(), "Error Message", JOptionPane.ERROR_MESSAGE);
         }Thanks a lot for all your help. I will try to look at your second alternative and see whether I can get the code working.
    Walter

  • How to display a text file in a html page?

    I have written a servlet that executes a batch file whose output is saved to a txt file. I am attempting to display content of the text file as a html page from the servlet but am struggling I have attempted to read the file and output it as shown below but it is not displaying the correct data
    Appreciate some help
    Thanks in advance
    Amjad
    Runtime r = Runtime.getRuntime();
    Process p = r.exec("C:\\Condor\\test\\QueStatus.bat");
    PrintWriter out;
    String title = "Que Status";
    response.setContentType("text/html");
    out = response.getWriter();
    FileReader fr = new FileReader ("C:\\Condor\\test\\output.txt");
    for (int chr = fr.read(); chr != -1; chr = fr.read()){
         out.print(chr);
    }

    Couple of things. First you should search the forums for how to properly exec a dos batch file. There are some problems you may run into especially with io. I suspect you may not actually be running that batch file at all.
    I would test outputing a text file separately from execing the batch file.
    Here is some code so you don't have to output 1 char at a time. Setting the content length and closing the output stream might help.
    File downloadFile = new File("c:\\blah\\blah\\blah");
    response.setContentLength((int)downloadFile.length());
    response.setContentType("text/html");
    ServletOutputStream out = response.getOutputStream();
    FileInputStream fis = new FileInputStream(downloadFile);
    byte[] buffer = new byte[1024];
    int bytesRead;
    while ((bytesRead = fis.read(buffer)) != -1) {
    out.write(buffer, 0, bytesRead);
    fis.close();
    out.close();

  • How to display a HTML Page in Webdynpro (without IFrame)?

    Hi everyone,
    maybe this one is really simple. I have a RFC returning the URL to a HTML-Page in the backend.  Which of the standard UI-Elements should I use to display that page in my Webdynpro?
    My first guess was to use the IFrame. However, according to different sources this element is deprecated and buggy. So I'm hesitating.
    Are there any other possibilities? Or is it ok to use IFrame nevertheless?
    Many thanks,
    Xiaopeng
    Message was edited by: Xiaopeng Tan

    hi Ashutosh,
    I took a look at the help document. It states that "_self" is no longer supported. And I should use exit plugs instead and specify the URL there.
    But even that won't serve the purpose. I have other UI-elements (fields, tables) on the same screen where I want the page being embedded next to them as co-component. Using _SELF and clicking on the link would would remove all other components.

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • Problem in displaying html page in JEditorPane....

    Hi All,
    i was trying to display a html page in a JEditorPane. i was able to do that when i'm displaying a html page from a local machine.. But when i try to get the page from some website, it giving me
    "exception access denied (java.net.SocketPermission www.java.sun.com resolve)"
    exception. But if i run the same code thru JBuilder, its working. But thru appletviewer or thru IE or Netscape its throwing the error.. Any suggestion or help is highly appreciated....
    Thanks
    Ragu

    Java Applets are very secure, what is good. Java applets are extremely secure
    what is bad. So Applet cannot open TCP connection to any host rather than its
    home host. So you cannot get the resources from any other server (what is common to
    HTTP).
    In JBuilder iit works cause JBuilder is used for development and security in deevelopment
    is not an issue. But it confuses then you see.
    vpanasenko_even

  • Incorrect functionality of Embedded tag in html page, displaying object on top of all layers of Adobe air application native window

    Title
    Incorrect functionality of embed tag in html loader for adobe air development
    Description
    Problem Description: If we had loaded youtube.com video url in a view stack and navigate to other index of stack or away from we UI screen within the same native window video or embeded tag of flash player or any other embed object will be displayed on top of all screens layer in same position of where the object should be placed in side of html loader only.
    Steps to Reproduce:
    1) go to http://get.straweb.com/StraWebBrowser/StraWebBrowser.air download and install
    2) load 2 tabs and in the 3 tab load video player of youtube.com which will a sample video
    before completing the load of 3 tab which trying to load video from youtube.com, navigate to other tabs 1 or 2 in few second once the flash player of youtube.com video player is load it will display in the current tab or UI screen.
    3) Try navigating to other tabs than youtube.com loaded tab you see the flash player is on top it stable.
    4) navigate to 3 tab and try to navigate to other tab you can observe that so how it will not show that flash player and only visible in that 3 tab which is fine.
    Actual Result: Embedded tag of html page displaying on top of all layers of Adobe air application native window
    Expected Result: Embedded tag of html page should only displayed in side htmlloader
    This you can replicate in any adobe air plugin update and on any Hardware and Environment.
    Applicable to all sdk versions of adobe air.

    Adobe Bugbase: Bug 3823839 Incorrect functionality of embed tag in html loader for adobe air development

Maybe you are looking for