Generate an HTML report

Hi,
I ame trying to generate an html report with SQL/Plus, I have read some tutorial but I have not understood well how I can approach the issue.
Actually I have this report:
SET TRIMSPOOL on
SET PAGES 0
SET NEWPAGE 0
SET VERIFY OFF
SET FEEDBACK OFF
SET SPACE 0
SET ECHO OFF
SET MARKUP HTML Off
SELECT 'CENSIMENTO VARIAZIONE PRODOTTI'
      FROM DUAL;
    SELECT ''
      FROM DUAL;
    SELECT ''
      FROM DUAL;
    SELECT 'Evoluzione VAR'
      FROM DUAL;
    SELECT '--------------'
      FROM DUAL;
    SELECT ''
      FROM DUAL;
    SELECT RPAD('ISIN', 21, ' ')||' '||
           RPAD('SGN', 4, ' ')||' '||
           RPAD('VAR', 4, ' ')||' '||
           RPAD('REF_DATE', 10, ' ')||' '||
           RPAD('START_DATE', 10, ' ')
      FROM DUAL;
    SELECT RPAD('=', 10, '=')||' '||
           RPAD('=', 3, '=')||' '||
           RPAD('=', 3, '=')||' '||
           RPAD('=', 8, '=')||' '||
           RPAD('=', 9, '=')
      FROM DUAL;
    SELECT LPAD(TAB1.COD_ISIN, 12, ' ')||'    '||
           LPAD(TAB1.VAR_TRIMESTRALE_SGN, 3, ' ')||'  '||
           LPAD(TRIM(TAB1.VAR_TRIMESTRALE), 3, ' ')||'    '||
           LPAD(to_char(TAB1.DATA_TIMESTAMP, 'DD/MM/YYYY'), 11, ' ')||'  '||
           LPAD(to_char(TAB1.START_DATE, 'DD/MM/YYYY'), 11, ' ')
      FROM SPR_ISIN_DSI_TO TAB1
INNER JOIN SPR_STATUS TAB2
        ON TAB1.COD_ISIN = TAB2.ISIN
     WHERE --TRUNC(TAB1.START_DATE) = TRUNC(SYSDATE)
        --OR TRUNC(TAB1.END_DATE) = TRUNC(SYSDATE)
       --AND
       TAB2.DSITO_VAR = 'Y'
  ORDER BY TAB1.COD_ISIN, TAB1.START_DATE DESC;
    SELECT ''
      FROM DUAL;
    SELECT 'COLLEZIONE STATISTICHE: '
      FROM DUAL;
    --SELECT '================='
      --FROM DUAL;
    SELECT ' -Prodotti finanziari finanziari censiti: '||COUNT(COD_ISIN)
      FROM SPR_ISIN_DSI_TO
    WHERE END_DATE IS NULL;
    SELECT ' -Prodotti finanziari aggiornati: '||COUNT(DISTINCT TAB1.COD_ISIN)
      FROM SPR_ISIN_DSI_TO TAB1
INNER JOIN SPR_STATUS TAB2
        ON TAB1.COD_ISIN = TAB2.ISIN
     WHERE TAB2.DSITO_VAR = 'Y'
       AND TAB2.NEW = 'N'
       AND TAB1.END_DATE IS NULL;
    SELECT ' -Nuovi prodotti finanziari censiti: '||COUNT(DISTINCT TAB1.COD_ISIN)
      FROM SPR_ISIN_DSI_TO TAB1
INNER JOIN SPR_STATUS TAB2
        ON TAB1.COD_ISIN = TAB2.ISIN
     WHERE TAB2.DSITO_VAR = 'Y'
       AND TAB2.NEW = 'Y'
       AND TAB1.END_DATE IS NULL;
    SELECT ' -Prototti. finanziari rimossi: '||COUNT(DISTINCT TAB1.COD_ISIN)
      FROM SPR_ISIN_DSI_TO TAB1
     WHERE TRUNC(TAB1.END_DATE) = TRUNC(SYSDATE)
       AND NOT EXISTS (
            SELECT COD_ISIN
              FROM SPR_ISIN_DSI_TO TAB2
             WHERE TAB2.END_DATE IS NOT NULL
               AND TAB1.COD_ISIN = TAB2.COD_ISIN
       );I would translate this in HTML.
