You need to sign in to do that
Don't have an account?
Fighterneversetback
Hi Guys, I tried adding a column in which the data is in readable form and when it is clicked we can edit that data something like editable link on readable data. I tried using following code but was shown error. Can someone please help?
Error I am getting is: SObject row was retrieved via SOQL without querying the requested field: LLC_BI__Loan__c.LLC_BI__CloseDate__c
My Visualforce Page:
<apex:column HeaderValue="Projected Closing Date">
<!-- <apex:outputLink value="/{!a.loanObj.LLC_BI__CloseDate__c}" target="_blank">{!a.loanObj.LLC_BI__CloseDate__c}</apex:outputLink> -->
<apex:outputLink value="/{!a.loanObj.Id}" target="_blank">{!a.loanObj.LLC_BI__CloseDate__c}</apex:outputLink>
<!-- <apex:outputLink rendered="{!isEdit}" value="/{!a.loanObj.Id}" target="_blank">{!a.drownReq.Loan_Name__r.LLC_BI__CloseDate__c}</apex:outputLink> -->
</apex:column>
My Apex Class:
Query has been done on Child class.
The field I want to show is of Parent class and the query has been done on child class(M-D relationship). I tried checking the whole code but could ot find the problem.
My Visualforce Page:
<apex:column HeaderValue="Projected Closing Date">
<!-- <apex:outputLink value="/{!a.loanObj.LLC_BI__CloseDate__c}" target="_blank">{!a.loanObj.LLC_BI__CloseDate__c}</apex:outputLink> -->
<apex:outputLink value="/{!a.loanObj.Id}" target="_blank">{!a.loanObj.LLC_BI__CloseDate__c}</apex:outputLink>
<!-- <apex:outputLink rendered="{!isEdit}" value="/{!a.loanObj.Id}" target="_blank">{!a.drownReq.Loan_Name__r.LLC_BI__CloseDate__c}</apex:outputLink> -->
</apex:column>
My Apex Class:
Query has been done on Child class.
The field I want to show is of Parent class and the query has been done on child class(M-D relationship). I tried checking the whole code but could ot find the problem.
do you mind to double check your apex controller class. The error message is showing that the 'LLC_BI__Loan__c.LLC_BI__CloseDate__c' is not in your SOQL query. If you don't mind, you can share the apex code here
Hi,
Please try this to __r like: 'LLC_BI__Loan__r.LLC_BI__CloseDate__c'
And make sure you have query on LLC_BI__CloseDate__c.
Regards,
Suraj
Please suggest.
Kindly post your code snippet here.
Thanks