-
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 constructor
The 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
Learn All About Apex in Salesforce | The Developer Guide
What is Apex in Salesforce? Apex is a strongly typed, object-oriented programming language that allows developers to run flow and transaction control statements on Salesforce…
How to Get Public Link for Salesforce File
Documents/reports which are appended in the record are put away as Salesforce File. Salesforce File is utilized to share and work together on transferred records,…
Introduction to Queues in Salesforce
Queue! You might have heard this word in Data Structures but do you know Queue in Salesforce? Let’s understand Salesforce Queues in this blog. What…
Popular Salesforce Videos
Hello (Salesforce) World - An introduction to Tableau Developer
Hello, Salesforce world! Curious about Tableau (the newest member of the Salesforce family), our developer platform and suite of developer tools available? Whether you are…
What is Campaign Member in Salesforce? | How to add Leads and Contacts in Campaign object's record?
This video explains Campaign Members in-depth. Let's discuss the following things in this video: 1. What is the significance of Campaign members in Salesforce? 2.…
Salesforce Trailhead - Control Access to Fields
In this video, Your Coding Buddy covers how to control access to fields in Salesforce Trailhead. He explains that this is important for keeping data…