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
Indexes Collection
previous Object
record Object
Resultset Object
Table Object
-bulkDelete
-bulkInsert
-bulkUpdate
-delete
-exists (instance)
-exists (prototype)
-getCaption
-getDefaultDisplayField
-getDefaultSortField
-getDescription
-getPrimaryKey
-getFolderPath
-insert
-isValid
-refresh
-remove(instance)
-remove (prototype)
-select
-setCaption
-setDefaultDisplayField
-setDefaultSortField
-setDescription
-setPrimaryKey
-update
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

Table.bulkUpdate()
Syntax

Table.bulkUpdate(tablename, fields, filter[, doScripts])

Arguments Description
tablename Specify the data table on which to perform the query.
fields The fields argument contains data that will be inserted into the specified table. fields refers to an object, object literal, or a string in the form of URL filter syntax.
filter Specify a portion of the data table to update using a filter.
doScripts If doScripts is TRUE, the scripts associated with the table's OnUpdate function will run on the rows modified. If FALSE the table's scripts are not called.

Returns

The number of records updated.

Description

Updates every record that matches the specified filter with the data contained in the fields argument. If any update fails, they all fail and an exception will be thrown.

The user must have 'Edit records' permission or greater, i.e. the role of 'Editor' or above, as listed in the security tab to execute a bulkUpdate() method call. Users with the role of 'Author' or below are not able to successfully call bulkUpdate().

Example
var num = Table.bulkUpdate("AddressBook", 
   {Zip:"98105-6001"}, "Address1='DataWeb Corporation'", false);
   //'num' is a number equivalent to the number of records updated   
   //by the bulkUpdate. 
Related Topics

Table Object, Table.update(), Table.bulkDelete()
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
Email Us