-
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 constructorThe 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
4 Major Advantages of Salesforce Einstein Analytics for Sales Managers
For many years, most of the Salesforce users were using reports and dashboards to quickly look up their data, perceive performance, and communicate results. But…
Salesforce CPQ Certification: The Key to Unlocking Endless Career Opportunities!
Are you looking for a lucrative career in the field of Salesforce? Do you want to stand out among the crowd of applicants and earn…
Salesforce Leads vs. Contacts: Everything You Need to Know
Understanding the difference between Leads and Contacts is imperative for marketing strategies and effective sales. These two objectives influence tracking prospects, managing relationships, and closing…
Popular Salesforce Videos
Salesforce Developer No Code and Code - Extended Version
Here you will find a showcase of new technologies, tools, product news, and tutorials from Salesforce experts. Learn to build, automate, and scale on the…
Good Time To Buy Salesforce Stock? CRM Stock Analysis
CRM stock price is currently all over after reporting its SALESFORCE earnings report. I am considering if I should buy CRM Stock. This is a…
Salesforce On-Demand Administrator
Apphienz's On-demand Administrator delivers much more than the company's expectations. It is hands-on, makes the work easy, efficient and productive along with being available to…