Hello,
We are looking for some advice on filtering. Take for example that we have a data source that returns shopping purchases which we use to populate a list grid. This may have information such as customer name, item purchased and date purchased. The item purchased could belong to different item categories or category-less. The category details won't be displayed on the list grid as columns since there could be 0 to many categories per purchase (per record). We were thinking of displaying them as a record component listing each category detail out. Below is a simple mockup:
We have a requirement to filter records in the list grid based on category values such as category name and category popularity. E.g. filter the items that belong to category1 only, or filter the grid based on items with Low popularity. We are unsure how we would go about this type of filtering.
We thought we could have the list grid data source have a field 'categories' with field type 'any' that returns a List of Categories but how would we pass criteria to it for a specific category name and / or popularity if its not a common field type such as string or integer.
Now we are thinking maybe it is better to use a nested data source for the categories but again we have the same questions on how to filter.
We looked at the filter examples in the Feature Explorer but not sure if any of them would help us with these types of data sources.
We are on SmartClient Version: v8.3p_2013-05-22/Pro Deployment.
Any ideas/tips/suggestions would be appreciated.
Thanks!
We are looking for some advice on filtering. Take for example that we have a data source that returns shopping purchases which we use to populate a list grid. This may have information such as customer name, item purchased and date purchased. The item purchased could belong to different item categories or category-less. The category details won't be displayed on the list grid as columns since there could be 0 to many categories per purchase (per record). We were thinking of displaying them as a record component listing each category detail out. Below is a simple mockup:
Code:
--------------------------------------------------------------- Customer name | Item Purchased | Date Purchased --------------------------------------------------------------- XYZ | Item1 | 7/17/2013 category1 (High Popularity), category2 (Low Popularity) ABC | Item2 | 7/16/2013 category1 (Low Popularity) ---------------------------------------------------------------
We thought we could have the list grid data source have a field 'categories' with field type 'any' that returns a List of Categories but how would we pass criteria to it for a specific category name and / or popularity if its not a common field type such as string or integer.
Now we are thinking maybe it is better to use a nested data source for the categories but again we have the same questions on how to filter.
We looked at the filter examples in the Feature Explorer but not sure if any of them would help us with these types of data sources.
We are on SmartClient Version: v8.3p_2013-05-22/Pro Deployment.
Any ideas/tips/suggestions would be appreciated.
Thanks!
Comment