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
-Columns Argument
-DoScripts Argument
-Filter Argument
-Fields Argument
-RowId Argument
-Sort Argument
-Tablename Argument
Field Object
Fields Collection
Index Object
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

Fields Argument
The fields argument refers to an object, object literal, or string containing data that will be inserted into the specified table. The fields parameter specifies property names corresponding to columns in the table schema, and values corresponding to the desired values for each respective field name. The fields argument does not have to specify every column in the schema; behavior for omitted columns depends on which method is being called. An exception is thrown if a specified column name is not found.

Fields may be specified in one of two ways. In the following examples, where "foo" and "bar" are the column names and their associated values are the entries in the table "MyTable":

1.  Using an object:
var fields = new object();
fields.foo = "fooValue";
fields.bar = "barValue";
Table.insert("MyTable", fields);
2.  Using an object literal:
Table.insert("MyTable",
  {fooField:"fooValue", barField:"barValue"});

Related Topics

Table.update(),  Table.insert(),  Table.bulkUpdate()

Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
Email Us