-
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
Automation in Financial Services Cloud: 7 Automated Processes for FinTech
Digital-first customers dominate financial services — and they aren’t very satisfied. While many consumers have become accustomed to conducting their financial transactions online due to…
How to Become a Freelance Salesforce Consultant
Ask any freelancer out there what they love about freelancing. The first thing they tell you is the room to work flexibly, remotely, and how…
Salesforce Cloud Platform
Old business management systems are fading due to their firm consistency on conventional approaches and manual efforts. Due to constant failures experienced, there is an…
Popular Salesforce Videos
MuleSoft Integration: GoToWebinar to Salesforce - Learn Salesforce Series
In this video, you will learn how to use MuleSoft integration platform to transfer attendees data from GoToWebinar to Salesforce- 1. Set up GoToWebinar account,…
Customer Overview: How Our Customer Used Salesforce Industries i.e Vlocity For It’s Business?
Let's have a glance at our customer success story to understand what is Salesforce Industries in detail. Watch this video and do let us know…
Creating leads using Amazon Alexa with salesforce.
Amazon EchoAmazon Echo is a voice command device with functions like question answering, playing music and controlling smart devices. Echo connects to Alexa which is…