Insert and Delete Record Functions
Insert and Delete Record Functions
AfmWebServicesInsertRecord
and
AfmWebServicesDeleteRecord
Syntax
(AfmWebServicesInsertRecord record strViewName strDataSourceId)
(AfmWebServicesDeleteRecord record strViewName strDataSourceId)
Comments
These function insert or delete a record in the current project. These functions use 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, makes use of the default to the first
dataSource
id in view)
Examples
The following example inserts a new record in the database.
(setq result
(AfmWebServicesInsertRecord
(("fieldList" ("rm.bl_id" . "HQ") ("rm.fl_id" . "17") ("rm.rm_id" . "809")))nil nil
)
)
The following example deletes a record from the database.
(setq result
(AfmWebServicesDeleteRecord
(("fieldList" ("rm.bl_id" . "HQ") ("rm.fl_id" . "17") ("rm.rm_id" . "809")))nil nil
)
)