GetRequestedFields method: SearchCategory class

Syntax

GetRequestedFields()

Description

Use this method to return the list of search fields that have been configured as display-only attributes on the Display Fields page. This array can then be passed to the RequestedFields method of the SearchQuery class. Since this method returns the query field names for the search attributes, you must also use the GetRequestedAttributes method to return the display labels to display in the user interface.

Parameters

None.

Returns

An array of SearchField objects.

Example

PT_SEARCH:SearchCategory &cat = create PT_SEARCH:SearchCategory("MY_SRCH_CAT");
&qry.Categories = CreateArray(&cat);

&qry.RequestedFields = &cat.GetRequestedFields();