function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SolidLucasSolidLucas 

query help

well guys i have a doubt about how to query parameters fields, those fields that we select they parameters value. i want a field that is a parameter search type, but i don't know who return his value on my visualForce page i've did it a select to see if my query is right and only return my field id.

someone could give me a example how to do those queies? 

Thanks,Lucas!

mjohnson-TICmjohnson-TIC

apex code

public Account getAcc(){
Account a = [Select Id, Name, CustomField__c from Account LIMIT 1];
return a;
}

visualforce code

<apex:outputfield value="{!Acc.Name}"/>
<apex:outputfield value="{!Acc.CustomField__c}"/>