InformationRegisterSelection.<Information register name>.GetRecordManager

Syntax:

GetRecordManager()

Returned value:

Type: InformationRegisterRecordManager.

Description:

Obtains the object for record modifying, writing and deleting for an information register in which the selection is currently positioned.

Availability:

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

Note:

The obtained object is not selected (the Selected method returns False). To modify the obtained record you need to execute the Read method.

Example:

Procedure ExecuteCommandPanel(Button)
    Reg = InformationRegisters.RightsOfUserValues;
    Selection = Reg.Select();
    While 
Selection.Next() Do
        Selection.GetRecordManager().Delete();
    EndDo
;

    Rows = Controls.TableBox1.Value.Count();
    For 
Number = 0 To Rows-Do
        Row = Controls.TableBox1.Value.Get(Number);
        Item = Reg.CreateRecordManager();
        Item.RightsSet = Row.RightsSet;
        Item.Right     = Row.Right;
        Item.Value  = Row.Value;
        Item.Write();
    EndDo
;
EndProcedure


    

1C:Enterprise Developer's Community