Kernel::System::DataValidation::Validator::AvailableColumns

NAME

Kernel::System::DataValidation::Validator::AvailableColumns – Validator that verifies that selected columns match their configuration.

PUBLIC INTERFACE

Provides a Check method, that will be called by the Kernel::System::DataValidation backend.

Check()

Checks if the given value is a valid option. The available columns hash needs to be passed as the Arguments parameter.

    my $True = $Validator->Check(
        Arguments => {
            CustomerID    => '2',
            OwnerID       => '1',
            ResponsibleID => '0',
        },
        Value => [
            {
                Column    => 'CustomerID',
                IsVisible => '1',
            },
            {
                Column    => 'OwnerID',
                IsVisible => '1',
            },
        ],
    );

    my $False = $Validator->Check(
        Arguments => {
            CustomerID    => '2',
            OwnerID       => '1',
            ResponsibleID => '0',
        },
        Value => [
            {
                Column    => 'ResponsibleID',
                IsVisible => '1',
            },
        ],
    );
Scroll to Top