GetFilteredFieldsFromView Procedure
Gets the filtered fields from a view text.
Signature
GetFilteredFieldsFromView(ViewText: Text) FilteredFields: Dictionary of [Integer, Text]
Parameters
ViewText
Text
The view text to extract the filtered fields from.
This is often returned by Record.GetView(false)
, or from a data item in a Report Request XML.
Returns
Dictionary of [Integer, Text]
A dictionary that will be filled with the filtered fields, where the key is the field number and the value is the filter text. If no WHERE clause is found, an empty dictionary will be returned.
Remarks
If the view is created from the GetView()
method, it is required to pass false
as the UseNames parameter,
ie. Record.GetView(false)
.
Otherwise, the field numbers will not be available in the WHERE clause and this function will throw an error.
This documentation is generated from Smart Toolbox v27.0