InformationRegisterRecordManager.<Information register name>

Properties:

<Attribute name>
<Common attribute name>
<Dimension name>
<Resource name>
Period

Methods:

Delete
Fill
GetForm
Modified
Read
Selected
Write

Description:

You can use it to read, write or delete certain records of the information register. Used only for information registers unchangeable by recorders, i.e. those with the "Independent" write mode set in the Designer.
Used for interactive work with the information register record.
Information register records are accessed (for reading and writing) by the InformationRegisterRecordSet. object on system level. Generally, two record sets are used here: one of them is used to delete the old record and the other is used to write data defined by the record manager. For example, it can be indicated by double calling BeforeWrite and OnWrite events of the InformationRegisterRecordSet. object during record execution: first for an empty record set that deletes the "old" record, and then for a record set with new data.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

Rate = InformationRegisters.ExchangeRates.CreateRecordManager();
Rate.Currency = SelCurrency;
Rate.Period = CurrentDate();
Rate.Read();
If 
Not Rate.Selected() Then
    Rate.Period = CurrentDate();
    Rate.Currency = SelCurrency;
    Rate.Rate = 41.35;
    Rate.Repetition = 1;
EndIf
;
If 
InputNumber(Rate.Rate, "Enter the rate for today",15,5) Then
    Rate.Write();
EndIf
;

See also:

InformationRegisterSelection, method GetRecordManager
InformationRegisterManager, method CreateRecordManager
Information register record form extension, property CopyingObjectParameter
Managed form extension for information register records, event OnWriteAtServer
Managed form extension for information register records, event BeforeWriteAtServer
Managed form extension for information register records, event AfterWriteAtServer
Managed form extension for information register records, event OnReadAtServer

    

1C:Enterprise Developer's Community