function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nick Tang 1Nick Tang 1 

Ensure that the page works for existing Order records

Dear All 
Merry christmas
I am challenging the step 7 about  the advanced apex superadge 
but there is wrong about it 
Ensure that the page works for existing Order records

User-added image
thanks alot
Nick Tang 1Nick Tang 1
fix it 
M Rahman 11M Rahman 11
Hi Nick,
By any chance, can you share the fix plase? I understand it's been a while you have solved this. 
M Rahman 11M Rahman 11
No worries Nick, I found it by myself as well. I was not initializing the orderItemMap when loading the page which was causing the issue. Following snipt of code sortd the issue - 
for(OrderItem oi : OrderRecord.OrderItems){
      orderItemMap.put(oi.Product2Id, oi);
}

Thanks