Get a filter for the selected field from a provided record. Ranges will be used inside the filter were possible.
procedure GetSelectionFilter(var TempRecRef: RecordRef, SelectionFieldID: Integer): Text
Parameters
Name
Type
Description
TempRecRef
RecordRef
Record used to determine the field filter.
SelectionFieldID
Integer
The field for which the filter will be constructed.
Returns
Type
Description
Text
The filter for the provided field ID. For example, '1..3|6'.
Remarks
This method queries the database intensively, can cause perfomance issues and even cause database server exceptions. Consider using the overload with ComputeRangesUsingRecords set to false.
CreateFilterFromTempTable
procedure CreateFilterFromTempTable(var SourceTempRecRef: RecordRef, var RecRef: RecordRef, SelectionFieldID: Integer): Text
Parameters
Name
Type
Description
SourceTempRecRef
RecordRef
RecRef
RecordRef
SelectionFieldID
Integer
Returns
Type
Description
Text
AddQuotes
procedure AddQuotes(inString: Text): Text
Parameters
Name
Type
Description
inString
Text
Returns
Type
Description
Text
ReplaceString
procedure ReplaceString(String: Text, FindWhat: Text, ReplaceWith: Text): Text
Parameters
Name
Type
Description
String
Text
FindWhat
Text
ReplaceWith
Text
Returns
Type
Description
Text
GetSelectionFilterForItem
procedure GetSelectionFilterForItem(var Item: Record Item): Text
This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Selection Filter Mgt.
[Obsolete(Replaced by same procedure in codeunit Serv. Selection Filter Mgt.,25.0)]
procedure GetSelectionFilterForServiceItem(var ServiceItem: Record "Service Item"): Text
Get a filter for the selected field from a provided record. Ranges will be used inside the filter were possible.
The values in the selected field must be unique and sorted in ascending order.
procedure GetSelectionFilter(var SourceRecRef: RecordRef, SelectionFieldID: Integer, ComputeRangesUsingRecords: Boolean): Text
Parameters
Name
Type
Description
SourceRecRef
RecordRef
Record used to determine the field filter.
SelectionFieldID
Integer
The field for which the filter will be constructed.
ComputeRangesUsingRecords
Boolean
Specify if the computations should be performed on records, or in-memory structures.
If the parameter is false, the database load is greatly reduced, but the memory footprint is bigger
Returns
Type
Description
Text
The filter for the provided field ID. For example, '1..3|6'.
This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Selection Filter Mgt.
[Obsolete(Replaced by same procedure in codeunit Serv. Selection Filter Mgt.,25.0)]
procedure GetSelectionFilterForServiceHeader(var ServiceHeader: Record "Service Header"): Text