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

  Convert a Long Text field to an HTML field
  chubbard posted this script:
  // This function converts a field of type Long Text to type HTML.
// Arguments:
// strTable: The name of the table that contains the field.
// strField: The name of a Long Text field.

webcall function convertFieldToHTML(strTable, strField)
    var fld = web.tables.Fetch(strTable).fields.fetch(strField);
    if(fld.type == "LongText")
        var obj = new Object();
        obj.type = "HTML";
        return "The " + strField + " field in the " + strTable
            + " table has been converted to type HTML.";
        throw("The " + strField + " field in the " + strTable +
            " table is not a Long Text field.");
  on 2001-08-04 13:56:54, chubbard responded:
  Great script Tamra!  Just what I needed to get me started on converting an integer to a lookup field.  
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