-
what values my Custom Salesforce Visualforce edit page does not show?
I have a simple edit page on a custom object with a 'simple' controller extension (as I need a custom save method). However .. the VF page does no show any values .... (and no error).
Public Account MyAcc { get; set; } Public Account_PriceBook__c acc { get; set; } public Account_PriceBook__c AccPB { get; set; } //** Class constructor (Always loaded ....) public DEPT_AcContPcBControllerExt(ApexPages.StandardController Controller) { acc = (account_pricebook__c)controller.getRecord(); String modeStr = ApexPages.currentPage().getParameters().get('Mode'); TextDescription = ''; system.debug('*** ** *** Record id'+Acc.id); system.debug('*** ** *** Mode'+modeStr); if (acc != null && acc.Id != null){ Account_PriceBook__c AccPB = [SELECT id, Price__c,Account_Lookup__c,Description__c, AgencyLookup__c,Product_Lookup__c,marge__c from account_pricebook__c where id = :acc.id]; system.debug('*** ** *** Account id'+AccPB.Account_Lookup__c); system.debug('*** ** *** Description'+AccPB.Description__c); MyAcc = [SELECT id,name FROM account WHERE id=: AccPB.Account_Lookup__c LIMIT 1]; system.debug('*** ** *** Account Name'+MyAcc.Name); } } //** End of constructor
The VF page outputfield (or input) shows no value ...
<apex:pageBlockSectionItem > <apex:outputLabel >Product</apex:outputLabel> <apex:outputField value="{!accpb.Product_Lookup__c}"/> </apex:pageBlockSectionItem>
So ... I must be overlooking something .. but what ...
Log In to reply.
Popular Salesforce Blogs

Working with Apex in JetForcer IDE: Offline validation, quick-fixes, refactorings and powerful code completion.
If you haven’t yet tried the newly-released JetForcer 1.0, now definitely is the time for that. Let's take a closer look why it is a…

4 Security Mistakes to Avoid in Salesforce
76% of IT security leaders say they've experienced a data breach in at least one of their business systems. Needless to say, it’s important to follow…

Control Salesforce Lightning Tabs With Next & Back Buttons
Hello, In this post, we are going to create a sample lightning component to control <lightning:tab> with Next and Back buttons. In this code we…
Popular Salesforce Videos
Parent to Child SOQL vs Map | Salesforce Training in Apex
Watch this video to learn all about Parent to Child SOQL vs Map. Do let us know in the comment section if you have any…
myTrailhead Product Filters | Salesforce Tutorial Video
Salesforce myTrailhead has now released their next update in product filters. You can now create your own product filters that are relevant to your business…
4 Key Highlights From the Dreamforce Keynote Event
Let's straightaway take a jump on the announcements – from Hyperforce, Einstein Automate, Service Cloud Workforce, and huge acquisitions – presenting you a summary of…