Search these areas:
Help
Support Forums
Product Info



Introduction
DataWeb: What's New
Creating an Application
The DataWeb Designer
Application Management
Data Tables
Data Tables
Views
Templates
Components
Data Analysis
Members
Security
Importing
Exporting
FTP
JavaScript
Object Model
JavaScript Objects
General Scripting Objects
Data Access Objects
-cmdDelete Object
-cmdInsert Object
-cmdSelect Object
-cmdUpdate Object
-Data Access Method Arguments
-Field Object
-Fields Collection
-Index Object
getFieldNames
-Indexes Collection
-previous Object
-record Object
-Resultset Object
-Table Object
-Tables Collection
-TextImporter Object
-Settings Object
-View Object
-Web Object
File Access Objects
Http Client Objects
Security and Membership Objects
Document Object Model (DOM)
Error Descriptions
Object Model Extensions
Full-Text Search
Domain and Email Hosting
HotBlock Modules
Account Management
Glossary
New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

DataWeb User's Guide

Index Object
The Index object represents an index in a data table.

Constructor

tableObject.indexes.add(indexname, fields_array [,constraint]) Creates a new index indexname in the data table represented by tableObject.  This method also constructs and returns a new Index object instance.  See the add() method of the Indexes collection for more detailed information.
tableObject.indexes.fetch(indexname) This method constructs an Index object instance representing the index indexname. Unlike the add() method above, this method does not create a new index in the data table, it only creates the Index object instance. See the fetch() method of the Indexes collection for more information.

Instance Properties

name A read only string property that records the name of the Index object.
constraint A Boolean value indicating whether the index enforces uniqueness.
fields A string consisting of a comma-separated list of the fields that make up the index. For example, 'fieldA, fieldB, fieldC'.

Instance Method

getFieldNames Returns an Array object containing the names of the fields in the index.


Example

var tbl = Web.tables.fetch("AddressBook");
var fld = Array("userName");
tbl.indexes.add("index", fld, true);
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