-
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
Top 10 Pardot Features - Salesforce Winter '22 Release
Salesforce has released the Winter ’22 release notes recently. As expected the new release is jam-packed with amazing features. Our team has curated the top…
How Salesforce Pardot AI Boosts Email Engagement? | Learn Here
Email marketing is getting more and more competitive with businesses looking to improve their email marketing by increasing the click-through rate (CTR) and conversions. While…
Optimize Costs and CRM With Salesforce Managed Services
Salesforce is a powerful cloud-based CRM tool trusted by businesses worldwide, including start-ups, small and mid-sized enterprises, as well as Fortune 500 companies. It leverages…
Popular Salesforce Videos
See the Future of APIs at Salesforce
Salesforce APIs are a way for other applications (or code in other applications) to programmatically access data within your Salesforce org, in a simple and…
Salesforce Steps Into Crypto With New NFT Cloud
Salesforce keeps surprising us with its new updates and features. It’s official – Salesforce has launched its NFT Cloud pilot. Click the link to know…
Translation Workbench | Salesforce Tutorial
One of the most common questions new Salesforce admins ask us is how can they translate custom terms when their org is in multiple languges?…