I have a requirement where we have to display the list of data when the user searches based on few search parameters. On initial load of the screen, the list should be displayed as Empty and only when the user enters values in the search parameters, then system should fetch results based on search parameters.
The data page which has been used for the view is sourced by Report Definition. When the landing page is launched the whole list of data is getting load. How to achieve the above reuirement in pega constellation where we can pass promoted filter to data page and have the result accordingly?
@ShreyaG3 are you in the User Experience Expert Circle? I would like to move this under that area, so it can be found with other Constellation questions. However, if you are not a member you won’t be able to respond (until you join), so don’t want to just move on you.
On the data page sourced by your Report Definition and used in the table view or insight, turn on Allow querying any column, then add a response Data Transform to it with Pass Parameters set to true. This Data Transform can read the values entered in the promoted filters through the dynamic page named in param.pyImplicitParameter, since a filter change on a report-definition-sourced data page always refreshes the report. Inside the Data Transform, delete all result rows whenever no filter value is present so the list stays empty on load; once the user enters a value in a promoted filter, leave the returned rows untouched so only the matching records are shown.