I have begun to write this code:
set markup html on
head ' -
table {background: #eee; fone-size: 80% } -
th { background: #ccc: } -
td { padding: 0px; } -
spool result.html
PROMPT <H1>Censimento variazione prodotti</H1>
PROMPT <H2>Evoluzione var</H2>
set termout off
set pagesize 80
column TAB1.COD_ISIN 'Isin'
column TAB1.VAR_TRIMESTRALE_SGN 'Segno var trimestrale'
column TAB1.VAR_TRIMESTRALE 'Var trimestrale'
column TAB1.DATA_TIMESTAMP 'Data timestamp'
column TAB1.START_DATE 'Start date'
SELECT LPAD(TAB1.COD_ISIN, 12, ' ')||'    '||
           LPAD(TAB1.VAR_TRIMESTRALE_SGN, 3, ' ')||'  '||
           LPAD(TRIM(TAB1.VAR_TRIMESTRALE), 3, ' ')||'    '||
           LPAD(to_char(TAB1.DATA_TIMESTAMP, 'DD/MM/YYYY'), 11, ' ')||'  '||
           LPAD(to_char(TAB1.START_DATE, 'DD/MM/YYYY'), 11, ' ')
      FROM SPR_ISIN_DSI_TO TAB1
INNER JOIN SPR_STATUS TAB2
        ON TAB1.COD_ISIN = TAB2.ISIN
     WHERE --TRUNC(TAB1.START_DATE) = TRUNC(SYSDATE)
        --OR TRUNC(TAB1.END_DATE) = TRUNC(SYSDATE)
       --AND
       TAB2.DSITO_VAR = 'Y'
  ORDER BY TAB1.COD_ISIN, TAB1.START_DATE DESC;
spool off
set markup html offBut when I try to execute this code I receive this error:
ORA-00900: invalid SQL statementBut, moreover I have another problem how can I insert in the html version this part of the old report:
SELECT 'COLLEZIONE STATISTICHE: '
      FROM DUAL;
    --SELECT '================='
      --FROM DUAL;
    SELECT ' -Prodotti finanziari finanziari censiti: '||COUNT(COD_ISIN)
      FROM SPR_ISIN_DSI_TO
    WHERE END_DATE IS NULL;
    SELECT ' -Prodotti finanziari aggiornati: '||COUNT(DISTINCT TAB1.COD_ISIN)
      FROM SPR_ISIN_DSI_TO TAB1
INNER JOIN SPR_STATUS TAB2
        ON TAB1.COD_ISIN = TAB2.ISIN
     WHERE TAB2.DSITO_VAR = 'Y'
       AND TAB2.NEW = 'N'
       AND TAB1.END_DATE IS NULL;
    SELECT ' -Nuovi prodotti finanziari censiti: '||COUNT(DISTINCT TAB1.COD_ISIN)
      FROM SPR_ISIN_DSI_TO TAB1
INNER JOIN SPR_STATUS TAB2
        ON TAB1.COD_ISIN = TAB2.ISIN
     WHERE TAB2.DSITO_VAR = 'Y'
       AND TAB2.NEW = 'Y'
       AND TAB1.END_DATE IS NULL;
    SELECT ' -Prototti. finanziari rimossi: '||COUNT(DISTINCT TAB1.COD_ISIN)
      FROM SPR_ISIN_DSI_TO TAB1
     WHERE TRUNC(TAB1.END_DATE) = TRUNC(SYSDATE)
       AND NOT EXISTS (
            SELECT COD_ISIN
              FROM SPR_ISIN_DSI_TO TAB2
             WHERE TAB2.END_DATE IS NOT NULL
               AND TAB1.COD_ISIN = TAB2.COD_ISIN
       );I have found some tutorial but I do not succed to understand what I have to do.
I try to execute the previuos code in toad, for simplicity how can I obtain the html output in my window?
Thanks a lot, bye bye.

Hi Abdujaparov,
To prevent your ORA-00900: invalid SQL statement, try putting the head option on the same line as set:
set markup html on head ' -
To execute in TOAD, execute as script by pressing F5 (Never tried with markup, though)
Regards
Peter

Similar Messages

  • Generating an  html report based on table at sql 2005 db

    Hi
    I want to create an html report based on a table named inventory on sql server 2005 database.
    first code used to generate an output report
        try {
                // TODO add your handling code here:
                String s = "<html> <body> <table border=1><caption> Inventory Report </caption>";
                s += "<tr><td>Item_id<td>item_name<td>Existing quantity</td><tr><td>3<td>4<td> <td>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                    fs = new FileOutputStream("D:\\Report\\Report.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
    Second jdbc  code for connection and select all records in the table
    try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
         String s="";
    while(rset.next())
        s+=(rset.getString(1)+"\t\t"+rset.getString(2)+"\t"+rset.getString(3)+"\t"+rset.getString(4)+"\n");
          st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
            }                             I want someone helps me to merge two codes into one code to generate an output html report.
    thanks in advance

    This is my trial but not the desired result ,it's displayed the title and a line only
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            // TODO add your handling code here:
                          String s = "<html> <body> <table border=1> <caption>Report title</caption>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
    while(rset.next())
                   s+=("<tr><td>"+rset.getString("Item_Code")+"</td><td>"+rset.getString("Item_Name")+"</td><td>"+rset.getString("item_cost")+"</td><td>"+rset.getString("item_quantity")+"</td></tr>");
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
         st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
        }

  • Generate static HTML Report from Abap

    Hello dear BW-gurus,
    Let me explain our problem: we need a html report which contains the query-result (like the normal result table in a  web-query) and all corresponding (BW)documents to that query or key figures. Also all key figures formulas should be in that document.
    Up to now no problem: I use an own class which inherits from  cl_rsr_xls_grid, take the p_string (the query result as html formatted string) and concatenate all the other Information like documents or formulas html-formatted to that string. From this string I can generate a file or can countinue processing.
    But here is my problem: We need a link from the key figures in the result table to the documents or formulas of the key figures.
    please take a look to the example document:
    <b>Query result</b>
    0Datefrom   |  KPI A   |  KPI B
    01.01.06   |  1234    |  2345
    02.01.06   |  3456    |  4567
    <b>existing Documents</b>
    Doc A
    KPI = KPI A , Datefrom = 02.01.06 : "Content of Document A"
    Doc B
    KPI = KPI B , Datefrom = 01.01.06 : "Content of Document B"
    --> In this example, there should be two <a hrefs>-links:
    1. From 3456 to Doc A
    2. From 2345 to Doc B
    Anyone has an idea of how to get it working? Is the class cl_rsr_xls_grid completely wrong for that? Do I have to use a cl_rsr_www* class and cl_rsr_www_modify_table? And if so, how can I generate a sting or so with the cl_rsr_www* classes?
    thanks in forward for your help!
    O.Tl.

    Hello dear BW-gurus,
    Let me explain our problem: we need a html report which contains the query-result (like the normal result table in a  web-query) and all corresponding (BW)documents to that query or key figures. Also all key figures formulas should be in that document.
    Up to now no problem: I use an own class which inherits from  cl_rsr_xls_grid, take the p_string (the query result as html formatted string) and concatenate all the other Information like documents or formulas html-formatted to that string. From this string I can generate a file or can countinue processing.
    But here is my problem: We need a link from the key figures in the result table to the documents or formulas of the key figures.
    please take a look to the example document:
    <b>Query result</b>
    0Datefrom   |  KPI A   |  KPI B
    01.01.06   |  1234    |  2345
    02.01.06   |  3456    |  4567
    <b>existing Documents</b>
    Doc A
    KPI = KPI A , Datefrom = 02.01.06 : "Content of Document A"
    Doc B
    KPI = KPI B , Datefrom = 01.01.06 : "Content of Document B"
    --> In this example, there should be two <a hrefs>-links:
    1. From 3456 to Doc A
    2. From 2345 to Doc B
    Anyone has an idea of how to get it working? Is the class cl_rsr_xls_grid completely wrong for that? Do I have to use a cl_rsr_www* class and cl_rsr_www_modify_table? And if so, how can I generate a sting or so with the cl_rsr_www* classes?
    thanks in forward for your help!
    O.Tl.

  • Generating an HTML report from two tabs.

    Hi Guys, and sorry if the title is not clear.
    My situation is like this: I have two tabs for two different conditions. In the first tab, I want generate part of my HTML report regarding the first tab. Then, in the second tab, I want add more details to my previous HTML report. Can this be done in LabVIEW 8.0? I appreciate any advice.
    cheers and thanks!
    Mike

    Hello Gurdas,
    I have not previously encountered this behavior when using the report generation toolkit to append images to a Word report. Can I assume that you are using the "Append Control Image to Report VI" to add these images to the Word report? With this VI you wire in a reference to each of the controls for which you are trying to export the image. I ask because I was able to successfully export images for graphs that I had not yet viewed on a tab control. Also, which version of LabVIEW are you using that you experience this difficulty?
    One thing to consider may be execution order; when does data get written to graphs on each tab? Are you sure that an image append operation can never take place before data exists on a graph? If you have a small example VI that shows this behavior, that might help me to identify an easier workaround for you. I hope this information is useful for you. Thanks,
    Mike D.
    National Instruments
    Applications Engineer
    Message Edited by Duffman Says: on 02-13-2007 07:34 PM

  • Generate automatic HTML Report output

    Is there any methode to generate 100 Reports
    in diffrent times in html format automaticaly.

    Yes. U can schedule the reports for different times. See the help on "schedule" command line parameter. But this will require Oracle Reports Queue manager.

  • Generate HTML report with ANT

    Hello,
    I'm  new to FlexPMD. I have just generated my firsts reports. I try to generate HTML reports.
    I browse the documentation, this forum and the web and I find informations to :
    - generate documentation with Hudson
    - generate documentation with Maven
    - generate documentation with XSLT pmd.xml -> html
    Ok, I try to keep it simple. So I don't want to use Hudson.
    I'm using ANT, and I currently don't want to install/learn Maven.
    I'm using FlexUnit with ANT. And It's really simple to generate reports :
    <junitreport todir="${report.flexunit.loc}">
                <fileset dir="${report.flexunit.loc}">
                    <include name="TEST-*.xml" />
                </fileset>
                <report format="frames" todir="${report.flexunit.loc}/html" />
    </junitreport>
    I'm really new to FlexPMD, so I don't have currently a big knowledge, but it seems impossible to generate a HTML report just like junitreport. (1 line in an ANT task)
    I test the XSLT transformation found on this forum (thread "XSLT pmd.xml -> html"). It's really cool. But it's seems difficult, for example, to extract the wrong code part and add it to the HTML page.
    So, what is the simpler solution to generate HTML report just with FlexPMD/ANT ?
    Thanks !

    Hello,
    Currently you generate a PMD report with ANT  like this :
    <! -- define taskdef  -->
    < taskdef name="pmd"  classname="com.adobe.ac.pmd.ant.FlexPmdAntTask"  classpath="${build.pmd.loc}/flex-pmd-ant-task-${flexpmd.version}.jar">
             < classpath>
                 < path refid="flexpmd.base" />
                 < pathelement  location="${build.pmd.loc}/commons-lang-2.4.jar" />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-core-${flexpmd.version}.jar" />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-ruleset-api-${flexpmd.version}.jar"  />
                 < pathelement  location="${build.pmd.loc}/flex-pmd-ruleset-${flexpmd.version}.jar"  />
                 < pathelement  location="${build.pmd.loc}/plexus-utils-1.0.2.jar" />
             < /classpath>
    < /taskdef>
    then generate XML  report like this :
    < pmd  sourceDirectory="${src.loc}" outputDirectory="${report.loc}"  ruleSet="${build.pmd.loc}/rules.xml"/>
    The  XML contains some file nodes :
    < file  name="/Users/user/workspace/AS3_UTILS/src/utils/align/gridAlignSpaceNumber.as">
           < violation beginline="22" endline="22" begincolumn="0"  endcolumn="27" rule="adobe.ac.pmd.rules.naming.TooShortVariable"  ruleset="All Flex Rules" package="utils.align"  class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="5">This  variable name is too short (3 characters minimum, but 1 actually).  Detects when a field, local, or parameter has a very short name<  /violation>
    < /file>
    The  message is in the text node  < violation>TEXT< /violation>
    For  me, we miss an important part of the message : the portion of the "bad"  code.
    It could be very usefull if PMD can generate  something like this :
    < file  name="">
           < violation beginline="" endline="" begincolumn=""  endcolumn="" rule=""  ruleset="" package=""  class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="">
            < description>TEXT< /description>
            < code><CDATA[MY CODE
    MY CODE
    MY CODE]>< /code>
        <  /violation>
    < /file>
    With this, we can  generate "full" HTML report with XSLT transform easily.
    I  understand that it modify the standard XML schema of the output.
    So,  perharps it could be an option like this :
    < pmd fullDescription="true"  sourceDirectory="${src.loc}"  outputDirectory="${report.loc}"  ruleSet="${build.pmd.loc}/rules.xml"/>
    What do you think ?
    Thanks !

  • Difference in the appearance of HTML vs. Standard reports generated with the Report Generation VIs?

    When I generate a "Standard Report" (to a printer or PDF) with the attached code, the output looks like this:
    If I instead use the same code to generate an HTML report, the output looks like this:
    Can anyone explain why the HTML output has had the extra spaces stripped out of it?
    Is there anything I can do to prevent it from happening?
    VI is attached (LV v11.0.1f2) but this is what it looks like...
    Attachments:
    Print Test.vi ‏47 KB

    SteveBale wrote:
    If you look at your html source the spaces are there. The problem is the way html is rendered it removes the spaces. You will either need to add in <pre> </pre> tags to tell the browser to include those spaces, or insert the string &nbsp; which the browser interprets as a single space.
    Regards,
    Steve
    OK, thanks. I guess I'll end up living with it the way that it is because
    using either method seems to also have the side effect of causing the output to become double-spaced and
    the only reasonable place to implement the change (so that it did not also impact the "standard report" output) would be within the report generation VIs and I'd rather not be modifying them.

  • Html report shows blank page if pdf report is also generated

    Steps to reproduce
    1. Generate any html report with multiple pages.
    2. The first page of the report will be shown.
    3. Now generate the same report in pdf.
    4. Go to the first report again (html report) and try to go to the next page
    (second page)by clicking on the forward arrow > at the bottom of the report.
    I am using java to invoke reports

    Hi Karen,
    I would like to provide the document "Report Design: Best Practices and Guidelines " to you and hope it can provide some help.
    Avoiding Blank Pages
    Sometimes, you will see blank pages when you output reports to a physical page format such as PDF or print. Generally, this will happen when the size of the report body exceeds
    the size of the page. To ensure that all the contents fit on a single page, the body width plus the margins should be less than the defined page width. A textbox or other report item can cause the width of the body to exceed the page width, even when the portion
    of the item that exceeds the width has no visible contents. In addition, report items growing horizontally (matrix data regions and images set to automatically Autosize or Fit) can also cause the body to grow.
    Reference:
    <http://technet.microsoft.com/en-us/library/cc966445.aspx>
    Best Regrads,
    Halin Huang

  • Repository reports cannot generate HTML report

    Hello
    In our Computing Labs, we have Oracle9i Designer installed on Windows XP Professional.
    Our students are having a problem when they try to Run Report in Repository Reports.
    The student first sees an error message for Internet Explorer that says "Cannot find "file:///c:/docume~1/%username%/LOACLS~1/Temp/ck*.tmp.html". Make sure...". %username% of course being the current user and ck* being the filename of the report.
    If the user examines the contents of ~/Local settings/Temp, they will see that when this error message comes up, there is a file ck*.tmp (no HTML extension). The HTML file is never generated though.
    When the user click on the OK button for the error message, Internet Explorer open to a blank page. When IE is closed, Repository Reports posts a message that says "CDI-21309: Unable to delete file c:\docume~1\%username%\locals~1\Temp\ck*.tmp.html". When the OK button from this message is clicked the user is returned to Repository Reports, but the report is never generated.
    Our users are set up as Dynamic Local Users, and are members of the Power Users group. We do have some pretty tight restrictions on Group Policy.
    When a user who is a member of Administrators (also dynamic local user) logs in and attempts to create a report, (s)he has no problem. Repository Reports functions exactly as it should.
    I have already given Power Users complete access to all files on the hard drive, so I don't think it could be an NTFS file permission issue.
    If anyone has any advice, it is certainly welcome. Our students need to be able to print off these reports for classes, and I am not familiar at all with Designer.
    Thank you very much
    David Summers
    University of Idaho ITS
    Student Computing Labs

    Here is how I resolved my problem with non admin users not being able to run reports.
    Designer 9i ver 9.0.2.80.6
    Repository Reports ver 9.0.2.80.4
    Problem - When non Administrator users try to generate a report in Repository Reports, they either get a file not found error for the HTML report (and IE will not show the report) or Repository Reports stops responding (and rwrun.exe has to be manually killed).
    Fixes
    -%TMP% and %TEMP% environment variables must resolve to paths that are fewer than 30 characters. In our environment (WindowsXP with Novell Dynamic Local Users), %TMP% and %TEMP% were the temp folders in the user's profile, which is a long path. Changing the environment variables to point to c:\temp was one step in resolving the issue. Although there is a patch released related to this, my installed version is post-patch and I still had to change the temp environment variables.
    -HKLM\SOFTWARE\ORACLE\HOME0\REPORTS_TMP must be set to a writable area for the user group using Designer and Reports. In our environment it was set (during install) to the local administrators temp space (in administrators local profile) - I'd guess it gets set to whatever %TMP% or %TEMP% is for whichever user installs the application. Our users cannot write to this folder, so setting this registry value to c:\temp was another step in resolving the issue.
    -c:\OraHome1\reports\logs must be writable for whichever user group is running Reports. Before making this change but after making the previous two changes, reports would simply freeze for Power Users. When trying to log off, rwrun.exe had to be manually killed - and sometimes a Dr Watson report would come up and ask to be sent in. By granting the user group that uses Reports write permissions to this folder (or the equivalent in your environment), Repositry Reports no longer freezes and successfully generates the HTML report.
    David Summers
    University of Idaho ITS
    Student Computing Labs

  • Maven : Generate html report

    Hi all!
    I would like to know how to generate the html report with the maven plugin.
    It's said that "Currently, FlexPMD produces a XML report by default, plus an HTML report when invoked by the Maven site plugin."
    I added the section correponding to the FlexPMD in my pom project as following :
                <plugin>
                    <groupId>com.adobe.ac</groupId>
                    <artifactId>flex-pmd-maven-plugin</artifactId>
                    <version>1.0.RC4</version>
                </plugin>
    but when I do a site generation, it just generates me a pmd.xml report with the violations (good!) but the flexpmd.html report generated is empty (there are just the default informations about my project but nothing about pmd).
    If someone has allready configured flexpmd on his maven project, I will be happy to have some help please!
    Thanks'

    Hi
    We didn't modify anything to get the HTML report. We just download the source code of "flex-pmd-maven-plugin", modify the version in the pom to "1.0.RC4", and launch "mvn clean install"
    This will install the plugin and download all dependencies in your MavenRepository
    Then in the pom of our flex project we define the plugin in the <build><plugins> section and also in the <reporting><plugins> section , like this :
    <plugin>
         <groupId>com.adobe.ac</groupId>
         <artifactId>flex-pmd-maven-plugin</artifactId>
         <version>1.0.RC4</version>
    </plugin>
    Then in the top level of our flex projet (the same level of the pom file) launch "mvn clean site"
    This will generate the flexpmd.html in the target/site directory.
    Hope it will help !

  • Generate diagram driven HTML report.

    Is there a way to generate an HTML report that is diagram driven.  More specifically I'd like to publish our model for easy access, and have a subview diagram be the main point of entry.  Users can click on a table in the diagram, and get the details shown in the HTML report currently generated (with a # link, of course).
    The default reports generated aren't easily navigable and easy to get overwhelmed in.

    Hi,
    Is there a way to generate an HTML report that is diagram driven.
    No there is no diagram driven report
    easy access, and have a subview diagram be the main point of entry.  Users can click on a table in the diagram, and get the details shown in the HTML report currently generated (with a # link, of course).
    The default reports generated aren't easily navigable and easy to get overwhelmed in.
    You an have subview driven report. You need to create report configuration and then you can select objects in  one or several subviews to appear in report even you can exclude some of them from report. And you'll get subview driven navigation at the beginning of report.
    Philip

  • Need a help on HTML report

    Hi,
    am going to generate an HTML report for a table by using below code
    SET heading off
    SET pagesize 80
    SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>Job Comparison Report</title> -
    STYLE TYPE=’TEXT/CSS’><!--BODY {background: ffffc6} --></STYLE>"
    SET ECHO OFF
    SPOOL "C:\Jc\Reports\LoadUnmatchedCustomerHistory.htm"
    select * from TB_JOB_REPORT;
    SPOOL OFF
    SET MARKUP HTML OFF
    SET ECHO ON
    its working fine.
    but in my TB_JOB_REPORT table contains more than hundred accounts information also which is having only two fileds one is ACCT_NUM another one is TEXT_REPORT. i just want to geenrate individual report for each account as of now am getting all accounts information in a single report.
    is there any possibility to generate a report for individual accounts.
    like select * from TB_JOB_REPORT where ACCT_NUM=???, i just want to pass a loop to get corresponding account information but not sure how to implement this logic in for loop.
    any ideas to do this please share me...
    Thanks in advance

    Last week I have played with something like below (not tested!!! not very sure I remember all :( - just to get an idea ;)
    html attributes (fonts, colors, borders, ... you name it - I'm not even aware of) were filled in by others
    with
    the_data as
    (select 1 a_number,'abc' a_string,sysdate a_date from dual union all
    select 2,'qwertzuiop',trunc(sysdate) - 2 from dual union all
    select 3,'qwxy',to_date(null) from dual union all
    select 4,null,to_date('1.5.2000','dd.mm.yyyy') from dual union all
    select null,'?',trunc(sysdate) from dual
    select xmlelement("table",
             xmlagg(
               xmlelement("tr",
                 xmlelement("td",xmlattributes('right' as align), 2 * a_number),
                 xmlelement("td", initcap(a_string)),
                 xmlelement("td", to_char(a_date,'yyyy-mm-dd hh24:mi:ss'))
             order by a_number desc nulls first
                     ).getclobval()
      from the_dataRegards
    Etbin

  • Specifically controlling the width of a table in an HTML report

    I am generating an HTML report that consists of several detail tables
    followed by a summary table at the end. Each detail table is
    generated within a for loop. The summary table is generated
    separately at the end. The detail tables all have the same column
    width and same number of columns. However, I cannot get the summary
    table to have the same column width even though it has the same number
    of columns and the same column width setting.
    Does anyone have any suggestions?
    Thanks!

    Hi,
    What VI are you using to create the tables using the for loop? What VI (Append Table to Report.vi?) are you using to create the table at the end?
    If you are using the Append Table to Report.vi to create the tables in the for loop, can you change the width of the columns and see expected behavior?
    Let me know, and I should be able to help you out further.
    Travis H.
    National Instruments
    Travis H.
    LabVIEW R&D
    National Instruments

  • Apply a border to the chart in HTML report

    Hi,
    I am generating an html report as the final output for my LV program. I have a few graphs that i have added to the report using the append control image to report tool. I have set the image on the control panel to be transperent so that it is printer friendly when i print out the html report. Everything works fine but there is no border around the axis, i.e. there is no solid line that defines x axis and y axis for the graphs. Is there is a property tool that can be used to set this?
    Thanks

    I have used this trick alot. One thing that I found is that if you make the color inside the graph white instead of transparent you will get the results that you are looking for. I usually make the outside of my graph transparent and the inside of my graph white and it looks good.
    Hope this helps
    Joe
    Joe.
    "NOTHING IS EVER EASY"

  • How to print a html report?

    I have LV 6.1 pro and I want after succesfull generate of html report
    print them. How?

    If you want to print the HTML report, you'll have to use ActiveX to open the resulting report with your web browser and then tell the browser to print it. Of course if you are wanting to print it, why are you using HTML? Why not generate it as a standard report? Or do both--one for printing and one for online publication.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for