SBM ModScript Reference → Programming SBM ModScript → Object Types → AppRecord
AppRecord is the base object type for the majority of SBM objects. An AppRecord can represent any row of any table from the current Application Engine schema. The table is specified by a numeric table ID which must be supplied when the AppRecord is created using Ext.CreateAppRecord(). For details on Ext.CreateAppRecord, refer to Ext.CreateAppRecord(). For details on working with SBM database records, refer to Working with SBM Database Records.
After an AppRecord has been created for a specific table, its methods can retrieve data from any row of that table. However, the AppRecord can never be used with a different table; you must create a separate AppRecord object for that purpose.
When discussions of AppRecord objects refer to the "table ID of the current item", it refers to the table ID that was specified when the AppRecord was created. Use Ext.TableId() to find the table ID for the desired table.
AppRecord has child classes for certain tables, including VarRecord and ProjectBasedRecord for auxiliary and primary tables.
AppRecord does not inherit from any object type.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.