Table of Contents

KVSKBACLLCMPComplStatusFactBox

Procedures

SetRecordVariant(Variant) : Boolean

Summary: Sets the record context for the compliance status fact box, allowing it to display the appropriate compliance status and history based on the provided record variant.

procedure SetRecordVariant(RecordVariant: Variant): Boolean

Parameters:

  • RecordVariant: The record variant containing the record context.

Returns: True if the record context was successfully set; otherwise, false.

Remarks: This procedure is responsible for setting the record context for the compliance status fact box. It checks if the provided record variant is a valid record, retrieves the table number and source record ID from the record variant, and then uses the GlobCLLCMPComplianceGenLib codeunit to get the compliance status and history for the specified record. Finally, it updates the page to reflect the new compliance status and history information.