Cursor Editing (RecordSet)
Cursor Editing (RecordSet)
Note: The RecordSet functions described in this section are obsolete and are included for backward-compatibility with older Overlay-style AutoLISP functions that have been ported to the Extension environment. It is recommended that newer Archibus Extension-based AutoLISP development use the WebService functions to access data from the database rather than these RecordSet functions. For examples of how older Overlay-style RecordSet functions can be used in the Archibus Extension environment, please see the ‘Examples of using Extension queries in place of Overlay queries’ section in the afm_samples.lsp file.
(AfmRsEdit)
Not supported in the Archibus Extension
(AfmRsAddNew)
Not supported in the Archibus Extension
(AfmRsUpdate)
Not supported in the Archibus Extension
(AfmRsDelete)
Not supported in the Archibus Extension
Use these functions to change a recordset. The edit function enters an editing mode on the current record. The add function adds a new, blank record. After you change the record call the update method to send the changes to the database. The delete function deletes the current record in the recordset.
(AfmRsGetReal "tbl.fld")
(AfmRsGetInt "tbl.fld")
(AfmRsGetStr "tbl.fld")
These functions retrieve current values from a recordset as real, integer or string values. The functions return nil if the field value could not be accessed.
(AfmRsSetReal "tbl.fld" dValue)
Not supported in the Archibus Extension
(AfmRsSetInt "tbl.fld" nValue)
Not supported in the Archibus Extension
(AfmRsSetStr "tbl.fld" strValue)
Not supported in the Archibus Extension
These functions set the field of the recordset to hold the given value.
Use these in conjunction with the
(AfmRsAddNew
) and the
(AfmRsEdit)
functions.
The functions return t on success.