Question
AdeptView
IN
Last activity: 12 Nov 2024 12:57 EST
I want to display only the filtered records from a pagelist in constellations
I have a requirement where i have 7 records A,B,C,D,E,F and G but while displaying in a section we want to only display A, C E & G records which is possible in Section grid layout. But I want the same functionlaity to be implemented in Constellation views that too with a pagelist not with Data Page
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
@RizwanullahHussaMIn Constellation, to achieve the functionality of displaying specific records from a pagelist, you can utilize the 'Field Group' option when setting the 'Display as' setting for embedded data in a view. This allows you to configure the UI to repeat for each selected page in the pagelist, similar to how you would in a Section grid layout. You can set conditions to filter the records you want to display, such as only showing A, C, E, and G.
Reference doc: Configuring a list of records Embedded Data field
Article: How to use repeating dyamic layout in Constellation? | Support Center
Pegasystems Inc.
CA
I believe this can be done using the DataPage. Based on your requirements/context, you can trim down the pxResults in the Post Data transform.
AdeptView
IN
Thanks for your reply, The pagelist which i want to display on the UI will have 30-40 records and those records i need it to update in the next couple to screens and then i will store those records in the DB.
In the current screen i want to show only 10 records and in the next screen other 10 records but both belongs to the same pagelist which i will futher update in the subsequent screens and then save at the end.
Really appreciatable if you can help me on this.
Thanks
Rizwan
Pegasystems Inc.
CA
I hope you can parameterize the data page on each screen to get the relevant records based on the screen context.
I believe you have a Data Reference property, and the source is either a Report definition or connector. You can trim down the results based on your screen context in the Response Data transform.
Evonsys India Pvt Ltd
IN
To achieve this functionality in Constellation views using a pagelist, you can follow these steps:
-
Filter the Pagelist: Create a property in your data model to hold the filtered list of records. You can use a data transform to filter the pagelist and populate this property with only the records you want to display (A, C, E, and G).
-
Data Transform:
- Create a data transform to iterate over your original pagelist.
- Use a condition to check if the current record is one of the desired records (A, C, E, G).
- If the condition is met, append the record to the new filtered pagelist property.
-
Configure the Constellation View:
- In your Constellation view, reference the new filtered pagelist property instead of the original pagelist.
- Ensure your section or grid layout is set up to display the records from this filtered list.
Here's a simplified example of what the data transform might look like:
To achieve this functionality in Constellation views using a pagelist, you can follow these steps:
-
Filter the Pagelist: Create a property in your data model to hold the filtered list of records. You can use a data transform to filter the pagelist and populate this property with only the records you want to display (A, C, E, and G).
-
Data Transform:
- Create a data transform to iterate over your original pagelist.
- Use a condition to check if the current record is one of the desired records (A, C, E, G).
- If the condition is met, append the record to the new filtered pagelist property.
-
Configure the Constellation View:
- In your Constellation view, reference the new filtered pagelist property instead of the original pagelist.
- Ensure your section or grid layout is set up to display the records from this filtered list.
Here's a simplified example of what the data transform might look like:
Data Transform: FilterRecords
- For each item in .OriginalPageList
- When .RecordID == "A" OR .RecordID == "C" OR .RecordID == "E" OR .RecordID == "G"
- Append to .FilteredPageList
In your Constellation view configuration, you would then bind the grid or section to .FilteredPageList
instead of .OriginalPageList
.
This approach ensures that only the desired records (A, C, E, G) are displayed in your Constellation view, using a pagelist and without relying on a data page.
AdeptView
IN
@Avinash Swargam Thank you so much Avinash. Is it not possible to implement with one pagelist via constellations because the real issue is not fixed. Also wanted to know is it not possible to do it in any customized way