function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page controller="ConCntrl"> <apex:detail subject="{!con.Id}" relatedList="false" title="false"/> </apex:page>
public class ConCntrl { public Contact con {get;set;} public ConCntrl(){ con = [Select Id,Name from Contact where id =:apexpages.currentpage().getparameters().get('id')]; } }
/apex/COnpage?id=0036A00000OYyK8QAL
VisualForce error bro
System.QueryException: List has no rows for assignment to SObject
Class.apex6.<init>: line 4, column 1
You need to pass valid ContactRecord ID in URL like below
/apex/Cnnpage?id=0036A00000OYyK8QAL