admin
admin copied to clipboard
Using default view for custom data
I have 2 resources prodcts and sub-products. A product can have multiple sub-products. So I made sub-product as a sub-resource to the product. Now to navigate from a product to all of its sub-products I created an action with URL - /product/<productID>/subProducts/. This gives me the list of all the sub-products for a given productID. The issue with this approach is that all the sorting, filtering and pagination queries on this screen (sub-product) are executed on the product instead of sub-product. So is there a better way to solve this? My requirement is that I only want to view sub-products for a given product. I created a custom handler but not able to render it with the default view of QOR.