Search and Select Pattern-Constellation-Display error Message on Model dialogue.

How to show error message on constellation search and select model window.Attaching the screenshot where we populate the search result from REST API and if it fails we need to show the error message on constellation model window itself.

Hi @DPR

Please follow the steps below:

  1. Create a Data Page with Data Transform.

  2. Create a section and add your search result property in the section.

  3. Create a case type and add the Data Page in the section properties.

  4. Create a UI Flow and add a branch with the condition " If the search result property is empty".

  5. In the else branch add a normal flow page (section). This page will display the search results.

  6. In the " If " branch add a section and add a UI Message control.

  7. Add the error message in the default value.

Hope it helps

Thank You!

Megha

@DPR

Search and Select is an OOTB feature; I don’t see an option to configure/show the custom error message.

Are you expecting to display the error message retrieved as part of the REST response?

@RameshSangili Yes, If it fails need to show an error message on popup itself.

@Megha007 Thanks for your reply, The question is specific to Constellation and serach and select design pattern.We are not in Cosmos.

@DPR Thank you for your response, and I apologize for the delay.

Displaying the error message on the modal dialog would be tricky. I’m not sure if you have already found a solution or workaround for this issue.

@DPR
Hey!

Did you find any solution for this issue? even im trying to do same

@saikrishnaG6683 From what I can see from a PSC key word search, modals are not yet supported in Constellation. Therefore displaying an error within a modal window is not possible at this time.

Please see previous questions about this:

Popup on click of row in a pega constellation table

Custom validation error messages not displayed on editing data objects

Designing forms in Constellation

Building accessible applications in Constellation

You can check all Constellation documentation on the docs.pega.com site, and please go through the developer knowledge shares on the PSC which are curated under discussion Constellation 101

Please can you ask your question ‘Is it possible to show an error within a modal window on Constellation’ on the currently-open SME Discussion thread Constellation- Ask your Questions!

1 Like

@DPR Can you please provide steps on how you made a REST API Call to fetch and display results on Constellation view using search and select ?