Unable to retrieve column configured as Custom Search property
While performing an Advance Search with a Dedicated Index, unable to retrieve columns that are configured as Custom Search Properties.
Steps to Reproduce
The Class structure is as below:
NAB-UWF-Work (class group)
NAB-UWF-Work-Service-NAS (BU class)
NAB-UWF-Work-Service-NAS-ClientInstruction (Case Type class)
- Create Custom Search Properties at a specific class (NAB-UWF-Work-Service-NAS).
- Add Embedded Page properties to the Custom Search Properties.
- Create a dedicated Index.
- Create an Advanced Search report definition at a specific class (according to Step 1).
- Invoke the report definition report class name, AdvanceSearch with NAB-UWF-Work-Service-NAS.
Since the NAB-UWF-Work-Service-NAS layer is not a class group, the second Java step in the pzSearchWorkIndex activity passes 'Equals' instead of 'Startswith' in the Elastic Search query which fails to extract results.
This issue was determined to be a product enhancement request.
An enhancement request, FDBK-67211, is created for consideration by Pega Product Management.
Perform the following local-change:
- Create an activity
- In Pages and Classes tab, set the following:
In the Parameters Tab, set the following:
Clazz – type text
Obj-Open with Step page as a Report with properties
.pyStreamName = “SearchReport” (Name of report definition)
.pyClassname=”SSS-Elastic-Work” (Work class where the SearchReport is created)
Set the Property Set with Step page as the Report.
.pyContent.pyFields.pyListFields(<APPEND>).pyFieldName = “.NasName” (Property present at nonclassgroup layer)
.pyContent.pyFields.pyListFields(<APPEND>).pyFieldLabel = “NasName” (Label)
Param.clazz = “SSS-Elastic-Work-Nas” (To filter casetypes)
Set values for the parameters which must be sent to pxRetrieveSearchData
Param.pySearchMethod = STARTS
Param.pyReportClassname = SSS-Elastic-Work
Param.pyReportName = SearchReport
Param.pyReportPageName = Report
Call Rule-Obj-Report-Definition.pxRetrieveSearchData and pass the current Parameter page.
Show page with pySearchResultsWork to view the Search results.
0% found this useful