We have a requirement to retrieve Product list form the external source via Rest api (it returns around 500+ products), and then provide ability for the user to select one or more products from an autocomplete dropdown.
Example: Product data contains Name, Category, and Cost. Provide the user to select product name from autocomplete, once selected display name, category, and cost in a table. Provide ability for user to delete or add multiple products.
How to achieve this requirement?
I have tried Data reference pattern, but its not accepting a List type Data page.
It sounds like you are on the right track with a data reference.
When you configure a data reference in the constellation data model to pick multiple values, you should configure the field as type reference with “List of records” option. The data page that is referenced at this point is however a single page to return a single selected record.
When you add the reference field to the view in App Studio you will be give the option to select the list type data page that will source the data for the control. It sounds like you may like to check out the combo box option that will allow for multiple selections.
I have implemented this solution, when user selects planets ref need to display additional details of each planet in a table and it has an issue to display additional property details, please see attached document.
Also, Our use case is to fetch planet details from an external system via rest api call. How to achieve this requirement? Current approach only working for data source exists within Pega.
@HJetti I see that you logged support ticket INC-B14012 (Constellation Autocomplete source from external system) 5th April and that our support team are looking into this.
Search & select capabilities for data coming through integration and mapped to an abstract application data model. Data reference properties configured against the abstract data model are automatically converted into query properties, this has been taken as feedback for FDBK-103844 which is currently under review.
Currently, the workaround suggested is to have a data set with a table and then select a data from the dropdown.
Since, it may take time for the assessment of the feedback request, our support team have also advised engaging Pega Consulting in order to achieve the requirement by building a custom component.
Our support team closed the ticket and referred to Pega consulting, as this INC falls into user requirement, not a product error.
You were informed that the Consulting team will help you build this requirement.
@MandarK96 , We have implemented a work around solution to achieve this requirement. Firstly we need to create a data type and update list data page to retrieve results from external source rather from pega source. Then update data page of type pega to select the user selected record from the list source.