Search these areas:
Support Forums
Product Info

-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Data Analysis
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-New Responsive UI Module

DataWeb Help
Support Forums
Script Library
Knowledge Base

Home > Support

Script Library

  Output a resultset as an HTML table
  chubbard posted this script:
  This script outputs a resultset as an HTML table. It's a quick way to check the contents of your resultset.

public function outputAsHTMLTable(rs)
    var aFields = new Array();

        aFields = rs.getFieldList();
        response.write("You must pass a valid Resultset object to the outputAsHTMLTable() function.");

    <ws:tags><table border=1><tr></ws:tags>;

    //output field names
    for(var i = 0; i < aFields.length; i++)


        for(i = 0; i < aFields.length; i++)

Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us