Problems trying to render radioButtons  & combine HTML table cells

Hello
Can anyone help please, I am trying to render radio buttons in one table column and text in other columns of the same row, and can't:
Here is some example html:
<tr bgcolor="#EDEDCC">
<td><input type="radio" name="downloadcode" value="223"></td>
<td>Ciara feat. Petey Pablo</td>
<td>Goodies</td>
</tr>
<tr bgcolor="#EDEDCC">
<td><input type="radio" name="downloadcode" value="445"></td>
<td>Blaa. Petey Pablo</td>
<td>Baddies</td>
</tr>
My efforts have resulted in bad HTML all over the place, e.g. I last tried:
<h:selectOneRadio layout="PAGE_DIRECTION" value="{order.downloadcode}">
                              <f:selectItem itemValue="SY77731"/><f:verbatim><br></f:verbatim>
                              <f:verbatim><td>Ciara feat. Petey Pablo</td></f:verbatim>
                              <f:verbatim><td>Goodies</td></f:verbatim>
                              <f:selectItem itemValue="SY77732"/><f:verbatim><br></f:verbatim>
                              <f:verbatim><td>Green Day</td></f:verbatim>
                              <f:verbatim><td>Boulevard of Broken Dreams</td></f:verbatim>
</h:selectOneRadio>
Many thanks...

Hello
Can anyone help please, I am trying to render radio buttons in one table column and text in other columns of the same row, and can't:
Here is some example html:
<tr bgcolor="#EDEDCC">
<td><input type="radio" name="downloadcode" value="223"></td>
<td>Ciara feat. Petey Pablo</td>
<td>Goodies</td>
</tr>
<tr bgcolor="#EDEDCC">
<td><input type="radio" name="downloadcode" value="445"></td>
<td>Blaa. Petey Pablo</td>
<td>Baddies</td>
</tr>
My efforts have resulted in bad HTML all over the place, e.g. I last tried:
<h:selectOneRadio layout="PAGE_DIRECTION" value="{order.downloadcode}">
                              <f:selectItem itemValue="SY77731"/><f:verbatim><br></f:verbatim>
                              <f:verbatim><td>Ciara feat. Petey Pablo</td></f:verbatim>
                              <f:verbatim><td>Goodies</td></f:verbatim>
                              <f:selectItem itemValue="SY77732"/><f:verbatim><br></f:verbatim>
                              <f:verbatim><td>Green Day</td></f:verbatim>
                              <f:verbatim><td>Boulevard of Broken Dreams</td></f:verbatim>
</h:selectOneRadio>
Many thanks...

