-
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

Salesforce Testing VS Other Testing
Testing is the foremost important aspect when it comes to software development. It lets developers know whether the software is working as expected. It helps…

All You Need to Know About Reports and Dashboards in Salesforce
Dynamic Dashboard – An Overview A unique dashboard is a powerful device to break down business measurements for all intents and purposes. It permits organizations…

All you Need to Know About No Code Salesforce and Aircall Integration
If you're looking for a way to improve your customer service and sales process, you should consider integrating Aircall with Salesforce. Aircall is a cloud-based…
Popular Salesforce Videos
How To Set Up DKIM Key In Salesforce?
If you use Salesforce for sending emails, we highly recommend setting up DKIM authentication to sign your outgoing messages and improve their deliverability and trustworthiness.…
How To Become A Salesforce Admin?
Wondering how t become a Salesforce Admin. Watch out for this tutorial video, it will answer all your questions. Join this useful group for Salesforce…
Salesforce is planning a blockchain product?
Salesforce is planning a blockchain product. That news alone would usually coincide with positive market moves, but in a diluted crypto market that isnt the…