HTML File generating  -Problem

Hi Guys,
I would like to generate html file the below procedure . Any help would be appreciated . Please help me
declare
type empdtlrec is record (empno number(4),
ename varchar2(20),
deptno number(2));
empdtl empdtlrec;
begin
execute immediate 'select empno, ename, deptno ' ||'from emp where empno=(select max(deptno) from emp)'
into empdtl;
dbms_output.put_line('empno ' || empdtl.empno );
dbms_output.put_line('ename ' || empdtl.ename );
dbms_output.put_line('deptno ' ||empdtl.deptno );
end;
Regards,
Orabalu

Hello Orabalu,
To generate an html output you can try following sql (save it as emp.sql) and modify to your needs table and column name and run it thru sqlplus session. Hope this helps
set echo off;
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD "<TITLE>Employee Report</TITLE> -
<STYLE type='text/css'> -
<!-- BODY {background: #FFFFC6} --> -
</STYLE>" -
BODY "TEXT='#FF00Ff'" -
TABLE "WIDTH='50%' BORDER='5'"
COLUMN EMPID HEADING 'Employee ID' ENTMAP OFF
COLUMN FNAME HEADING 'Employee Name'
COLUMN LNAME HEADING 'Department No' ENTMAP OFF
SPOOL report.html
SELECT empno, ename, deptno
FROM emp
WHERE empno = (SELECT MAX (deptno)
               FROM emp);
SPOOL OFF;Regards
Edited by: OrionNet on Jan 17, 2009 10:07 PM

Similar Messages

  • Open in same window and clean cache from swf + html file generate with InDesign CS5

    Hi,
    1)
    I have a Indesign web file exported to swf + html.
    In my document I have a button that point to url (this url is html file of a second Indesign swf + html).
    When I click on button, the url was find an open in another window.
    Is it possible to open this second url in the same window?
    If yes How.
    I think this information is in the swf file and not in html.(How modify the swf code?)
    2)
    How to clean the cache when you reload the url? (in the html generate file)
    I'will very please if somebody of you could help me. it's Important for me.
    Regards
    Philippe

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

  • How to display Image/Logo in Html file generated from Webdynpro App

    Dear All,
      I have developed a webdynpro application and onClick of the Button I am opening  a new browser by generating HTML file.The file is opened successfully.
    My requirement is to display the company logo on that HTML file.  Where to place that image file and how to call that image file in my HTML.
    Regards
    Ponnusamy

    Hi,
    Ex. 1 - If the Index file is in the same directory, called "test"
    tales/numbers.jpg
    Ex. 2 - If the image is in a subdirectory, called "test1" within "test"
    test/test1/numbers.jpg
    img src="test/test1/numbers.jpg"
    Regards
    Ayyapparaj

  • Dynamic html file generation problem

    I have a HTML file(abc.html) which is used when user clicks on a particular link in my web application. Web application has been developed in java. Now due to certain law changes , user wants to add some notices to existing HTML file(abc.html). So when he clicks on the old link, he gets abc.html with those notices appended to it. All the notices are different HTML files.
    So it looks like simple file append problem. But if it will modify my original file permanently, then it is not helping my purpose.
    So my doubt is , how I can append different notices html files to abc.html file and still keep my abc.html file as it is because the changes are based on user conditions. So if X is affected with new laws, he will see abc.html along with notices , if Y is not affected, then he will see abc.html only.

    The best solution would depend on the implementation details of your current web app, but, likely, the easiest way is to convert your html files to jsps. The jsp can then conditionally include relevant disclaimer fragments.

  • Jsp+Tomcat: Is there a max number of lines in a html file generated?

    Hi, I write a jsp page that does a lot of queries on a database and, for each query, views a table with the records return by the query. I have a problem: if the number of queries is low the page work well; if the number of queries is high the page has been truncated. If a watch at the html file of the browser it's like truncated. Are there any parameters that i have to modify? thaks very much

    Truncation usually indicates that an exception occurred after the response had already been committed (due to the output buffer becoming full which will cause it to be flushed).
    check out the logfiles of your webserver if there are any unexpected exceptions in there.

  • Unable to Display Background Graphic From HTML File Generated from AI File

    I am trying to figure out if this is a MAC OS X or Safari issue. I have already a message into the author of the plug-in as well as created a posting on the Adobe Forum.
    I am following a tutorial on Lynda.com called "Design the Web: Illustrator to Animated HTML5 Canvas." I am using a plug in called Ai2CanvasMac with Adobe Illustrator, It essentially generates an HTML file from an Illustrator file. The Illustrator file has an embedded PNG file as a background image and a small vector graphic in front and centered. After the plug-in generates the HTML file, it automatically opens the file up in the browser. This is where I am getting mixed results.
    Safari: The small vector does appear and in the center where the embedded background should appear. But the background image isn't displaying, only a white background is showing.
    Firefox and Chrome: The page is totally blank. Not even the vector graphic appears.
    It will work with two different approaches.
    1. If I edit the source image web links in HTML file and use links from any graphics I find off the web. That works fine. The images are displayed in the browser window.
    2. If I embedded PNG images from my desktop into the Illustrator file and generate the HTML file. That works fine too.
    Does anyone have any ideas as to why I can't the graphics to display properly in the browser without doing this workaround?

    Hi,
    Ex. 1 - If the Index file is in the same directory, called "test"
    tales/numbers.jpg
    Ex. 2 - If the image is in a subdirectory, called "test1" within "test"
    test/test1/numbers.jpg
    img src="test/test1/numbers.jpg"
    Regards
    Ayyapparaj

  • How to add css styles in html file generated from Report builder?

    Hi,
    I schedule report in web browser,but the generated report html file looks very simple and doesn't correspond with the other html files which have css styles.So I want to add css styles to the generated html file from *.rdf in report builder.That is to say I should integrate css style with myReport.rdf.Can anybody tell me how to do that?
    thanks in advance.
    Regards
    jungle

    hello,
    i am not quite sure, what you want to achieve. did you try the DESFORMAT=HTMLCSS which generates inline-style-information.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                               

  • Struts html:file tag problem

    Hi,
    I have already posted but couldn't get the solution. So just incase if anyone can suggest something, it would be appreciated.
    On the form, there is a browse button and a submit button. The normal procedure of clicking on the browse button, and then submit button using mouse works fine. But what we want is , When mouse is pointed on browse button and a "ENTER" button is clicked on keyboard, the file browse window pops up . When we click submit button, that file should be submitted and get processed. The problem is when mouse is pointed on browse button and a "ENTER" button is clicked on keyboard, the file browse window pops up and then when I click submit button, the text field is cleared off instead of being processed.
    I tried all sorts of javascript but still don't know why the text is erased once the submit button is clicked.
    Any suggestions??
    The code related to this is:
    function focus1() {
    if(document.all.uploadFile.click())
    return true ;
    else
    return false ;
    <html:form method="post" action="/SubmitTrans.do" enctype="multipart/form-data" focus="uploadFile">
    Choose the file
    <b>Select File</b> <html:file property="uploadFile" onfiltered=' return focus1();'/>
    <html:submit value="Process"/>
    </html:form>
    Thanks in advance.

    Because the bean util is using reflection to lookup the methods for getting and setting the value. Thus it can't find getter and setter methods for the member named File. But if the member is named file, then it finds getFile() and setFile() because they follow the naming convention. If your not familiar with reflection and java beans, you should take a look at some brief tutorial.
    Example:
    private String username;
    public String getUsername() {
       return username;
    public void setUsername(String name) {
         username = name;
    }

  • Saving the source of html file generated using PLSQL into a client folder

    Hi All,
    I have generated html pages using htp procedure calls. On a button click, these html pages need to be stored as html files on a local client drive folder. My requirement says okay with resulting security issues.
    I have a couple of queries.
    1.Any client side javascript can fetch the source of a html file and can be saved as another file in a client drive?
    2.Using PLSQL, i generated the html pages using htp procedure calls. Is there any way to save contents of the output to a specific folder. (using owa_util or utl_http packages or any other means)
    Is there any way that i could do this.. Any help is appreciated.
    Thanks in Advance.

    > 1.Any client side javascript can fetch the source of a html file and can be saved as another file in a client drive?
    No.
    > 2.Using PLSQL, i generated the html pages using htp procedure calls. Is there any way to save contents of the output to a specific folder. (using owa_util or utl_http packages or any other means)
    No, you cannot from PL/SQL simply write to that client's folder - unless a very complex and very insecure and very non-scalable method of dynamically mapping client folders are implemented.
    This whole approach is also extremely insecure. If you can from the server push a page to a folder on a client, you can also push a binary "page" to a client folder - where this "page" is in fact a worm/virus/trojan that you simply write into the StartUp desktop folder to have it autostarted to install itself on that client.
    Also - web browser automatically save the contents from a web server in their local cache. Thus the pages received are automatically saved locally. For the security reasons already mentioned, operating system and web browser treats this cache with suspicion as it could contain cached virus/worms/trojans - so the cache operates under extreme security conditions.
    The correct way to handle this requirement is to state next to the URL for that HTML page that the user wants downloaded to right-click on it and to select the "SAVE URL AS" option to save it to a local folder.
    Saving that page on the client is the client's responsibility and ownership - from security to simply deciding where that file must be placed on the client system.

  • Creating an html file in XI using an xsl stylesheet  -- two error types

    Hi
    I am working on mapping an xml invoice to an html-file using a stylesheet  (xsl-file)  in the message mapping in XI 3.0.
    Thus the inbound message is an xCBL Invoice and the output message is to be an html file. I name the output file "%supplierid%_%invoiceid%.html using the variable substitution functionality in the communication channel.
    I have two problems:
    1) the <br/> tags in the stylesheet are changed to "<br>" in the resulting html file causing problems in the output file, as this is not valid XML.
    2) I would like to insert the current date and time in the output file and I am using this code, but the date and time is not picked up:
    <B>
          Received:
          <xsl select="xs:string(fn:current-dateTime())"></xsl>
    </B>
    How do I solve these two problems?
    BR
    MIkael

    please note, that it is the tag "br/" that is changed to "br" in the html file.

  • Generate an HTML file from a Report in ABAP

    Good morning,
    How I could generate an HTML file from a report.
    Any Ideas... I have found the function WWW_ITAB_TO_HTML, but someone has the standar code and how use this function?
    Thanks a lot,
    Hernán Restrepo

    Hi,
    I am facing a similar problem.I did try using the function module WWW_ITAB_TO_HTML in the reoprt program, as I'm trying to generate a url from a report, but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue.Thanks in advance.
    DATA:   emp_name                     TYPE char80.
    DATA:   it_itabex                    TYPE zdb_ex_tty,
            it_emp                       TYPE TABLE OF zis_emp,
            it_org                       TYPE TABLE OF zis_org,
            it_pos                       TYPE TABLE OF zis_pos,
            it_pos_alloc                 TYPE TABLE OF zis_pos_alloc,
            it_res                       TYPE TABLE OF zis_res,
            it_res_alloc                 TYPE TABLE OF zis_res_alloc,
            ls_itabex                    TYPE zdb_ex_s.
    DATA:   lv_filename                  TYPE string,
            lv_path                      TYPE string,
            lv_fullpath                  TYPE string,
            lv_replace                   TYPE i.
    DATA qstring LIKE it_itabex OCCURS 10.
    DATA: url(200), url2(200), url3(200), fullurl(200).
    FIELD-SYMBOLS: <fs_emp>              LIKE LINE OF it_emp,
                   <fs_org>              LIKE LINE OF it_org,
                   <fs_pos>              LIKE LINE OF it_pos,
                   <fs_pos_alloc>        LIKE LINE OF it_pos_alloc,
                   <fs_res>              LIKE LINE OF it_res,
                   <fs_res_alloc>        LIKE LINE OF it_res_alloc.
    Report Program to export data from database to Excel.
    Populate all the tables that have to be exported.
    SELECT * FROM zis_org       INTO TABLE it_org.
    SELECT * FROM zis_pos       INTO TABLE it_pos.
    SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
    SELECT * FROM zis_emp       INTO TABLE it_emp.
    SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
    SELECT * FROM zis_res       INTO TABLE it_res.
    Append the Column Header
    CLEAR ls_itabex.
    ls_itabex-ipp_pos_id            = 'IPP Pos ID'.
    ls_itabex-emp_name              = 'Name'.
    ls_itabex-dt_of_join            = 'JoinedOn'.
    ls_itabex-emp_status            = 'Status'.
    ls_itabex-org_name              = 'Org'.
    ls_itabex-prj_name              = 'Project'.
    ls_itabex-mgr_name              = 'Line'.
    ls_itabex-designation           = 'Designation'.
    ls_itabex-specialization        = 'Specialization'.
    APPEND ls_itabex TO it_itabex.
    Append all the tables into one internal table
    LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
      CLEAR ls_itabex.
      ls_itabex-ipp_pos_id          = <fs_pos_alloc>-ipp_pos_id.
      READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
      IF sy-subrc = 0.
        CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name  SEPARATED BY space.
        ls_itabex-dt_of_join        = <fs_emp>-dt_of_join.
        ls_itabex-emp_status        = <fs_emp>-emp_status.
        ls_itabex-specialization    = <fs_emp>-specialization.
      ENDIF.
      READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
      IF sy-subrc = 0.
        ls_itabex-designation       = <fs_pos>-designation.
        READ TABLE it_org ASSIGNING <fs_org> WITH KEY  org_id = <fs_pos>-org_id.
        IF sy-subrc = 0.
          ls_itabex-org_name        = <fs_org>-org_name.
          ls_itabex-mgr_name        = <fs_org>-mgr_name.
        ENDIF.
      ENDIF.
      READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
       ls_itabex-org_name         = <fs_org>-org_name.
      APPEND ls_itabex TO it_itabex.
    ENDLOOP.
    url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
    url2 = '&~OkCode(LGON)=LGON&login-login_user='.
    url3 = '&vbcom-vbeln='.
    CONCATENATE url url2 url3 INTO fullurl.
    WRITE: /'Staffing Excel'.
    CALL FUNCTION 'WWW_SET_URL'
      EXPORTING
        offset        = 12
        length        = 10
        func          = fullurl
      TABLES
        query_string  = qstring
      EXCEPTIONS
        invalid_table = 1
        OTHERS        = 2.
    Thanks & Regards,
    Preethi.

  • Swf2html.exe and infinite generated html files

    Dear,
    I use the tool swf2html.exe from Adobe for extracting textual content on .swf files.
    Is there a way to avoid infinite iteration on such swf files : i.e. http://www.cartoondollemporium.com/superdollz/dollz/1012/doll.swf ?
    The problem is that when I try to generate html file with that file in PHP, swf2html.exe made an infinite iterate and there is no way (except manualy cut the process) to stop for example on a max output file size generated.
    Thanks of you have some tips to avoid or solve that extracting problem,
    For test :
    http://www.se-flash.com/cgi-bin/flash.pl?etape2=1
    with http://www.jeuxclic.com/jeux/bubble_shooter.swf work.
    http://www.se-flash.com/cgi-bin/flash.pl?etape2=1
    with http://www.cartoondollemporium.com/superdollz/dollz/1012/doll.swf made infinite loop....
    Stephane.

    1) All you do is specify a directory with the -d option and Javadoc creates the directory structure below that. We often use either "-d docs" or "-d html" to create a directory named "docs" or "html" in the current directory.
    2) Preferably they should be stored on a server that has a web server running so people can access them. We build the docs nightly on the development server where people can access the latest version using a file: URL (not with a web server). Then before each release we stage them on our intranet before we push them out to the intranet. We also run the DocCheck doclet and a link checker nightly so developers and writers can find errors in their documentation.
    3) If you want a top-level page that links to separate javadoc documents, you need to do this manually. However, keep in mind that you can also inter-link all those separate documents by using the -link or -linkoffline option.
    Let us know if you have more questions or comments.
    -Doug Kramer
    Javadoc team

  • How to generate individual HTML files from linked help?

    Hi folks,
    I'm trying to figure out how to generate individual web pages - based on heading types - from a help project this is linked to a FrameMaker book.
    I'm linking to the FM book, rather than importing, because the import process ruins my graphics. So, I know how to create individual web help pages using the import process; but that's not an option for me. (The graphics issue is a whole other discussion, which I've since given up on.)
    So, I'm using TCS 3.5 (RH9 and FM10). I've successfully linked to the FM book. Each topic represents a complete chapter and includes a single Heading 1 for the title and several Heading 2's. Again, these are all in the same help topic because I'm linked to the FM book.
    What I want to do is generate the web help so that new web pages (files) are created. In other words, I want breaks before each Heading 2. I want the resulting web pages to be named based on the Heading 2.
    Is this possible?
    Thanks for reading,
    Tom

    I’m not sure I understand the problem (I’m using FM 10, RH9, TCS3):  You can adjust .isf and all Conversion/CSS mapping, etc settings for an existing project (Linked or Imported) at:
    File > Project Settings > FrameMaker Document > Edit Conversion settings for FrameMaker documents: (click Edit button).
    Then, Go to FrameMaker Settings > Paragraph > Heading 1 etc. and click the box for Pagination.
    What I don’t know is if you have to re-do your linking process from scratch to do your pagination settings right the first time (like create a new project with your Frame docs, which shouldn’t be hard to test if you have saved your CSS, Master Pages etc), or already have an .isf file  with proper settings that you can specify at time of first import/linking. I already had these in place when I set up my linked project of a Frame book with 13 chapters – 350 pages – resulting in over 300 separate HTML files/topics (set H1, H2, and H3 levels to paginate). I don’t know if you can change these things post-linking, but it can definitely be done!
    There is definitely no reason to have to have an entire FM chapter as one topic in RH. You may have to create a new project to achieve your desired results, I am not sure.
    I hope this is helpful. Regarding RH ruining your images, I know what you mean. Through a painstaking process of research, trial, and error, I found that these Image options in the Conversion Settings produced the best results for me, though not as good as “ideal:”
    ·         Check the box for “Use Distiller to Generate Image”
    ·         Leave the “Do Not Regenerate Images” and “Preserve 3D Images” boxes unchecked
    ·         Under Preferred Dimensions: Check “Maintain Aspect Ratio” and check Width and Height – Set both to 0pt. (*This one was a key tip.) Leave “Scale” unchecked. (Scaling seems to do terrible things in RH.)
    ·         I left the Max Dimensions settings unchecked.
    ·         Set my personal preferences for margins (2pt all sides) and borders (solid, gray, 1 pt)
    ·         Under Advanced, Default format of PNG with color bit depth of 24. My graphics are all screenshots, so this is the reason for this in my instance.
    Regards,
    Virginia

  • How to generate & publish  webhelp html files in different folder than default folder

    Hi All,
    I am new to robo help. I have a requirement to generate & publish webhelp html files in a different folder than default folder.
    Could anyone please tell me the steps to change the folder
    Thanks
    Rashmi

    You change the generate folder and filename in the first field on the first page of the wizard. It must be a folder on your hard disk.
    You change the publish folder in the last page of the wizard. Anywhere you like.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to generate a html file from a xml file with the default Firefox look and feel

    Hello
    Any xml or xsd file are pretty printed with Mozilla firefox. I would like to generate the equivalent html file, in order to introduce it later in a Word document. Do you use a xslt file ? How can I do this ?
    Best regards

    I would be remiss if I did not point out that the forum software detected your Firefox as version 17. Is that correct?
    Version 17 is not secure; Mozilla discloses [https://www.mozilla.org/security/known-vulnerabilities/firefox.html security flaws] after each new release. Is something holding you back from upgrading to Firefox 31? Please let us know so we can suggest solutions or workarounds.
    If Help > About Firefox shows Firefox 31, you may need to clear the preference that is misreporting your version number. See: [[Websites say that Firefox is outdated or incompatible even though it's the latest version]].

Maybe you are looking for