You need to sign in to do that
Don't have an account?
Dave Berenato
Pull Select Query Record into Visualforce Page
I'm looking to display fields from an Account record (including fields from Lookup Objects that the Account is the child record for) and I'm probably missing something super simple but here is my class:
And Visualforce Page:
Error is: "Unknown Property "FileReview.acc"
I tried to write "return acc;" underneath the Apex class but got "Expecting '}' but was: 'return' "
public class FileReview { public FileReview() {myId = ApexPages.currentPage().getParameters().get('id');} public string myId {get;set;} Account acc = [Select Id,Name FROM Account Where Id = :myId]; }
And Visualforce Page:
<apex:page Controller="FAIRFileReview" showheader="false"> {!acc.Name} </apex:page>
Error is: "Unknown Property "FileReview.acc"
I tried to write "return acc;" underneath the Apex class but got "Expecting '}' but was: 'return' "
Page