public PageReference BookerInformation(){
PageReference gotosetup = new PageReference('/apex/bookerinformation?id=' + eventId);
List<ProntoEvents_Product__c> products_1 = [SELECT Id, Name FROM ProntoEvents_Product__c Where Event_Name__c = :eventId];
Map<Id, String> prod_quantity = new Map<Id, String>();
for (ProntoEvents_Product__c data_prod : products_1){
prod_quantity.put(data_prod.ID, ApexPages.currentPage().getParameters().get(data_prod.ID));
}
system.Debug(prod_quantity);
gotosetup.setRedirect(true);
return gotosetup;
}
How can I pass this prod_quantity
to a global variable so that I can use it on the visualforce page?
Sample output of the prod_quantity
in system.Debug
is this:
16:54:11.341 (341390959)|USER_DEBUG|[50]|DEBUG|{a0T9000000JplalEAB=15, a0T9000000Jple3EAB=0, a0T9000000JplfLEAR=5}
setRedirect(true)
, the controller variables stay in memory for both pages. Otherwise, KeithC has the right answer