Pega Infinity ’26 provides the ability to display contextual warnings for records within Search and Select.
Demo : https://youtu.be/6a-MIIft71Q?si=U0chHlcJn16kn3_-
Configuration
Start with a Data Reference field configured to use Search and Select.
Open the source List Data Page used by the field and configure a Response Data Transform.
The Response Data Transform processes the retrieved results before they are returned to Search and Select. This is where the warning information can be populated based on your application’s business requirements.
To return a warning in Search and Select, you can use the out-of-the-box property pyWarningList, which carries warning information alongside each record returned from the Data Page.
The pyWarningList is a Page List, where each entry is of the class Embed-APIWarning. Within each Embed-APIWarning page, the warning text is defined using the pyMessage property. This is what Search and Select displays in the UI.
populate pyMessage with the required warning text for each record. The message can be static or dynamically derived from the Data Page response or business logic in the Response Data Transform.
Runtime Behaviour
When the Data Page is executed, the warning information is returned through pyWarningList along with the search results.
You can verify this by running the Data Page and inspecting the response, where pyWarningList contains the corresponding pyMessage.
At runtime, Search and Select uses this warning information to display the contextual warning for the corresponding record.
This provides additional context directly within the selection experience, helping users make a more informed choice without interrupting their workflow.


