Skip to main content
17 events
when toggle format what by license comment
Jul 22, 2016 at 14:09 comment added user26057 Absolute Legend (y)
Jul 22, 2016 at 14:08 vote accept CommunityBot
Jul 22, 2016 at 13:42 comment added Subash Chandrabose Please add your SOQL Query Account__r.Name field
Jul 22, 2016 at 12:39 comment added user26057 yes I did i comes with a following message: SObject row was retrieved via SOQL without querying the requested field: Service_Instance__c.Account__r. I noticed in system debug that those fields dont show on the console just the id's of the objects . Do I need to declare them somehow at the top ? Opportunity and account
Jul 22, 2016 at 12:34 history edited Subash Chandrabose CC BY-SA 3.0
deleted 4 characters in body
Jul 22, 2016 at 12:33 comment added Subash Chandrabose Its fine. you'll replace outputField into outputText
Jul 22, 2016 at 12:29 comment added user26057 <apex:outputField value="{!ServiceIns.Account__r.Name}" /> <apex:outputField value="{!ServiceIns.Opportunity__r.Works_CSP__c}" /> <apex:outputField value="{!ServiceIns.Opportunity__r.Name}" />
Jul 22, 2016 at 12:29 comment added user26057 It works except it doesnt show up fields that are connected via __r for example
Jul 22, 2016 at 12:24 comment added Subash Chandrabose output panel rendered condition is updated. please update your code. @Greg
Jul 22, 2016 at 12:23 history edited Subash Chandrabose CC BY-SA 3.0
added 20 characters in body
Jul 22, 2016 at 12:14 history edited Subash Chandrabose CC BY-SA 3.0
added 7 characters in body
Jul 22, 2016 at 12:14 comment added Subash Chandrabose Please add public Service_Instance__c ServiceIns { get; set; } this line in your intialization section
Jul 22, 2016 at 12:10 comment added user26057 That error has now disappeared it comes up with a different one saying : "Unknown property 'GenerateNumber.ServiceIns" , any ideas ?
Jul 22, 2016 at 12:03 comment added Subash Chandrabose Sorry this is my small mistake. now check my updated answer @Greg
Jul 22, 2016 at 12:02 history edited Subash Chandrabose CC BY-SA 3.0
deleted 104 characters in body
Jul 22, 2016 at 11:59 comment added user26057 it comes up with the same comment as the last time which is : " Could not resolve the entity from <apex:outputField> value binding 'Building: {!ServiceIns.Terminal__c}'. <apex:outputField> can only be used with SObjects, or objects that are Visualforce field component resolvable."
Jul 22, 2016 at 11:44 history answered Subash Chandrabose CC BY-SA 3.0