Show / Hide Table of Contents

    AddDateRange Procedure

    Codeunit Date Ranges

    Adds a new Date Range to the system.

    Signature

    [InherentPermissions(PermissionObjectType::TableData, Database::"QWEEG Date Range", 'RIM')]
    AddDateRange(Code: Code[20]; Description: Text; StartCode: Code[20]; EndCode: Code[20])
    

    Parameters

    Code Code[20]

    The code of the Date Range. This code must be unique, otherwise the existing Date Range will be overwritten. Try to use the same naming convention as the standard Date Ranges.

    Description Text

    The description of the Date Range, as shown to the user.

    StartCode Code[20]

    The code of the Date Formula used for the start date of the Date Range. Use an empty text to have no start date.

    EndCode Code[20]

    The code of the Date Formula used for the end date of the Date Range. Use an empty text to have no end date.

    Remarks

    The StartCode and EndCode parameters must be existing Date Formula codes.

    Example

    DateRanges.AddDateRange('CD+7D', 'Current Date plus 7 Days', 'CD', '7D');
    DateRanges.AddDateRange('-10M', 'Minus 10 Months - No ending date', '-10M', '');
    

    This documentation is generated from Eagle v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX