I am building a community feature for users to come and look up product pricing. I need a way for a community user to pick a Product (native SF products table) from a picklist, and then it calculates a price. I’ve got a couple problems:
1) I’m using a Table Filter (table is hidden with CSS) to drive the products model. The picklist values for the Table filter is created using an Aggregate model off “All Products”. It looks a little weird but I couldn’t think of another way to generate a picklist for our product entries.
2) I get a heap error ONLY when logged in as a community user (not sys admin or internal user) that is because of this Products aggregate model. My model has no aggregations because I am only trying to generate filter picklist options off the Name field. Do I need one? Limiting the model to 50 records works fine, no limit throws the heap error. I want my users to see all the products in the picklist.
So, is there a better way to dynamically create a picklist for my users to pick a product from?
And are there any ways to get around the heap error by tweaking my aggregate ‘AllProducts’ model?
Question
Generate a Picklist filter using Aggregate model - heap error
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
