Interface containing all filter functions like startsWith, toUpper or floor.

interface FilterFunctionsType {
    ceiling: (<EntityT>(num, returnType?) => NumberFilterFunction<EntityT>);
    concat: (<EntityT>(str1, str2) => StringFilterFunction<EntityT>);
    day: (<EntityT>(date) => NumberFilterFunction<EntityT>);
    endsWith: (<EntityT>(str, suffix) => BooleanFilterFunction<EntityT>);
    floor: (<EntityT>(num, returnType?) => NumberFilterFunction<EntityT>);
    hour: (<EntityT>(date) => NumberFilterFunction<EntityT>);
    indexOf: (<EntityT>(str, substr) => NumberFilterFunction<EntityT>);
    isOf: {
        <EntityT>(type): BooleanFilterFunction<EntityT>;
        <EntityT>(expression, type): BooleanFilterFunction<EntityT>;
    };
    length: (<EntityT>(str) => NumberFilterFunction<EntityT>);
    minute: (<EntityT>(date) => NumberFilterFunction<EntityT>);
    month: (<EntityT>(date) => NumberFilterFunction<EntityT>);
    round: (<EntityT>(num, returnType?) => NumberFilterFunction<EntityT>);
    second: (<EntityT>(date) => NumberFilterFunction<EntityT>);
    startsWith: (<EntityT>(str, prefix) => BooleanFilterFunction<EntityT>);
    substring: (<EntityT>(str, pos, len?) => StringFilterFunction<EntityT>);
    toLower: (<EntityT>(str) => StringFilterFunction<EntityT>);
    toUpper: (<EntityT>(str) => StringFilterFunction<EntityT>);
    trim: (<EntityT>(str) => StringFilterFunction<EntityT>);
    year: (<EntityT>(date) => NumberFilterFunction<EntityT>);
}

Properties

ceiling: (<EntityT>(num, returnType?) => NumberFilterFunction<EntityT>)

Build a filter function to ceil a number. Evaluates to double or decimal, defaults to double.

Type declaration

concat: (<EntityT>(str1, str2) => StringFilterFunction<EntityT>)

Build a filter function to concatenate two strings. Evaluates to string.

Type declaration

Build a filter function to get the day of a date. Evaluates to int.

Type declaration

endsWith: (<EntityT>(str, suffix) => BooleanFilterFunction<EntityT>)

Build a filter function to test whether a string ends with another. Evaluates to boolean.

Type declaration

floor: (<EntityT>(num, returnType?) => NumberFilterFunction<EntityT>)

Build a filter function to floor a number. Evaluates to double or decimal, defaults to double.

Type declaration

Build a filter function to get the hour of a date. Evaluates to int.

Type declaration

indexOf: (<EntityT>(str, substr) => NumberFilterFunction<EntityT>)

Build a filter function to get the start index of a substring. Evaluates to int.

Type declaration

isOf: {
    <EntityT>(type): BooleanFilterFunction<EntityT>;
    <EntityT>(expression, type): BooleanFilterFunction<EntityT>;
}

Build a filter function to test whether a selection or a field is of a given type. Evaluates to boolean.

Type declaration

length: (<EntityT>(str) => NumberFilterFunction<EntityT>)

Build a filter function to get the length of a string. Evaluates to int.

Type declaration

minute: (<EntityT>(date) => NumberFilterFunction<EntityT>)

Build a filter function to get the minute of a date. Evaluates to int.

Type declaration

month: (<EntityT>(date) => NumberFilterFunction<EntityT>)

Build a filter function to get the month of a date. Evaluates to int.

Type declaration

round: (<EntityT>(num, returnType?) => NumberFilterFunction<EntityT>)

Build a filter function to round a number. Evaluates to double or decimal, defaults to double.

Type declaration

second: (<EntityT>(date) => NumberFilterFunction<EntityT>)

Build a filter function to get the second of a date. Evaluates to int.

Type declaration

startsWith: (<EntityT>(str, prefix) => BooleanFilterFunction<EntityT>)

Build a filter function to test whether a string starts with another. Evaluates to boolean.

Type declaration

substring: (<EntityT>(str, pos, len?) => StringFilterFunction<EntityT>)

Build a filter function to get a substring starting from a designated position. Evaluates to string.

Type declaration

toLower: (<EntityT>(str) => StringFilterFunction<EntityT>)

Build a filter function to transform a string to lower case. Evaluates to string.

Type declaration

toUpper: (<EntityT>(str) => StringFilterFunction<EntityT>)

Build a filter function to transform a string to upper case. Evaluates to string.

Type declaration

Build a filter function to trim whitespace from a string. Evaluates to string.

Type declaration

Build a filter function to get the year of a date. Evaluates to int.

Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.

Type declaration