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 !

Similar Messages

  • How to change color in html report with MARKUP HTML ON?

    While generating html reports using MARKUP HTML ON with in sqlplus, I would like to highligh the records with different colors. how can do this?

    Here is an example - it produces nice output and sets the background. It displays in red if database is in NOARCHIVELOG mode. You can go further and use CASE statements for certain conditions to display different colors, font sizes.
    set markup html on spool on entmap off -
         head '-
         <style type="text/css"> -
            table { background: #eee; font-size: 90%; } -
            th { background: #ccc; } -
            td { padding: 0px; } -
         </style>' -
         body 'text=black bgcolor=fffffff align=left' -
         table 'align=center width=99% border=3 bordercolor=black bgcolor=white'
    spool logmode.html
    select  'Archive Log Mode :'|| decode(log_mode,'NOARCHIVELOG','<font color=red>Database in '||log_mode||' mode </font>',log_mode) "Archive Log Mode"
    from v$database
    spool off
    set markup html off

  • 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 !

  • Generating sub reports with XML Datasource in Jasper Report

    Hi ,
    I have a query related to report generation using Jasper Reports. I have managed to generate main report with XML as a datasource but am unable to do so for subreport. I tried serching through Google but in vain. If by chance I've missed out any of the links, i would be grateful for that. Sample code woukd really make my life better.
    Sorry in advance if i 've posted in wrong forum.(if it hurta anyone)

    Hello there,
    I am new to JasperReports and am having a similar problem. Were you able to find out how to do this. Any help is appreciated.
    Thanks in Advance
    Regards
    Sriram

  • How to generate complex reports with JHeadStart?

    I have data from a DataSourceSet process in the infoTable (I use BC4J 9.0.3.10.7, JHeadStart 9.0.3.58, Oracle MVC R.Candidate 2.0, UIX 2.1.9).I need to generate a report with this data in a UIX Table. Actually, I show the data as retrieved from the ViewObject(Whole query in a table). One of the columns has Numbers and I add them at the bottom row with a GetTotalsRow process.
    Now I need to have subtotals in the same table as if I do a GROUP BY but without modifying the query (I have to do this using data stored in infoTable). I also have to add complex calculations for each row.
    Any idea?
    PD: I'm thinking in reading data from infoTable and in a custom process create DataObjectList with all details.
    is it a good approach?
    is there something better?

    Ariel,
    I think I already answered this question on the internal mailing list. Is this correct?
    If you are an Oracle employee, please use the internal mailing list.
    Thanks,
    Steven Davelaar.
    JHeadstart team.

  • Generate HTML REPORTS Help

    hai....
    i am new to this field i need some help regarding how to generate html report ... well i am using db2 as my database .....and these reports are not crystal reports.....
    i have to generate some fields information from multiple tables in the database...
    thank you

    Apex does not as yet support PDF printing out of the box. At this stage your options are;
    1. Wait for the release of Apex 3.0 (evaluation instance is now available).
    2. Use FOP to generate PDF output (probably not for a novice user). See this link;
    http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html
    3. Purchase a product such as PL/PDF
    http://www.plpdf.com
    cheers,
    Ron

  • Generate PDF report with HTML data

    Hi All,
    I am using BI Publisher to generate my reports but I stumbled on a big problem...
    I have a table with a column TASK_DESCRIPTION. This column is a CLOB containing a simple HTML coded page. When a user works with the application he sees a nicely formatted page but when I generate a report I get all the html tags in it (< html > < h4 > ...etc...)
    Is it possible to somehow convert the source data from the table (which is html code) into readable formatted text when generating the report?
    ANY ideas are very welcome!
    Regards,
    Pawel.

    Yes you can do this with an XSL template converting HTML to Formatting objects.
    There are a few catches however. First, you must be sure your markup-fragment is valid XHTML, that is all tags must be closed. Luckily the builtin standard HTML-editor does this.
    I wasn't able to call BI-publisher from within Apex without the XHTML-fragment being escaped, but i managed to create a query on a table containing the fragment within BI-publisher itself. This leaves the fragment intact, producing a valid XML-document.
    This is very important because the XSL attached to the RTF-template must be able to match and convert the XHTML-tags to FO.
    Basic setup :
    Create a datasource (query) within BIP.
    Create the RTF-template and add an extra field (at the top) containing : <?import:file:///C:\xhtml-to-xslfo.xsl?> or whatever location the XSL-file resides.
    Now, layout your report using the wizard and change the field containing the XHTML-fragment into <xsl:apply-templates select="TASK_DESRIPTION"/>
    There are a few XSL-templates out there converting XHTML to FO. One I found particularly useful : http://www.ibm.com/developerworks/library/x-xslfo2app/xhtml-to-xslfo.xsl
    You might want to change the .xsl so it matches tags case insensitive (eg. <xsl:template match="a|A"> )
    Another caveat is the html-entities for special characters. When the XML from the datasource is parsed by BIP it doesn't recognise entities like &Agrave ; .
    This can be solved by creating a pl/sql function converting these characters to numeric entities like &#192 ;. and use this function in the select statement of your datasource. see http://www.w3schools.com/tags/ref_entities.asp
    Now you can call the report from Apex using an URL to the report definiton (see BIP docs for URL syntax and parameter passing)
    Not a 'really' integrated solution but I had some nice results.
    It would be nice though if we could specify a .dtd containing the references for HTML-entities and a sort of flag wheter the report column should be escaped or not, from within Apex. This would allow us to embed XML-fragments within the XML that Apex produces, resulting in a valid XML doc. Using XSL, you can then match the tags of the XML-fragment and convert it to FO.
    Good luck !
    Maarten

  • HTML Report with images in LabVIEW 6.1

    I am generating an HTML report in LabVIEW 6.1 with an image. When I
    save the html file to disk, two files are saved, the report and the
    image. The report has the name I specified but the image does not.
    It is not readily apparent that the two are related. As a result,
    when I try and e-mail or move the report, the image gets left behind.
    Is there a way to embed the image file in the report? Or what is the
    best way to associate these two files so they can be e-mailed
    together?
    Tim Erickson
    Signature Control Systems

    Tim,
    Unfortunately, HTML does not include images.
    A suggestion would be to create a GIF image, or to put everything in a zip file, or something to that effect.
    I had to work with HTML documentation for LabVIEW, and actually used LabVIEW to substitute the images for control types with words, such that images were not required. You can try this if your images are nothing more than representations for which text can be substituted.
    Alternatively, if your image is something like a graph, or the front panel, I might suggest creating a .gif or .jpg image out of it. This has to be done manually, but will make the page one single file.
    Good luck, I hope that helps.

  • 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

  • Error while generating  BI Reports with Formules From Oracle 10g reports

    Hi Team,
    I had a problem of viewing reports in Bi Publisher. I will explain what i am doing
    I an taking an example table emplyee to generate the reports
    create or replace package body tstPkg as
    I am creating Package Header as Below
    function check_role(p_sal number) return varchar2 as
    v varchar2(100);
    begin
    if p_sal > 2000 then
    v := 'MGR';
    else
    v := 'EXEC';
    end if;
    return v;
    end;
    and I am creating Package Body
    create or replace package tstPkg as
    function check_role(p_sal number) return varchar2;
    end;
    after creation i am generating a report by using the formulae so that in paper layout it will generate 14 pages
    with an extra column in a passage format.
    After this i saved it in specific folder
    Then i am converting to XML by using "Reports Converter" Tool to xml.
    By using ConvetionTool ioracle.apps.xdo.rdfparser.BIPBatchConversion , i converted the xml file and it generated .Pls files , template files and the rest..
    After this i cpoied the folder structure into bi publisher reports, then i refreshed the metadata and i changed the defualt data source. but it showing the error as
    ORA-00923: FROM keyword not found where expected
    and my quetry is like this in data template
    select *,EmpSal.cf_1formula(emp.SAL) CF_1 from emp
    How to resolve the above problem?
    Regards
    Bhuvan
    end;
    Edited by: 867649 on Jun 22, 2011 6:38 AM

    Hi,
    When i tried to compile below packages. It gave 'Warning: Package altered with compilation errors.' message for both.
    DBMS_SWRF_REPORT_INTERNAL
    DBMS_SWRF_INTERNAL
    Again i came back to original position. Now again all 4 objects are in INVALID state. Please advice.
    Regards

  • Generate a report with three table

    hi Friends,
    i have three table
    1-
    CREATE TABLE "TRANSACTION_DETAILS"
    (     "S_NO" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "ITEM_NAME" VARCHAR2(500),
         "DESCRIPTION" VARCHAR2(4000),
         "QTY" NUMBER,
         "RATE" NUMBER,
         "AMOUNT" NUMBER,
         CONSTRAINT "TRANSACTION_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
    2-
    CREATE TABLE "LAB_WORK_DTL"
    (     "ID" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
    "VEHICLE_NO" VARCHAR2(20),
         "WORK_DETAIL" VARCHAR2(4000),
         "LABOUR_AMT" NUMBER,      
         CONSTRAINT "LAB_WORK_DTL_PK" PRIMARY KEY ("ID") ENABLE
    3-
    CREATE TABLE "JOB_CARD_DETAILS"
    (     "ID2" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "AMOUNT" NUMBER,
         CONSTRAINT "JOB_CARD_DETAILS_CON" PRIMARY KEY ("ID2") ENABLE
    i want to generate a Report of total amout of bill No Like
    BILL_NO,BILL_DATE,VEHICLE_NO,SUM(AMOUNT) ,SUM(LABOUR_AMT),SUM(AMOUNT)
    I AM USING
    select a.BILL_NO,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) from TRANSACTION_DETAILS a,LAB_WORK_DTL b,JOB_CARD_DETAILS c where a.PARTY_NAME =b.PARTY_NAME and a.PARTY_NAME=c.PARTY_NAME and a.PARTY_NAME =:P38_PARTY_NAME group by a.bill_no,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,b.bill_no,b.BILL_DATE,b.PARTY_NAME,b.VEHICLE_NO,c.bill_no,c.BILL_DATE,c.PARTY_NAME,c.VEHICLE_NO
    ACCORDING TO THIS CODE sum of these column SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) are not correct and there are one more problem if BILL_NO is not in LAB_WORK_DTL JOB_CARD_DETAILS these table then result shows NO DATA FOUND but BILL_NO is avalable in
    TRANSACTION_DETAILS this table.
    How can i generate this report .
    Thanks
    Manoj Kaushik

    1-
    CREATE TABLE  "TRANSACTION_DETAILS"
    (     "S_NO" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "ITEM_NAME" VARCHAR2(500),
         "DESCRIPTION" VARCHAR2(4000),
         "QTY" NUMBER,
         "RATE" NUMBER,
         "AMOUNT" NUMBER,
          CONSTRAINT "TRANSACTION_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
    2-
    CREATE TABLE  "LAB_WORK_DTL"
    (     "ID" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
    "VEHICLE_NO" VARCHAR2(20),
         "WORK_DETAIL" VARCHAR2(4000),
         "LABOUR_AMT" NUMBER,      
          CONSTRAINT "LAB_WORK_DTL_PK" PRIMARY KEY ("ID") ENABLE
    3-
    CREATE TABLE  "JOB_CARD_DETAILS"
    (     "ID2" NUMBER,
         "BILL_NO" NUMBER,
         "BILL_DATE" DATE,
         "PARTY_NAME" VARCHAR2(1000),
         "VEHICLE_NO" VARCHAR2(20),
         "AMOUNT" NUMBER,
          CONSTRAINT "JOB_CARD_DETAILS_CON" PRIMARY KEY ("ID2") ENABLE
    /Can you define the relation between these three tables. I see in your sql you are joining the three table with the column PARTY_NAME. Is that the proper joining condition? Can you explain that.
    And also when you say this
    ACCORDING TO THIS CODE sum of these column SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) are not correct What exactly do you mean. What is not correct? Can you show some sample data.
    And also it would be of great help to all the people here if you format your SQL and use {noformat}{noformat} tag to preserve the format of your code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Jquery + json generate html buttons with condition

    Hi all,
    My need is to generate buttons with conditions described in json. Help me please, I’m newbie.
    Here is my json code (it is valid, but does not work with html code below) :
        "Caption": "Module caption",
        "IconsDirectory": "C://Images/",
        "Buttons": [
                "Conditions": [
                        "ConditionText": "1 == 1",
                        "ButtonText": "Text1",
                        "Visible": true,
                        "Colors": {
                            "FontColor": "#FFFFFF",
                            "BGColor": "#00FF00"
                        "Size": {
                            "Width": 200,
                            "Height": 50
                        "Icon": {
                            "FileName": "Smile.png",
                            "Width": 16,
                            "Height": 16
                        "Url": {
                            "UrlAddress": "http://www.google.com",
                            "OpenNewWindow": true
                        "JavaScriptAction": {
                            "Text": "alert('ok');"
                        "ConditionText": "2 == 2",
                        "ButtonText": "Text2",
                        "Visible": true,
                        "Colors": {
                            "FontColor": "#FFFFFF",
                            "BGColor": "#00FF00"
                        "Size": {
                            "Width": 200,
                            "Height": 50
                        "Icon": {
                            "FileName": "Smile.png",
                            "Width": 16,
                            "Height": 16
                        "Url": {
                            "UrlAddress": "http://www.google.com",
                            "OpenNewWindow": true
                        "JavaScriptAction": {
                            "Text": "alert('ok');"
    html code:
    <html>
    <head>
    <title>SMButtons</title>
    [removed][removed]
    [removed]        
    //When document loaded.
    $(document).ready(function(){  
    // Get data from file as JSON
                $.getJSON('weekendtask.json', function(data) {
            var buttons = data.Buttons;
               $.each(buttons, function(key, val)
                        $('<li><input type="button" value="'+ val.ButtonText +'"/></li>').appendTo('#ulObj');
       [removed]
    </head>
    <body>
    <br>
    <br>
    <div>
    <ul id='ulObj'>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    </ul>
    </div>
    </body>
    </html>
    Also I would like to show here my working code (generating html buttons from json without condition).
    json code (it works) :
        "Caption": "Module caption",
        "IconsDirectory": "C://Images/",
        "Buttons": [
                "TText": "google",
                "JavaScriptAction": "alert('google')"
                "TText": "microsoft",
                "JavaScriptAction": "alert('microsoft')"
                "TText": "yahoo",
                "JavaScriptAction": "alert('yahoo')"
    html code (it works) :
    <html>
    <head>
    <title>SMButtons</title>
    <script src="jquery/jquery-1.4.2.js"></script>
    <script type="text/javascript">                 
    //When document loaded.
    $(document).ready(function(){  
    // Get data from file as JSON
                $.getJSON('Module.json', function(data) {
                // Set json data from file to variable 'persons'
        var buttons = data.Buttons;
        var icondir = data.IconsDirectory;
        // For each item of variable person append to ul list
               $.each(buttons, function(key, val)
                        //$("<li><input type='button' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' style='"+ val.Style +"' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' value='"+ val.TText +"'/></li>").appendTo('#bbb');
                        //style="height: 25px; width: 100px"
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
                        $('<li><input type="button" onClick="'+ val.JavaScriptAction +'" value="'+ val.TText +'"/></li>').appendTo('#ulObj');
        //var knop = data.Knop;
        // For each item of variable person append to ul list
               //$.each(buttons, function(key, val)
                        //$("<li><input type='button' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' style='"+ val.Style +"' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#bbb');
                        //style="height: 25px; width: 100px"
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
       </script>
    </head>
    <body>
    <br>
    <br>
    <div>
    <ul id='ulObj'>
    <li>1</li>
    </ul>
    </div>
    <br>
    <div>
    <ul id='aaa'>
    <!--<li>1</li>-->
    </ul>
    </div>
    <!--<button type="submit" style="height: 95px; width: 550px"> </button>-->
    <!--background: url('img/submit_button.jpg'); background-position: center; background-repeat: no-repeat;  background-color:Transparent;-->
    <div>
    <ul id='bbb'>
    <!--<li><img src="img/submit_button.jpg"/></li>-->
    <!--<li>Button caption</li>-->
    </ul>
    </div>
    </body>
    </html>

    What you are saying makes great sense. It's just the mechanics behind what you've said that I'm unclear about.
    <p>
    Are you saying to create another button within the same region with the same attributes/position, so they overlay each other? Then set the conditions on both buttons?
    <p>
    If I understand the above correctly, then how do I set the conditions? I guess I'm asking where do I place the SQL statement and how does the results relate to the button conditions?
    <p>
    Thanks for the help,
    David

  • How to email generated HTML report

    Can I create a link on my generated report that will issue the mailto command and email the results of this report run?

    You will have to include some Javascript in your report, I guess. A simple solution is provided by Internet Explorer itself:
    File -> Send -> Page by Email
    Or you can run your report with destype=mail, but you don't have a preview that way.

  • How to Generate HTML Report Output in Excel

    Dear Experts,
    How to convert HTML report output in Excel.
    I have reports which output is coming in HTML format & the same I want to use in Excel.
    So tell me how I can covert the same in Excel.
    Thanks
    Sudhir

    hello,
    in your case, you might want to make the following :
    a) use DESFORMAT=HTML
    b) use MIMETYPE=application/vnd.msexcell (or whatever mimetype your excel application is bound to)
    i am nor sure if excel will understeand our HTMLCSS (which is actually HTML4.0 using layers for best possible rendering of the paper page in the browser).
    regards,
    the oracle reports team

  • Generate html report

    I need to add text to my html report as my VI is running (or after all VI's are finished running). I have different sub-VI, and my html report has to include the result for all of the test. How do I code LabView to append text as each test is finished? Thanks

    Just a quick example.
    Also, try looking at Example HTML Report from:
    Help Menu> Examples...> Advanced > Report Generation
    Cheers!
    ian
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    example_2003_01.vi ‏51 KB

Maybe you are looking for