Word to RH Responsive HTML: Table border missing

Hi
I am importing a Word 2007 doc into RH11 and publishing the responsive output.
The Word doc is imported correctly as per the Settings file. However, when I publish the output, the table borders are missing completely.
In RH editor:
In Responsive output:
What could be wrong?
Sreekanth

Bingo! You are right. I changed the CSS file name on master page from default.css to RHStyleMapping.css and it worked fine.
However, the font has changed to Time New Roman.
Sreekanth

Similar Messages

  • HTML table border

    is there a way to change the border color of a table to match the background color of the table? something besides white. thanks.

    I still can't get the inside border to match. here is my code:
    <html>
    <body>
         <table width="760px" border="1" bordercolor="#99CCFF" bordercolorlight="#99CCFF" bordercolordark="#99CCFF" cellpadding="0" cellspacing="0">
              <tr bgcolor="#6699FF">
                   <td width="40px"></td>
                   <td colspan="3"><font size="+2">Optics</td>
                   <td></td>
              </tr>
              <tr bgcolor="#99CCFF">
                   <td width="40px"></td>
                   <td width="600px"> </td>
                   <td width="150px"valign="top">
                        no inputs for Optics at this time.
                   </td>
                   <td width="40" bgcolor="#99CCFF"> </td>
              </tr>
         </table>
    </body>
    </html>
    there is a small, white, outline on the left of my table. i tried setting the border to "0" but the line is still there. Maybe there is a way to increase the cellpadding on only the far left and right so i wouldn't need the extra columns?

  • Table border colors & Firefox/Safari

    I've noticed that when I set a table border color (using the
    Property Inspector), the color displays only in IE. Firefox and
    Safari do not display the border color like IE does. Why is this?
    How do I work around this--CSS?

    "csbridges" <[email protected]> wrote in
    message
    news:eushlq$5q7$[email protected]..
    > Yeah, that's what I thought. Thanks.
    >
    > Any idea, though, why FF doesn't recognize the HTML
    table border-color?
    > Seems odd that it wouldn't recognize this.
    Firefox recognises:
    .table {border: 1px solid #black}
    black being the border color.... so not sure why you say that
    it doesn't
    recognise it :)
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    ~ Forum Posting Guidelines ~
    http://www.adobe.com/support/forums/guidelines.html
    CSS Tutorials for Dreamweaver:
    http://www.adobe.com/devnet/dreamweaver/css.html

  • Search option slider buttons missing (RH11, IE10, responsive HTML)

    I am using RoboHelp 11, Internet Explorer 10. I generated a responsive HTML output using the default layout.
    Problem: the slider buttons for the search options: "Highlight Search Results" and "Show results that include all search words" are missing. (see screenshot below)
    However, the slider buttons seem to show up when I use the "Government" layout.
    (There doesn't seem to be responsive html forum, so I posted here.)
    Thank you.

    Thanks for the reply.
    The only thing I changed was the @media statements in the layout css to reduce the minimum size for the desktop layout. (Is there an easier way to do that than directly editing the css?)
    I didn't have time to fully try your suggestions. On quickly looking at the developer tools console, it only mentioned two unmatched bracket (>) errors, but I'm not sure that had anything to do with it. I also tried copying the image file into the output directory, but that didn't do anything.
    I will take a closer look later next week and try your tips with the baggage file. I haven't been able to recreate the error anywhere else except on my work computer, so I may also just try to start over a project from scratch.

  • HTML Editor Table border colors, JavaScript Integration

    Hi,
    i have two questions regarding the HTML Editor in KM:
    1) How can I change the border color from tables?
    I have tried to change it with the adjustment from Tables
    in Theme Editor, but nothing happens.
    2) Can I add JavaScript Coding in HTML-Editor?
    For example to create icons with navigation (back, home)
    or print function.
    Thanks in advance
    Sascha

    Hi Sascha,
    You might be using the HTML Editor in KM for a particular KM Document right?
    Anyways, regarding question 1 you can change the border color of a html table using the bordercolor attribute e.g. bordercolor = "red"
    Regarding question 2, Yes you can add javascript code to your html; but please use the Text editor; its reliable in these matters.
    Regards,
    Prem.
    SAP GDC.

  • Drow dot-style table border in JEditorPane (editing HTML)

    Hi,
    I want to extend JEditorPane to display table border in dot style when
    displaying tables with border="0". (like most HTML editors)
    I extended HTMLEditor and it's ViewFactory and now maybe I have to write extended TableView class for rendering my tables.
    I tried to do that, but without any success.
    Can any one advice my how can I rewrite the paint method or some kind of example how to make it.
    Thanks in advance.

    Hi, i had advantage but i did it in a very stupid way. I copy/pased the
    original source and modified some inner classes.I do not remember exactlly what i did (right now i do not have the source).
    I modified BoxView and BoxPainter inner classes to achieve this effect.
    When i have the source I will paste it here.
    Have fun.

  • Html document ... button in am html table

    Hi,
    I have been exploring the dd classes for some days now. I have a persistent problem which I can not find a way of resolving. I create an html table into which I want to put text and buttons. If for every column I only put in text, then the alignement is quite acceptable. That is the height of the cells are commensurate with the height of the text, or there does not appear to be any padding in the cells above or elow the texts.
    Now to add a button I first add a form area in the column which will contain the button. This works fine but then the height of the cell is no longer just the height of the button. I have tried the methods NO_LINEBREAK( start = 'X' ) and NO_LINEBREAK( end = 'X' ) at the begining and end of the column, that is before going to the next column.
    This has the effect of removing the first break only, so the top of the button is just below the cell top but the bottom of the button is one line break away from the bottom of the cell. So it would appear that a for area always ends with a line break.
    The only way I found to almost do this is to assign 'X' to the attribute line_with_layout. Which should not be done and adds a column to the table anyway.
    So how do I make a cell with the same height as the button taht is inside it.
    Many thanks,
    PD
    Surely there is some simple method.

    Hi,
    Let me send the code snippets. I have tried all that is available. Either there is something missing or I am doing this wrong :
    This first snippets works the best but adds two extra columns after each button. with lv_button = 2 this produces four columns even though I only created for 2.
    create the table
      CALL METHOD gobj_html_doc->add_table
        EXPORTING
          no_of_columns               = lv_columns
          width                       = '100%'
          cell_background_transparent = 'X'
          border                      = '0'
        IMPORTING
          table                       = lv_table_element
          tablearea                   = lv_table_area.
    add columns
      DO lv_columns TIMES.
        lv_width = lv_i MOD 2.
        IF lv_mod EQ 0.
          lv_str = '30%'.
        ELSE.
          lv_str = '70%'.
        ENDIF.
        ADD 1 TO lv_i.
        CALL METHOD lv_table_element->add_column
          EXPORTING
            width  = lv_width
          IMPORTING
            column = lv_column.
        APPEND lv_column TO lt_column.
      ENDDO.
    add buttons
      LOOP AT lt_column INTO lv_column.
        CALL METHOD lv_column->add_form
          IMPORTING
            formarea = lv_form_area.
        lv_form_area->is_line_with_layout = 'X'.
        CALL METHOD lv_form_area->add_button
          EXPORTING
            sap_icon = 'ICON_CHANGE'
          IMPORTING
            button   = lobj_button.
         CALL METHOD lv_table_element->new_row.
      ENDLOOP.
    the following does not work either but no extrra columns are added.
    add buttons
      LOOP AT lt_column INTO lv_column.
        CALL METHOD lv_column->add_form
          IMPORTING
            formarea = lv_form_area.
        lv_form_area->line_with_layout( start = 'X' ).
        CALL METHOD lv_form_area->add_button
          EXPORTING
            sap_icon = 'ICON_CHANGE'
          IMPORTING
            button   = lobj_button.
         CALL METHOD lv_table_element->new_row.
         lv_form_area->line_with_layout( end = 'X' ).
      ENDLOOP.
    and the folling does not help much either.
    add buttons
      LOOP AT lt_column INTO lv_column.
        CALL METHOD lv_column->add_form
          IMPORTING
            formarea = lv_form_area.
        lv_form_area->no_line_break( start = 'X' ).
        CALL METHOD lv_form_area->add_button
          EXPORTING
            sap_icon = 'ICON_CHANGE'
          IMPORTING
            button   = lobj_button.
         CALL METHOD lv_table_element->new_row.
         lv_form_area->no_line_with_layout( end = 'X' ).
      ENDLOOP.
    all I can tell is that there is always a <br> token at the end of the form area. Perhaps the answer is to redefine the method in a derived class?
    If you have more ideas I am certainly opened to them ...
    thanks,
    PD.

  • XSLT - html table problem

    Hi,
    I'm having a real problem with trying to get my xslt stylesheet to produce a html table.
    I want the table to look something like the following:
    |radio-button description | radio-button description |
    |radio-button description | radio-button description |
    |_________________________________________|
    So that each table row has the following:
    <tr><td>radio-button</td><td>decsription</td>
    <td>radio-button></td><td>description</td></tr>
    The code in the stylesheet is as follows:
    <CODE>
    <xsl:template match="table-RdbDataOptions2" >
    <!-- Add the data options and user info -->
    <table width="100%" border="0" align="left">
              <xsl:for-each select="td">
    <tr>
                   <td colspan="2">
                             <xsl:choose>
                                  <xsl:when test="position()=1">
                                       <div align="left" class="subheading"><xsl:value-of select="." /></div>
                                  </xsl:when>
                                  <xsl:when test="position()=2">
                                       <div align="left"><xsl:value-of select="." /></div>
                                  </xsl:when>
                             </xsl:choose>
                        </td>
                   </tr>
              </xsl:for-each>
    <!-- now build a 2x row/2x cell table-->
    <xsl:for-each select="rdb-DataOption">
    <xsl:choose>
    <xsl:when test="not(@recfav='')">
    <xsl:choose>
    <!-- when an uneven number, start a new table row. Add unevens to this row -->
    <xsl:when test="position() mod 2=1">
    <tr>
    <xsl:choose>
    <xsl:when test="@dataseriescheck=''">
    <td> <input type="radio" name="rdbDataOptions" value="series" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td> <input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@aggregatecheck=''">
    <td> <input type="radio" name="rdbDataOptions" value="aggregate" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:when><!-- end of test position() mod 2 = 1 -->
    <xsl:otherwise><!-- Add new row for even numbers -->
    <tr>
    <xsl:choose>
    <xsl:when test="@cummulativecheck=''">
    <td> <input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@averagecheck=''">
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:otherwise><!-- end of adding new row for even numbers -->
    </xsl:choose>
    </xsl:when>
    </xsl:choose><!-- end of check for not recents -->
    <xsl:otherwise><!-- Recent -->
    <xsl:choose>
    <!-- when an uneven number, start a new table row. Add unevens to this row -->
    <xsl:when test="position() mod 2=1">
    <tr>
    <xsl:choose>
    <xsl:when test="@dataseriescheck=''">
    <td><input type="radio" name="rdbDataOptions" value="series" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td> <input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@aggregatecheck=''">
    <td><input type="radio" name="rdbDataOptions" value="aggregate" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:when><!-- end of test position() mod 2 = 1 -->
    <xsl:otherwise><!-- Add new row for even numbers -->
    <tr>
    <xsl:choose>
    <xsl:when test="@cummulativecheck=''">
    <td><input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td> <input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@averagecheck=''">
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:otherwise><!-- end of adding new row for even numbers -->
    </xsl:choose>
    </xsl:otherwise>
    </xsl:for-each>
    </table>
    </xsl:template>
    </CODE>
    The jsp creates the table in the following way:
    <CODE>
    <table-RdbDataOptions2>
    <td><%=Lang.get("DataOptions", User.getPrimary(), User.getFallback())%></td>
    <td><%=Lang.get("SelectDataOption", User.getPrimary(), User.getFallback())%></td>
    <rdb-DataOption recfav="<%=strDisabled %>" dataseriescheck="<%=strDataOption[0] %>" ><%=Lang.get("ShowDataSeries", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    <rdb-DataOption recfav="<%=strDisabled %>" cumulativecheck="<%=strDataOption[1] %>" ><%=Lang.get("ShowCumulative", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    <rdb-DataOption recfav="<%=strDisabled %>" aggregatecheck="<%=strDataOption[2] %>" ><%=Lang.get("ShowAggregate", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    <rdb-DataOption recfav="<%=strDisabled %>" averagecheck="<%=strDataOption[3] %>" ><%=Lang.get("ShowDataSeriesAverage", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    </table-RdbDataOptions>
    </CODE>
    The following is the error I'm receiving:
    javax.servlet.jsp.JspException: Error applying stylesheet..........
    I can easily produce a table with like this:
    |radio button description |
    |radio button description |
    |radio button description |
    |radio button description |
    |____________________|
    but unfortunately that's not what's req'd!
    Any help is disciplining the above stylesheet so that it does what its told would be greatly appreciated.
    Yours, with respect!
    Eddie.

    Well,
    Funny how just looking at your own posting can highlight pretty obvious errors.
    The reason for the stylesheet error msg was that the opening & closing table tags in the jsp didn't match!
    However, I now get an almost empty table. I get the table headers - in other words, this part of the stylesheet is working properly:
    <CODE>
    <xsl:for-each select="td">
    <tr>
                   <td colspan="2">
                             <xsl:choose>
                                  <xsl:when test="position()=1">
                                       <div align="left" class="subheading"><xsl:value-of select="." /></div>
                                  </xsl:when>
                                  <xsl:when test="position()=2">
                                       <div align="left"><xsl:value-of select="." /></div>
                                  </xsl:when>
                             </xsl:choose>
                        </td>
                   </tr>
              </xsl:for-each>
    </CODE>
    But the rest is returning 'empty'. So, it nows seems that one or more of my tests is not working properly.
    Onwards & upwards,
    Eddie

  • Table Height Missing in DW CS3?

    I just upgraded from DW8 to CS3. The Properties panel is
    missing the table height fields. I see width, but where height is
    supposed to be is blank...
    I tried searching for "table" in help and couldn't find an
    answer. Any help would be greatly appreciated!
    Thanks
    Jose

    In response to the web community at large, each new version
    of DW is moving
    more and more in the direction of producing so-called valid
    code and
    formatting pages exclusively via CSS.
    "height" has never been a valid attribute of the HTML
    <table> tag, even
    though some browsers have honoured it, so it has finally been
    removed from
    the DW interface.
    http://www.w3.org/TR/html401/struct/tables.html#h-11.2.1
    See
    http://www.apptools.com/examples/tableheight.php
    Also, FYI, here's an example of formatting a table-based
    layout with CSS:
    http://www.projectseven.com/tutorials/css/css_td/index.htm
    In any case, it's good practice on the web to allow your
    tables to collapse
    to suit their content.
    Regards
    John Waller

  • Outputting SQL statement into HTML table

    ok, my problem is that i can only output the first row from my table in my DB and i want to be able to display all the rows from that table which are of a particular type..maybe someone here can help..
    and if anyone thinks the code is a bit pants please say why..cheers
    import java.lang.*;
    import java.util.*;
    import java.io.*;
    import java.util.Vector;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class StockStats3 extends HttpServlet
         String totalStock = "";
         String itemName = "";
         int type = 0;
         int itemId = 0;
         Statement stmt = null;
         ResultSet rs = null;
         Connection con = null;
         String query;
         PrintWriter out;     
         String url = "jdbc:mysql://macneill.cs.tcd.ie/odriscoi_db";
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
                   out= response.getWriter();
                   response.setContentType("text/html");
                   out.println("<HTML>");
                   out.println("<HEAD>");
                   out.println("<TITLE> Check Current Stock </TITLE>");
                   out.println("</HEAD>");
                   out.println("<body bgcolor=#FFFFFF background=\"U:/back.jpg\" link = white vlink = white>");
                   out.println("<font color=#FFFFFF face=COMIC SANS MS size=3>");
                   out.print("<form action=\"");
                   out.print("StockStats3\" ");
                   out.println("method=POST>");
                   out.println("<TD><h3><LEFT><font color=#FFFFFF face=COMIC SANS MS size=5>Click on Relevant Button to view Current Stock: </h3></TD>");
                   out.println("<TD><h3><LEFT><font color=#FFFFFF face=COMIC SANS MS size=3>KITCHEN FOODS: </h3></TD>");
                   out.println("<input type=submit name=action value=\"Meat \">");
                   out.println("<input type=submit name=action value=\"Fish\">");
                   out.println("<input type=submit name=action value=\"Fruit\">");
                   out.println("<input type=submit name=action value=\"Veg\">");
                   out.println("<input type=submit name=action value=\"Dairy\">");
                   out.println("<input type=submit name=action value=\"Herbs\">");
                   out.println("<input type=submit name=action value=\"Pasta\">");
                   out.println("<input type=submit name=action value=\"Sauces\">");
                   out.println("<input type=submit name=action value=\"Condiments\">");
                   out.println("<input type=submit name=action value=\"Total Food\">");
                   out.println("<TD><h3><LEFT><font color=#FFFFFF face=COMIC SANS MS size=3>BAR DRINKS: </h3></TD>");
                   out.println("<input type=submit name=action value=\"Soda\">");
                   out.println("<input type=submit name=action value=\"Water\">");
                   out.println("<input type=submit name=action value=\"Beer\">");
                   out.println("<input type=submit name=action value=\"Wine\">");
                   out.println("<input type=submit name=action value=\"Total Drink\">");
                   out.println("<PRE>");
                   out.println("<CENTER><TH><h3><A HREF= \"ManageOption \"><FONT face=arial>Back to Options</FONT></A></h3></TH><BR>");
                   out.println("</PRE>");
                   out.println("<PRE>");
                   out.println("<CENTER><TH><h3><A HREF= \"log \"><FONT face=arial>logout</FONT></A></h3></TH><BR>");
                   out.println("</PRE>");
                   out.println("<BR>");
                   out.println("</TR>");
                   out.println("</BODY>");
              out.println("</HTML>");
              out.close();
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
                   String msg11 = "";
                   String msg12 = "";
                   String msg13 = "";
                   String msg14 = "";
                   String msg15 = "";
                   String msg16 = "";
              String msg17 = "";
              String msg18 = "";
              String msg19 = "";
              String msg20 = "";
                   String msg2 = "";
              String msg3 = "";
              String msg4 = "";
              String msg5 = "";
                   String msg6 = "";
                   String msg7 = "";
                   String msg8 = "";
                   String msg9 = "";
         if (request.getParameter("action").equals("Meat"))
                   msg11 = getItemName(1);
                   msg12 = getStock(1);               
                   msg13 = getItemName(1);
                   msg14 = getStock(1);
                   msg15 = getItemName(2);
                   msg16 = getStock(2);
                   msg17 = getItemName(3);
                   msg18 = getStock(3);
                   msg19 = getItemName(4);
                   msg20 = getStock(4);
              //im only trying to work on one table at the moment
         if (request.getParameter("action").equals("Fish"))
              msg2 = getStock(5);
         if (request.getParameter("action").equals("Fruit"))
              msg3 = getStock(6);
         if (request.getParameter("action").equals("Veg"))
              msg4 = getStock(7);
         if (request.getParameter("action").equals("Dairy"))
              msg5 = getStock(8);
         if (request.getParameter("action").equals("Herbs"))
              msg6 = getStock(9);
         if (request.getParameter("action").equals("Pasta"))
              msg7 = getStock(10);
         if (request.getParameter("action").equals("Sauces"))
              msg8 = getStock(11);
         if (request.getParameter("action").equals("Condiments"))
              msg9 = getStock(12);
                   response.setContentType("text/html");
                        PrintWriter out = response.getWriter();
                        out.println("<HTML>");
                        out.println("<HEAD>");
                        out.println("<TITLE>Stock Results </TITLE>");
                        out.println("</HEAD>");
                        out.println("<body bgcolor=#FFFFFF background=\"U:/back.jpg\" link = white vlink = white>");
                        out.println("<font color=#FFFFFF face=COMIC SANS MS size=3>");
                        out.print("<form action=\"");
                        out.print("StockStats3\" ");
                        out.println("method=POST>");
                        out.println("<BR>");
                        out.println("</H2><TABLE BORDER='1' CELLSPACING='2' CELLPADDING='2'>");
                        out.println("<font color=#FFFFFF face=COMIC SANS MS size=3>");
                        out.println("<TR><TH><B>Item Name</B></TH><TH><B>Portions</B></TH></TR>");
                        out.println("<TR><TD>"+getItemName(itemId)+"</TD><TD>"+getStock(itemId)+"</TD></TR>");
                        out.println("</TABLE>");
                        out.println("<BR>");
                        out.println("<CENTER><TH><h3><A HREF= \"StockStats3 \"><FONT face=arial>Back</FONT></A></h3></TH><BR>");
                        out.println("</PRE>");
                        out.println("<PRE>");
                        out.println("<CENTER><TH><h3><A HREF= \"ManageOption \"><FONT face=arial>Back to Options</FONT></A></h3></TH><BR>");
                        out.println("</PRE>");
                        out.println("<PRE>");
                        out.println("<CENTER><TH><h3><A HREF= \"log \"><FONT face=arial>logout</FONT></A></h3></TH><BR>");
                        out.println("</PRE>");
                        out.println("<BR>");
                        out.println("</FORM>");
                        out.println("");
                        out.println("</BODY>");
                        out.println("</HTML>");
    //This method is used to retrieve the total stock of each item
         private String getStock(int itemId) throws ServletException, IOException
              String result = "";     
              try
                   String driver = "org.git.mm.mysql.Driver";
                   try
                        Class.forName(driver).newInstance();
                        //out.println("Driver Called!");
                   catch(java.lang.ClassNotFoundException e)
              System.err.print("Couldn't find ClassNotFoundException: ");
              System.err.println(e.getMessage());
              out.println(e.getMessage());
                   catch(Exception ex)
                        ex.printStackTrace();
                   Connection con = DriverManager.getConnection(url, "odriscoi", "3vk7WgdO");
                   //out.println("Connection made!");
                   Statement stmt = con.createStatement();
                   //get stock of items
                   String query = "SELECT Portions FROM Kitchen WHERE Item_ID = '"+itemId+"';";
                   result = query;
                   ResultSet rs = stmt.executeQuery(query);
                   while(rs.next())
                        totalStock = rs.getString("Portions");
                   rs.close();
                   stmt.close();
         con.close();
         catch(SQLException ex)
         out.println("SQLException: " + ex.getMessage());
         return totalStock;
    //Ths method is used to retrieve the name of each item
         private String getItemName(int itemId) throws ServletException, IOException
              String result = "";     
              try
                   String driver = "org.git.mm.mysql.Driver";
                   try
                        Class.forName(driver).newInstance();
                        //out.println("Driver Called!");
                   catch(java.lang.ClassNotFoundException e)
              System.err.print("Couldn't find ClassNotFoundException: ");
              System.err.println(e.getMessage());
              out.println(e.getMessage());
                   catch(Exception ex)
                        ex.printStackTrace();
                   Connection con = DriverManager.getConnection(url, "odriscoi", "3vk7WgdO");
                   //out.println("Connection made!");
                   Statement stmt = con.createStatement();
                   //get name of item
                   String query = "SELECT item FROM Kitchen WHERE item_ID = '"+itemId+"';";
                   result = query;
                   ResultSet rs = stmt.executeQuery(query);
                   while(rs.next())
                        itemName = rs.getString("item");
                   rs.close();
                   stmt.close();
         con.close();
         catch(SQLException ex)
         out.println("SQLException: " + ex.getMessage());
         return itemName;

    the following is my code to retrieve a table, maybe it gives u some ideas.
    Wolf
    ==========================================================================
    import java.io.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Test extends HttpServlet {
         public void service(ServletRequest request, ServletResponse response)
              throws ServletException, IOException {
              Context initCtx=null;
              Context envCtx=null;
              DataSource ds=null;
              Connection conn=null;
              Statement stmt=null;
              ResultSet rs=null;
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              try {
                   initCtx = new InitialContext();
                   envCtx = (Context)initCtx.lookup("java:comp/env");
                   ds = (DataSource)envCtx.lookup("jdbc/Bookingcomputer");
                   conn = ds.getConnection();
                   stmt=conn.createStatement();
    //               rs=stmt.executeQuery("SELECT s_code, description FROM computer");
                   rs=stmt.executeQuery("SELECT * FROM computer");
                   out.println("<HTML><HEAD><TITLE>Computer List</TITLE></HEAD>");
                   out.println("<BODY>");
                   out.println("<UL>");
                   out.println("<CENTER><FONT SIZE=\"4\"><B>ERC Computer List</B></FONT></CENTER>");
                   out.println("<center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"80%\" id=\"AutoNumber1\">");
                   while(rs.next()) {
                        out.println("<tr>");
                        out.print("<td width=\"10\">");
                        out.print("<LI>");
                        out.print("</td>");
                        out.print("<td width=\"25%\"><B>");
                        out.print(rs.getString("s_code"));
                        out.print("</B></td>");
                        out.print("<td width=\"50%\">");
                        out.print(rs.getString("description"));
                        out.print("</td>");
                        out.print("<td width=\"25%\">");
                        out.print(rs.getString("capacity"));
                        out.print("</td>");
    //                    out.println("<LI>"+rs.getString("s_code")+" "+rs.getString("description") );
                        out.println("</tr>");
                   out.println("</table></center>");
                   out.println("</UL>");
    //               out.println("Hi Arthur, How are you doing?");
                   out.println("</BODY></HTML>");
              catch(SQLException ex) {
                   System.err.println("SQLException:"+ex.getMessage());
              } catch (NamingException e) {
                   e.printStackTrace();
              finally {
                   try {
                        if (conn!=null)
                             conn.close();
                   }catch(SQLException e){
                        e.printStackTrace();

  • Show results from the database to html tables?

    Hi,
    I am a PHP programmer and did a successful CMS program for a company. Now I have another project which is a web based system.
    I basically know how to do it and finish it in PHP.. but I am trying to do it using J2EE.. I am trying to learn J2EE now since I have been programming
    on J2SE for quite sometime..
    I am trying to show the results from a MySQL database on a table on J2EE but I am having hard time doing that. I am trying to research online and reading books but with no luck I can't find any resources on how to do that..If you guys can lead me into a resource where I can read how to do it? or just give any ideas on how to do it correctly I'll try to read and learn I will very much appreciate it.. here's my coding please look at it. Thank you very much
    I want to make it like this in a html table:
    userid username activated task
    1 alvin y delete(this will be a link to delete the user)
    Right now this is what I was able to do so far:
    Userid username activated task
    1
    alvin
    y
    Here are my codes... I am not even sure if I am doing it in the correct way...
    User.java
    mport java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    public class Users {
    public List getUsers(){
    List names = new ArrayList();
    try{
    Connection con = DBConnect.getConnection();
    Statement stmt = con.createStatement();
    String sql = "select * from users";
    ResultSet rs = stmt.executeQuery(sql);
    while(rs.next())
    String userid = rs.getString("user_id");
    String usernames = rs.getString("user_name");
    String password= rs.getString("password");
    String activated= rs.getString("activated");
    names.add(userid);
    names.add(usernames);
    names.add(password);
    names.add(activated);
    catch(SQLException e)
    System.out.print(e);
    catch(Exception e)
    System.out.print(e);
    return names;
    UserServlet.java
    import java.io.IOException;
    import java.util.List;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class UsersServ extends HttpServlet {
    private static final long serialVersionUID = 1L;
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    Users be =new Users();
    List result = be.getUsers();
    request.setAttribute("user_results", result);
    RequestDispatcher view = request.getRequestDispatcher("manage_users1.jsp");
    view.forward(request, response);
    manage_users1.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import = "java.util.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%
    List results = (List)request.getAttribute("user_results");
    Iterator it = results.iterator();
    out.print("<table border = 1>");
    out.print("<th>");
    out.print("userid");
    out.print("</th>");
    out.print("<th>");
    out.print("username");;
    out.print("</th>");
    while(it.hasNext()){
    out.print("<tr><td> " + it.next()+"</td></tr>");
    out.print("</table>");
    %>
    </body>
    </html>

    I suggest:
    1: you use this:
    e.printStackTrace()
    instead of this:
    System.out.print(e);
    so it will tell you what line it crashed on.
    2: In the code below,here is how you mix coding html tags and java scriptlets
    (you should never have to use out.print()):. In a later project, you can learn how to use JSTL
    instead of java scriplets (I suggest using java scriptlets for now until you have more JSP experience).
    FROM:
    <html>
    <%
    //some java code goes here
    out.print("<th>");
    //some more java code goes here
    out.print("<tr>");
    %>
    TO:
    <html>
    <% //some java code goes here%>
    <th>
    <%//some more java code goes here%>
    <tr>
    3: Put a lot of System.println() statements in your *.java classes to verify what its doing (you can learn how to use a debugger later).
    4: I highly recommend reading a book on JSP/servlets cover to cover.
    Here's a simple MVC design approach I previously posted:
    http://forums.sun.com/thread.jspa?messageID=10786901

  • Problem in generating HTML tables in apex

    Hi friends,
    I coulnt able to generate an email in the HTML table format with a background color since im receiving only in a plain text manner.
    The below is the coding only based on HTML in which i can able to view it in the HTML tables and this is it
    <html>
    <head><title>Report 1</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <base href="http://erpdev01.ti.com:7777/pls/apex/" />
    <style type="text/css">
    table.apex_ir_html_export {
    background-color:#F2F2F5;
    border-width:1px 1px 0px 1px;
    border-color:#C9CBD3;
    border-style:solid;
    table.apex_ir_html_export td {
    color:#000000;
    font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;
    font-size:9pt;
    background-color:#EAEFF5;
    padding:8px;
    background-color:#F2F2F5;
    border-color:#ffffff #ffffff #cccccc #ffffff;
    border-style:solid solid solid solid;
    border-width:1px 0px 1px 0px;
    table.apex_ir_html_export th {
    font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;
    font-size:9pt;
    padding:8px;
    background-color:#CFE0F1;
    border-color:#ffffff #ffffff #cccccc #ffffff;
    border-style:solid solid solid none;
    border-width:1px 0px 1px 0px;
    white-space:nowrap;
    </style>
    </head>
    <style type="text/css">
    body{font-family: Arial, Helvetica, sans-serif;
                        font-size:10pt;
                        margin:30px;
                        background-color:#ffffff;}
    span.sig{font-style:italic;
    font-weight:bold;
    color:#811919;}
    </style>
    </head>
    <body>
    <table border="0" cellpadding="0" cellspacing="0" class="apex_ir_html_export">
    <thead><tr><th id=></th><th id=></th></tr></thead>
    <tr>
    <td>Employee Number</td>
    <td>:P36_EMPLOYEE_NUMBER</td>
    </tr>
    <td>Reason</td>
    <td>:P36_REASON</td>
    </tr>
    <td>Position Title</td>
    <td>:P36_POSITION_TITLE</td>
    </tr>
    <td>Qualification Displayed</td>
    <td>:P36_QUALIFICATION_DISPLAYED</td>
    </tr>
    <td>Qualification Title</td>
    <td>:P36_QUALIFICATION_TITLE</td>
    </tr>
    <td>Mobile Number</td>
    <td>:P36_MOBILE_NUMBER</td>
    </tr>
    <td>Desk Number</td>
    <td>:P36_DESK_NUMBER</td>
    </tr>
    <td>Fax Number</td>
    <td>:P36_FAX_NUMBER</td>
    </tr>
    <td>Email Address</td>
    <td>:P36_EMAIL</td>
    </tr>
    <td>Effective Date</td>
    <td>:P36_EFFECTIVE_DATE</td>
    </tr>
    <td>Location</td>
    <td>:P36_LOCATION</td>
    </tr>
    <td>Type-I</td>
    <td>:P36_TYPE1</td>
    </tr>
    <td>Type-II</td>
    <td>:P36_TYPE2</td>
    </tr>
    <td>Status</td>
    <td>:P36_STATUS</td>
    </tr>
    </table>
    </body>
    </html>
    kindly ignore div class="jive-quote" and div
    as it is generated by the forum software in the above coding. The above is working perfectly as i can able to see it in the table manner with a background color.
    The same thing it needs to work on in apex while clicking the button, the html table with contents has to be send as an email when an button is pressed, i tried with the below coding, but i couldnt able to see the HTML table with a background color, it is showing in the plain text only. it is not showng html table with a background color in it. This is the coding.
    DECLARE
    l_mail_id NUMBER;
    l_body VARCHAR2(4000);
    l_body_html VARCHAR2(4000);
    BEGIN
    l_body_html := '<html>'||
    ' <head><title>Report 1</title>'||
    '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'||
    '<base href="http://erpdev01.ti.com:7777/pls/apex/" />'||
    '<style type="text/css">'||
    'table.apex_ir_html_export {'||
    'background-color:#F2F2F5;'||
    'border-width:1px 1px 0px 1px;'||
    'border-color:#C9CBD3;border-style:solid;}'||
    'table.apex_ir_html_export td {'||
    'color:#000000;'||
    'font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;'||
    'font-size:9pt;'||
    'background-color:#EAEFF5;'||
    'padding:8px;'||
    'background-color:#F2F2F5;'||
    'border-color:#ffffff #ffffff #cccccc #ffffff;'||
    'border-style:solid solid solid solid;'||
    'border-width:1px 0px 1px 0px;'||
    '}'||
    'table.apex_ir_html_export th {'||
    'font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;'||
    'font-size:9pt;'||
    'padding:8px;'||
    'background-color:#CFE0F1;'||
    'border-color:#ffffff #ffffff #cccccc #ffffff;'||
    'border-style:solid solid solid none;'||
    'border-width:1px 0px 1px 0px;'||
    'white-space:nowrap;'||
    '}'||
    '</style>'||
    '</head>'||
    '<style type="text/css">'||
    'body{font-family: Arial, Helvetica, sans-serif;'||
                        'font-size:10pt;'||
                        'margin:30px;'||
                        'background-color:#ffffff;}'||
    'span.sig{font-style:italic;'||
    'font-weight:bold;'||
    'color:#811919;}'||
    '</style>'||
    '</head>'||
    '<body>'||utl_tcp.crlf;
    l_body_html :=
    '<table border="0" cellpadding="0" cellspacing="0" class="apex_ir_html_export">'||
    '<thead><tr><th id=></th><th id=></th></tr></thead>'||
    '<tr><td>Employee Number</td><td>'||:P36_EMPLOYEE_NUMBER||'</td></tr>'||
    '<tr><td>Reason</td><td>'||:P36_Reason||'</td></tr>'||
    '<td>Position Title</td><td>'||:P36_POSITION_TITLE||'</td></tr>'||
    '<td>Qualification Displayed</td><td>'||:P36_QUALIFICATION_DISPLAYED||'</td></tr>'||
    '<td>Qualification Title</td><td>'||:P36_QUALIFICATION_TITLE||'</td></tr>'||
    '<td>Mobile Number</td><td>'||:P36_MOBILE_NUMBER||'</td></tr>'||
    '<td>Desk Number</td><td>'||:P36_DESK_NUMBER||'</td></tr>'||
    '<td>Fax Number</td><td>'||:P36_FAX_NUMBER||'</td></tr>'||
    '<td>Email Address</td><td>'||:P36_EMAIL||'</td></tr>'||
    '<td>Effective Date</td><td>'||:P36_EFFECTIVE_DATE||'</td></tr>'||
    '<td>Location</td><td>'||:P36_LOCATION||'</td></tr>'||
    '<td>Type-I</td><td>'||:P36_TYPE1||'</td></tr>'||
    '<td>Type-II</td><td>'||:P36_TYPE2||'</td></tr>'||
    '<td>Status</td><td>'||:P36_STATUS||'</td></tr></table>'||utl_tcp.crlf;
    l_body_html := l_body_html ||'<p>Thank you for your interest in the <strong>APEX MAIL</strong></p>'||utl_tcp.crlf;
    l_body_html := l_body_html ||' Sincerely,
    '||utl_tcp.crlf;
    l_body_html := l_body_html ||' <span class="sig">The APEX Dev Team</span>
    '||utl_tcp.crlf;
    l_body := 'Request for an Salary Certificate Request'||utl_tcp.crlf;
    l_mail_id := apex_mail.send(
    p_to => '<[email protected]>',
    p_bcc => '<[email protected]>',
    p_from => :P36_EMAIL,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => 'Salary Certificate Request With Request No' ||:P36_DIS_REQ_ID
    apex_mail.push_queue();
    END;
    kindly ignore div class="jive-quote" and div in the above codings too.
    Why it is not generating in a table via email, what is the issue.
    Thanks
    Saro.
    Edited by: Saro on May 17, 2011 12:50 PM

    Hello Saro,
    first of all: the html code you are generating is not valid html. There is no closing body and html tag. Ther eis one closing head tag to much. In your table many opening row tags are missing.
    second: have a closer look at what you are doing with your variable l_body_html. At first, you add your styles to it and then you overwrite it with your table instead of adding it.
    Regards,
    Dirk

  • How do you write an output in columns to an html table?

    Ive written two programs. My first program compares the difference of two text files and prints the differences in an output. My second program creates a simple Html table. I would like to write my output to this table. How would I go about doing this in java?
    Thanks in advance for your help.

    Thanks guys for the insight. Im very new to java so I'm a complete novice when it comes to writing code. What I came to realize was I needed to do was build a dynamic table. My issue was that I was building a static table and I couldint populate the table with my results. Below is an example of the code I wrote for my table. My apologies if didnt format my code correctly.
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.util.Set;
    public class HtmlDataTable {
      public void writehtmltable(Set<String> filenameSet){
      //creates table in the following path
      File htmltable = new File("C:/Output.html");
      try {
      BufferedWriter bw = new BufferedWriter(new FileWriter(htmltable));
      //write html data table
      bw.write(htmltop);
      for (String jarfilename:filenameSet){
      String line="<tr>  <td> </td>      <td> </td> </td>      <td>"+jarfilename + " </tr>";
      bw.write(line);
      bw.write(htmlbottom);
      //close the resource
      bw.close();
      } catch (IOException e) {
      e.printStackTrace();
    private static String htmltop = "<!DOCTYPE html>\n"+
                                      "<html>\n"+
                                         "<head>"+
                                         "<title>Jar Filename Existance Check</title>"+
                                         "<style>"+
                                         "table, th, td {"+
                                         "    border: 2px solid black;"+
                                         "}"+
                                         "</style>"+
                                         "</head>"+
                                         "<body>"+
                                         "<table>\n"+
                                         "   <tr>     <th colspan='100'>" +
                                         "<h3><br>Jarfilename Existance Check</h3>      </th>   </tr>" +
                                         "<th>POM File Data</th> <th>Lib Directory Files</th> <th>Missing Jarfiles</th>";
      private static String htmlbottom = "</table></body></html>";
    public static void main(String[] args) {
      new HtmlDataTable().writehtmltable(null);

  • HTML Table with alternative row color, Using SQL XML

    Hi,
    I want to send out an email and the email body contains a table with data. I am using SQL to create the HTML table and to populate values inside the table. Below is the code I have so far
    DECLARE
    @HTML NVARCHAR(MAX)
    IF (SELECT
    COUNT(*)
    from Employee])
    != 0
    Begin
    SET
    @HTML =
    '<html><style>
          tr:nth-of-type(even) {
          background-color:#ccc;
    </style><body><h1 style="font-family:Tahoma; font-size:12px;">Hi,</h1>'
    +
    'Below is the report'+
    '<br></br>'+
    '<table border="1" width="100%" style="border:1px solid #77bfe4;font-family:Tahoma; font-weight:normal; font-size:12px;" cellpadding="4" cellspacing="0">'
    +
    '<tr bgcolor="yellow" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td colspan="2"><center>Report</center></td></tr>'+
    '<tr bgcolor="Blue" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td><center>Col1</center></td><td><center>col2</center></td></tr>'
    +
    CAST((
    Select
    td =
    col1, '',
    td
    = col2
    , '' from
    (Select ID as col1, Emp as Col2
    from
    Employee) E
    FOR XML
    PATH('tr'),
    TYPE
    AS NVARCHAR(MAX))
    + '</table><br>Thank you</br></body></html>'
    END
    select
    ISNULL(@HTML,'NoEmail')
    But I am having trouble generating alternative colors for each row (tr:nth-of-type(odd) is not working for me)
    Below is what the table should look like 
    Please help.
    Thank you for your help in advance. 

    Thank you for the response, I got the code to work.
    DECLARE @HTML NVARCHAR(MAX) ;
    IF (SELECT COUNT(*) from Employee]) != 0
    Begin
    SET @HTML = '<h1 style="font-family:Tahoma; font-size:12px;">Hi,</h1>' +
    'Below is the report'+
    '<br></br>'+
    '<table border="1" width="100%" style="border:1px solid #77bfe4;font-family:Tahoma; font-weight:normal; font-size:12px;" cellpadding="4" cellspacing="0">' +
    '<tr bgcolor="yellow" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td colspan="2"><center>Report</center></td></tr>'+
    '<tr bgcolor="Blue" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td><center>Col1</center></td><td><center>col2</center></td></tr>' +
    CAST(( SELECT CASE when (ROW_NUMBER() over (Order by Col1 DESC))%2 = 0 then '#E0E0E0' else 'white' END as "@bgcolor", '',
    td = col1, '',
    td = col2 , '' from
    (Select ID as col1, Emp as Col2
    from Employee) E
           FOR XML PATH('tr'), TYPE
    ) AS NVARCHAR(MAX)) + '</table><br>Thank you</br></body></html>'
    END
    select ISNULL(@HTML,'NoEmail')

  • Insert an HTML Table tag as a value in a Tree Table

    Hi helper,
    Can I insert an HTML Table tag inside a TreeTable (Hierarchical data) using AdvancedDataGrid as a value?
    I need to create a Tree table in flex and I have beside normal int values some cells that need to show a certain images in an HTML Table I will create.
    Is it possible?
    Please advice
    Thanks
    Jo

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>It depends on where you get the list of images<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Alex Harui<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Flex SDK Developer<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><a href="http://www.adobe.com/"><span style='color:blue'>Adobe<br />Systems Inc.</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Blog: <a href="http://blogs.adobe.com/aharui"><span<br />style='color:blue'>http://blogs.adobe.com/aharui</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Yossi Bar<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Monday, February 09, 2009 1:14 AM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> Re: Insert an HTML Table tag as a value in a Tree Table<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Yossi Bar in <br><br /><br><br /><b>Developers</b> --<br><br />  Insert an HTML Table tag as a value in a Tree Table<br><br /><br><br />Thanks Alex, <br><br />What is the way to implement HorizontalLIst of images for<br />AdvancedDataGridColumn? <br><br /><br><br />In the code here I create a tree table and in Actual column I show an image: <br><br /><br><br />&lt;mx:AdvancedDataGrid width=&quot;100%&quot; height=&quot;100%&quot;<br />folderClosedIcon=&quot;{null}&quot; folderOpenIcon=&quot;{null}&quot;<br />defaultLeafIcon=&quot;{null}&quot;&gt; <br><br /><br><br />&lt;mx:dataProvider&gt; <br><br />            &lt;mx:HierarchicalData<br />source=&quot;{dpHierarchy}&quot;/&gt; <br><br />        &lt;/mx:dataProvider&gt; <br><br />        &lt;mx:groupedColumns&gt; <br><br />         &lt;mx:AdvancedDataGridColumn<br />headerText=&quot;&quot; width=&quot;50&quot;/&gt; <br><br />            &lt;mx:AdvancedDataGridColumn<br />dataField=&quot;Region&quot; backgroundColor=&quot;haloSilver&quot;<br />headerText=&quot;Region title&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;/&gt; <br><br />            &lt;mx:AdvancedDataGridColumnGroup<br />headerText=&quot;Group Header&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;&gt; <br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Territory_Rep&quot;<br />headerText=&quot;Territory Rep&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;/&gt; <br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Actual&quot;<br />headerText=&quot;Actual title&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;&gt; <br><br />&lt;mx:itemRenderer&gt; <br><br />&lt;mx:Component&gt; <br><br />&lt;mx:VBox horizontalAlign=&quot;center&quot;&gt; <br><br />&lt;mx:Image width=&quot;50&quot; source=&quot;{data.Actual}&quot;/&gt; <br><br />&lt;/mx:VBox&gt; <br><br />&lt;/mx:Component&gt; <br><br />&lt;/mx:itemRenderer&gt; <br><br />&lt;/mx:AdvancedDataGridColumn&gt; <br><br /><br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Estimate&quot;<br />headerText=&quot;Estimate title&quot; headerRenderer=&quot;mx.controls.Label&quot;/&gt;<br /><br><br />            &lt;/mx:AdvancedDataGridColumnGroup&gt;<br /><br><br />        &lt;/mx:groupedColumns&gt; <br><br />    &lt;/mx:AdvancedDataGrid&gt; <br><br /><br><br />Please advise, <br><br /><br><br />Thanks <br><br /><br><br />Jo <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b7d1ae/2">Insert an HTML Table tag<br />as a value in a Tree Table</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b7d1ae!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

Maybe you are looking for