-
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
How to Configure Salesforce Lightning Components for Custom Actions?
Custom Actions are Object-specific actions.Object-specific actions let users create records that have automatic relationships to other records, make updates to specific records, interact with records…
How to Enhance Salesforce’s Standard Email-to-Case Capabilities to Deliver Top-Class Customer Service in 2023?
“Happy customers are your biggest advocates and can become your most successful sales team.” – Lisa Masiello Did you know that 93% of customers are more…
Enhance Your Fundraising Efforts by Integrating Your Organization's System With Salesforce
As per Salesforce.org's Nonprofit Trends Report (3rd Edition), the pandemic forced 71 percent of organizations polled to speed up their transition to digital programs or…
Popular Salesforce Videos
DreamTX Welcome Day 3: Customer Success | Dreamforce 2020 | Salesforce
If you missed DreamTX DAY 2, then live this amazing experience here, we have covered it all for you. Digital transformation requires more than just…
Salesforce for Non Technicals | Salesforce for Non IT | Salesforce For Non Programmers
Wondering if Non-IT persons can learn Salesforce? Yes, watch this video and learn all you need to know. Do let us know in the comment…
5 Steps to Faster Case Resolution | Salesforce Support
When it comes to filling out a Salesforce case from, the description field and attached files are key to fast routing and resolution. Here are…