Similar Messages

  • Read Only and HTML Table Cell Attributes

    Hi Guys,
    I believe i have come accross a bug - i'm been working on a form that can be filled out and printed - when going into print for sake of the output looking nice i set the form element to read-only.
    As soon as an element such as a drop down box, text feild, text area, etc which display as "[selected value]" in plain text in read only mode, are changed to the read only mode apex seem to ignore the html table cell attributes.
    For example i have a id number in the top left and then a version number in the top right. Both use a text feild; the top left uses 'width="100%"' for it's HTML Table Cell Attribute to push the right cell to the right. and the right cell has 'align="right"'. Now this works fine when read only is off... but as soon as read only is on, both the width and the alignment are totally ignored, and i can't find any sign of them in the code.
    Because this is for printing; using the "disable" on the form element instead of "read only" function, isn't appropriate as disabled will make the elements faded and hard to read when printed, and keeping the elements as is will allow the user to edit information on the print screen - which is not appropriate.
    Is this a bug? Will it be fixed soon? Is there any work around?
    Cheers,
    Alex

    Use the "Read Only Element Table Cell(s) Attributes" in the Read Only region of the Item edit form.
    Scott

  • Urgent! HTML table cell - Flash movie display browser dependent

    Hi all,
    I wonder if anyone has experienced the same problem i have
    (note, Windows XP, Dreamweaver 4).
    Consider the (rough) HTML code attached: A simple HTML table
    of one column and two rows is constructed to hold an image banner
    link and a Flash movie banner link in each cell consecutively.
    The Flash movie works normally when the HTML page is viewed
    in IE and Opera, until that is, it is placed inside a table cell.
    Inside the cell the flash movie seems to disappear, though i
    suspect it collapses to an image 1 pixel in height, as this can
    just about be seen using Opera.
    Is there something that I am missing? The code of course
    seems correct to me - perhaps there is a browser setting i am
    missing?
    Any help apprceiated - as i need to implement this code ..
    Daz

    Hi Alan,
    Dont think that was the problem (percentages used to scale to
    users browser?) ... though you did set me thinking!
    Was tired before, so only just remembered that when i was
    experimenting with setting the Table Properties the image was
    actually occasionally visible!!
    Short version: When formatting a cell containing a Flash
    animation dont leave the H field blank or use % (even though you're
    suppose to be able to!), use pixels instead - otherwise the Flash
    image collapses/disappears. Blank and % are fine everywhere else
    (I did type a long answer before, but it got eaten by the
    forum monster
    Someone/i will probably figure out
    why this is so or maybe i've just rediscovered the wheel
    here - but thats not really important now - because my Flash
    animation now renders similarly across IE, Opera and FireFox !!
    So thanks for your help!
    Daren

  • Can I place a button within a specific html table cell?

    Hi folks,
    Subject says it all, I'm trying to place a button in a specific table cell, and don't know how to do it. It's weird that apex has all of the items that you can code directly using apex_item, but not a button. Am I missing something simple?
    Any help would be appreciated,
    Regards,
    -Adam vonNieda

    Depending on what theme you are using the code that makes up a button will vary, some are only input items, some are three table cells. You can examine the source of your page to see what your theme does.
    I have successfully put the following code in a report column header.
    <input type="button" id="DELETE" onclick="doSubmit('DELETE');" value="Delete"/>I use this as the header for a column of check boxes, so the user can select records and delete the selected.
    What Theme are you using, and what do you want the button to do (just submit the page)

  • Problem trying to create and manage external tables

    Hello guys,
    I am having problems having created my external tables trying to select from them. I created the table thus:
    create table job_ext
    (job_id number(3),
    FUNCTION varchar2(30) )
    organization external (type oracle_datapump default directory test_dir
    access parameters (records delimited by newline fields delimited by "~" (job_id number(3) ,
    FUNCTION varchar2(30) ) )
    location ('testdump.lst')
    but on running select * from job_ext, I get the error
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "identifier": expecting one of: "logfile, nologfile, version" etc..
    KUP-01008: the bad identifier was: records
    KUP-01007: at line 1 column 1
    ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
    ORA-06512: at line 1
    what am I not doing right.
    Secondly, I wish to ask if an directory object is created, will it be visible on the OS file system?? I am using Oracle 10g complete reference for study but it does not throw light on this.
    thanks

    Hi,
    It looks like you may need to grant permissions to the target directory.
    The ORA-29913 error can also happen in external tables when you don't grant read and write permissions to the directory:
    CREATE OR REPLACE DIRECTORY extdir AS '/u01/app/oracle./extdir';
    GRANT READ ON DIRECTORY extdir TO myowner;
    GRANT WRITE ON DIRECTORY extdir TO myowner;
    Also, see BUG 5172459 (MetaLink Note:373168.1)
    The problem is that the message file for external tables oin not the English version. These steps will address the issue:
    1. cd $ORACLE_HOME/rdbms/mesg
    2. cp KUP<lang>.msb KUP<lang>.msb.BAK
    3. cp kupus.msb KUP<lang>.msb
    http://www.dba-oracle.com/t_ora_29913_external_table_error.htm

  • Problem trying to synchronize iCal info with my cell again

    After not syncing iCal with my Nokia 6822 for about six months or so (used a Palm for scheduling which I synced with Palm Desktop) I tried to do it again today, checking the 'calender' box under 'Nokia 6822'. When doing this an alert is popping up asking me to open iCal. After this is done I still cannot check the 'calender' box as the alert is popping up again and again and ... Any ideas to get things working again? Deleted the 6822 already and added it again, didn't help.
    Sorry for the bad English -- I'm German, but don't be afraid. Thanks for any help.
    Detlef

    Hi, Erik. I don't watch movies on my Powerbook or download them from the iTunes Store, so I'm certainly no expert on the possible causes of your problem. But here are some thoughts for whatever they may be worth:
    You have pretty minimal RAM installed to support any demanding use of the Powerbook in Tiger, so adding RAM is my first thought.
    Because watching a movie is a pretty demanding use, you may want to make sure no other applications or processes are running on the computer while you're doing it. In addition to quitting all other applications, try turning off BlueTooth and Airport (if you have them) and disconnecting any USB peripheral devices, some of which may occasionally exchange packets of information with the Mac even when they're not in use. Post back and let us know whether these steps make any difference.
    I presume you've downloaded the movie to your internal hard drive and are playing it from there rather than from any other drive - is that correct?

  • Problem While exporting HTML table to Excel(.CSV) in SharePoint 2010

    Hi ,
    I was exporting HTML table to .CSV file. 
    Problem is if any field contains '>' or '<' symbol then after exporting to .CSV, it was showing like '&gt' and '&lt' and the code is  as below.
    //Export HTML table to CSV 
    function toCSV() {
          var data = document.getElementById('reportstable');
          var csvData = [];
          var tmpArr = [];
          var tmpStr = '';
          for (var i = 0; i < data.rows[0].cells.length; i++) 
            tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
          csvData.push(tmpArr.join('\t'));
          for (var i = 1; i < data.rows.length; i++) 
            tmpArr = [];
            for (var j = 0; j < data.rows[0].cells.length; j++) 
            tmpArr.push(data.rows[i].cells[j].innerHTML);
            csvData.push(tmpArr.join('\t'));
          var output = csvData.join('\n');
          SaveContents(output);
    //For saving the file
    function SaveContents(element) {
            if (document.execCommand) {
                var oWin = window.open("about:blank","_blank");
                oWin.document.write(element);
                oWin.document.close();
                var success = oWin.document.execCommand('SaveAs', false, "FilteredReport.xls")
                oWin.close();
    Thanks in Advance

    Hi,
    According to your post, a problem occurred when you exported the HTML table to Excel(.CSV).
    The following code for your reference:
    function toCSV() {
    var data = document.getElementById('reportstable');
    var csvData = [];
    var tmpArr = [];
    var tmpStr = '';
    for (var i = 0; i < data.rows[0].cells.length; i++)
    tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
    csvData.push(tmpArr.join('\t'));
    for (var i = 1; i < data.rows.length; i++)
    tmpArr = [];
    for (var j = 0; j < data.rows[0].cells.length; j++)
    tmpArr.push(data.rows[i].cells[j].innerHTML);
    csvData.push(tmpArr.join('\t'));
    var output = csvData.join('\n');
    SaveContents(output.replace(/&lt;/g, '<').replace(/&gt;/g, '>'));
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How can i render a dynamic html file in jsp page

    Hi everybody,
    i am trying to render a dynamic html file in jsp page with the result of querying a database.
    The response of the query is a xml document. And i have a stylesheet to transfer it to html.
    How can i render the html in a jsp file?

    I am using below code for HTML files
    private var appFile:String="index.html";
    if (StageWebView.isSupported)
                        currentState = "normal";
                        webView.stage = stage;
                        webView.viewPort = new Rectangle( 10, 130, (stage.stageWidth)-20, 750 );
                        var fPath:String = new File(new File("app:/assets/html/aboutus/"+ appFile).nativePath).url; 
                        webView.loadURL(fPath);
                        addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
                    else {
                        currentState = "unsupported";
                        lblSupport.text = "StageWebView feature not supported";
    above code is working fine for me.

  • DisplayTag applies to all my regular html tables ?!?!

    Hi guys,
    Wonder if someone can help me on this one: I've just started to use displayTags and the results are as expected. The problem is that all my regular HTML tables receive the property of displayTag. This is not good because it distorts the look of the entire page (the footer and header are positioned in the center all of a sudden)
    I explicitly stated the below code in my JSP page which I wanted to table's properties to kick in.
    <link rel="stylesheet" href="css/screen.css" type="text/css"/>
    I wonder how to apply the settings only to ONE table without touching preexisting regular HTML tables.
    Thank you

    ok...i got it, I simply played with the css files :-)

  • Space between table cells

    I created a form based on the reports region. Is there any way that I can make the space between form fields on different lines to close to each other - i.e. 0 width between form fields "vertically". I tried to put valign="top" in either reports region template and region html table cell attributes but nothing works. Any working solution?
    Thanks.
    Andy

    Andy,
    Are you using Firefox with the web developer toolbar? If so, there's a nifty feature that allows you to view the CSS that controls any part of the page by simply clicking on it. A new page will open in Firefox that shows you the CSS selectors/definitions that are relevant to the area you clicked. Most forms/report in ApEx are laid out with tables so it's likely to have something to do with padding or margins between rows.
    Earl

  • Table cell formatting : please allow 'Horizontal autosizing' with 'at least' option like the vertical. Or is it in the pipeline already ?

    I suspect it has been asked by others, but can't find it in the archives. I need it for table cells with diagonals, and they need to fit like a glove.

    Hi,
    if the content is in a table cell (<td>), simply use valign="top" in the Region HTML table cell attributes.
    "Vertical align" is not intended to align text in a block, but an in-line component in another in-line component (for example a picture next to text).
    Maybe you have to play with margins.
    PS : more information here for example : http://evolt.org/article/rdf/17/60369/
    Yann.

  • Problem with html table and htmlb radiobutton group

    Hello,
    I wrote this code:
           <table width="100%" border="1">
            <tr>
              <th>
                Valutazione manageriale complessiva dell#anno
              </th>
              <th>1</th>
              <th>2</th>
              <th>3</th>
            </tr>
            <tr>
              <th>
                imprenditività
              </th>
              <htmlb:radioButtonGroup id="PROVA1"
                                       columnCount="3"
                                        mode="LOGICAL_GROUPING">
              <th><htmlb:radioButton id="1" text="1"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="2" text="2"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="3" text="3"  encode="TRUE"/></th>
              </htmlb:radioButtonGroup>
            </tr>
            <tr>
              <th>
                Autorevolezza
              </th>
              <htmlb:radioButtonGroup id="PROVA2"
                                       columnCount="3"
                                        mode="LOGICAL_GROUPING">
              <th><htmlb:radioButton id="1" text="1"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="2" text="2"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="3" text="3"  encode="TRUE"/></th>
              </htmlb:radioButtonGroup>
            </tr>
          </table>
    but the third row (where there is "Autorevollezza/PROVA2") appears out of the table.
    Do yuo now why?
    Regards
    Maria

    you need to put the htmlb:radioButtonGroup Tags within the
    tags
    <tr>
    <td>
    imprenditività
    </td>
    <td>
        <htmlb:radioButtonGroup id="PROVA1" columnCount="3" mode="LOGICAL_GROUPING">
        <htmlb:radioButton id="1" text="1" encode="TRUE"></htmlb:radioButton></td>
    <td><htmlb:radioButton id="2" text="2" encode="TRUE"></htmlb:radioButton></td>
    <td><htmlb:radioButton id="3" text="3" encode="TRUE"></htmlb:radioButton>
         </htmlb:radioButtonGroup></td>
    </tr>
    there is a invisible table rendered by htmlb and the browser does not know what to do when you put that between </tr> and </table> so he ends your table...
    better you use <htmlb:gridLayout> instead of html-tables...
    stefan

  • 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

  • Trying to write code for clicking on the links that are in HTML table

    Hi,
    I have an application, where in I created a table test for one HTML table. The table test case is passed. Now I am trying to write some VBA code for clicking on the links that are in the table.
    Please help me.
    I was trying to write the following code:
    Dim tbl As HTMLTable
    ' tbl = "window(index=0).Tag[TABLE](index=11)"
    Dim tblrow As HTMLTableRow
    For Each tblrow In tbl
    tblrow.click
    Next
    but getting error as runtime error 424: Object required.
    Is what I am doing is correct.
    I also have another question regarding assigning the no of links to a integer.
    Call RSWApp.WriteToLog("Number of links", objDocument.links.Length) ( i have this code from one of the forum entries).
    This writes the links to the Results log. but is there a way to assign this value to an integer.
    Thanks in advance.
    Sailaja.

    Hi,
    Thanks.
    Q1: I am able to copy all the links to a .csv file for databank. But not able to pass that variable through VBA code in order to click the links.
    I used the following code to copy the links from the application to .csv file
    Dim myFs As Scripting.FileSystemObject
    Dim myFile As Scripting.TextStream
    Set myFs = New Scripting.FileSystemObject
    Set myFile = myFs.OpenTextFile("C:\Empirix\eTEST\DataBank\linksData.csv", ForWriting)
    Q2: I was using the following code for clicking. ( This is different from above. I was trying other alternative without using databank.)
    Dim myDoc As HTMLDocument
    Dim myLink As HTMLAnchorElement
    Set myDoc = RSWApp.om.GetTopDocument
    For Each myLink In myDoc.links
    If myLink.Id = "AppsNavLink" Then
    myLink.click
    End If
    Next
    The problem here is, The "clicking" is happening but not visible in the application. I have 70 links to click, after the test is passed, the cursor is pointing to the last link ( 70th link).
    Please help me if I am doing wrong.
    Thanks,
    Sailaja.

  • 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

Maybe you are looking for