Hi, I resolved this issue,i found that my product list was not redering so i fixed it.Below is the snippet for the same. String query = 'SELECT Name, Product2.Family, Product2.Name, Product2Id, UnitPrice, Product2.Quantity_Remaining__c' + ' FROM PricebookEntry WHERE IsActive = TRUE';
if (selectedFamily != null && selectedFamily != Constants.SELECT_ONE) { query += ' AND Product2.Family = \'' + selectedFamily + '\''; } query += ' ORDER BY Name Limit 14'; system.debug('@@@Query->'+query);
standardSetController = new ApexPages.StandardSetController(Database.getQueryLocator(query)); standardSetController.setPageSize(Constants.DEFAULT_ROWS);
I resolved this issue,i found that my product list was not redering so i fixed it.Below is the snippet for the same.
String query = 'SELECT Name, Product2.Family, Product2.Name, Product2Id, UnitPrice, Product2.Quantity_Remaining__c'
+ ' FROM PricebookEntry WHERE IsActive = TRUE';
system.debug('@@@ selectedFamily->'+selectedFamily);
if (selectedFamily != null && selectedFamily != Constants.SELECT_ONE) {
query += ' AND Product2.Family = \'' + selectedFamily + '\'';
}
query += ' ORDER BY Name Limit 14';
system.debug('@@@Query->'+query);
standardSetController = new ApexPages.StandardSetController(Database.getQueryLocator(query));
standardSetController.setPageSize(Constants.DEFAULT_ROWS);
Happy Coding :)