Update Record Functions

AfmWebServicesUpdateRecord

Syntax

(AfmWebServicesUpdateRecord record strViewName strDataSourceId)

Comments

This function updates a record in the current project. The AfmWebServiceUpdateRecord function uses the default view and dataSourceId for the asset type in the record object if those parameters are set to nil.

record is a record as described in the definitions section of this topic. (required)

strViewName is a view name for the specific asset type. (optional. If set to nil, will make use the default view for the record's asset type,)

strDataSourceId is a dataSourceId in the specified view name. (optional. If set to nil, will make use of the default to the first dataSource id in view.)

Example

The following example will update the “rm.rm_std” value for a record in the database.

(setq resultRecord
(AfmWebServicesUpdateRecord
(
("fieldList" ("rm.bl_id" . "HQ") ("rm.fl_id" . "17") ("rm.rm_id" . "101") ("rm.rm_std" . "OFFICE"))|
("oldFieldList" ("rm.bl_id" . "HQ") ("rm.fl_id" . "17") ("rm.rm_id" . "101") ("rm.rm_std" . "WRKSTN"))
)
nil
nil
)
)