InformationRegisterManager.<Information register name>.SliceLast

Syntax:

SliceLast(<EndOfPeriod>, <Filter>)

Parameters:

<EndOfPeriod> (optional)

Type: Date; PointInTime; Boundary.
Defines the point in time for which you need to select records.
If this parameter is not set, resource values of the last register record will be returned.

<Filter> (optional)

Type: Structure.
Structure containing the register dimensions and attributes filter. Structure key name must be the same as the register dimension name specified in the designer, and value of an element of structure - sets value selected on given dimension.
The structure may additionally have the items that correspond to separators of register with the IndependentlyAndSimultaneously level of separation, which include the register. If such a structure item is specified for use in a session separator, then value for this item must match the separator value, otherwise it will throw an exception.
If the parameter is not specified filter is not used.

Returned value:

Type: ValueTable.
Value table filled with found information register records data.

Description:

Obtains the latest register records corresponding to key field values specified in method parameters. Records shall be selected for each combination out of all available values of register dimensions.

Availability:

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

Note:

Apply for periodic information registers only.

Example:

PricesMarketing = InformationRegisters.PricesMarketing;
CurrentPricesOfCompetitors = PricesMarketing.SliceLast(CurrentDate());


    

1C:Enterprise Developer's Community