-
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
Salesforce Data Migration Process
Best Practices for Data Migration The process of migrating data in Salesforce Project appears to be an easy task for Salesforce Developers but it’s not…
CRP Analyst App on Salesforce AppExchange by GetOnCRM Solutions
We have successfully launched CRP (Cost, Revenue, Profit) analyst application on AppExchange. GetOnCRM Solutions is proud to announce that we have successfully launched the CRP…
Steps to Hire a Salesforce Support and Maintenance Consultant: A Comprehensive Guide
Salesforce, a powerful CRM platform, requires ongoing support and maintenance to ensure optimal performance, security, and alignment with your business goals. Hiring a skilled Salesforce…
Popular Salesforce Videos
What is a Salesforce Architect?
If you are not familiar with the ‘Solution Architect’ role then it can be explained relatively simply. Solution Architects are ultimately responsible for the ‘Solution’…
Salesforce Maps Tutorial
Salesforce Maps is the functionality from Salesforce that allows your Sales team to more effectively manage their accounts within their territories. Watch this video to…
Clean Code in Salesforce | Code Review
We spend more time reading our code than writing it. So doesn't it make sense that our code is clean, precise, and easy to read?…