You need to sign in to do that
Don't have an account?
Emilien Guichard 40
Advanced Apex Superbadge Step 3 - List Price not editable
Hi there,
I'm facing an issue at the step 3 of the Advanced Apex Superbadge, on the Product2New page the List Price is not editable :
In the Visualforce page I'm using :
Thanks a lot !
I'm facing an issue at the step 3 of the Advanced Apex Superbadge, on the Product2New page the List Price is not editable :
In the Visualforce page I'm using :
<apex:column headerValue="{!$ObjectType.PriceBookEntry.fields.UnitPrice.label}" > <inputField value="{!p.pricebookEntryRecord.UnitPrice}" /> </apex:column>and in the controller extension class Product2Extension, here is my wrapper :
public class ProductWrapper { public Product2 productRecord {get; set;} public PriceBookEntry pricebookEntryRecord {get; set;} public productWrapper() { productRecord = new product2(Initial_Inventory__c = 0); pricebookEntryRecord = new pricebookEntry(); } }Any piece of advice to get this working ?
Thanks a lot !
All Answers
Thanks for your answer and also good catch !
I changed the inputfield to apex:inputfield and now the field is editable but it is always mandatory even for the lines that are not filled :
Do you have any idea on how to be able to insert only the not empty lines ?
Thanks a lot.