
Error as :
javax.faces.FacesException: core.apexpages.exceptions.ApexPagesDeveloperException: Map key BXRC-25E4000-F-04 not found in map
In a table i would like to display the data for the previous and current year.
This is the Table (expected output):
ProductName Year Q1 Q2 Q3 Q4 Total
BXRC-25e4000-F-04 2014 100 200 300 400 1000
2015 100 100
BXRC-25e4000-F-23 2014 200 200 400
2015 300 300
Subtotal ------------ 700 200 300 600 1800
But i get the o/p as:
ProductName Year Q1 Q2 Q3 Q4 Total
BXRC-25e4000-F-04 2014 500 200 300 400 1400
BXRC-25e4000-F-23 2014 200 200 400
Subtotal ------------ 700 200 300 600 1800
When i use the condition,i get the previous year data
if ((monthText == 'Jan' || monthText == 'Feb' || monthText == 'Mar')&&(year==previousyear))
But when i use the condition for the current year ,it does not works ,throws an error.
if ((monthText == 'Jan' || monthText == 'Feb' || monthText == 'Mar')&&(year==previousyear ||year==currentyear))
or
if ((monthText == 'Jan' || monthText == 'Feb' || monthText == 'Mar')&&(year==currentyear))
Any help very much appreciated
Could you please let me know if you are still facing this issue? If so, please provide more details like exact replication steps and any other details.