snippets call

0
i have to use single snippet for all three tabs but each tab need to show different datas that is a list and inside the snippet im already using a data grid 2 so for filter out the datas if i put the snippet inside the list view will create 2 sets of list  how can i filter the data at the same time use single snippet 
asked
1 answers
1

You can reuse a single snippet across multiple tabs while showing different data in each tab by passing a parameter to the snippet and filtering the Data Grid 2 inside it. First, create a parameter object, such as an entity with a field or enumeration indicating the tab type (for example, Tab1, Tab2, Tab3). Then, configure your snippet to accept this parameter. Inside the snippet, set the Data Grid 2 to use a microflow as its data source, and have this microflow receive the snippet parameter. In the microflow, use the parameter to determine which list of data to return for the Data Grid; for instance, if the parameter indicates Tab1, return the list for Tab1, if Tab2, return the list for Tab2, and so on. This approach allows the snippet to remain a single reusable component, avoids creating duplicate lists, and ensures that the correct filtered data is displayed in each tab

answered