You need to sign in to do that
Don't have an account?
Initial term of field expression must be a concrete SObject
Quote__c is lookup in SSOW__c. I am trying to get a id for a visualforce page. My code is paste below and this the error it is throwing
This is the part of the code. I defined SSOW intially in my code as
Error: Compile Error: Initial term of field expression must be a concrete SObject: LIST<SSOW__c>
public List<SSOW__c>SSOWs{get; set;}
public PageReference genSSOW() {
SSOWs=[select Id from SSOW__c where Quote__c =:quote.Id Limit 1];
PageReference ssowPage= new PageReference('/apex/Smartsow?Id=' +SSOWs.Id);
SSOWPage.setRedirect(true);
return SSOWPage;
}
Try this in your code
PageReference ssowPage= new PageReference('/apex/Smartsow?Id=' +SSOWs[0].Id);
Its give me this error
System.ListException: List index out of bounds: 0
I have to create a new record from that part .Is it still work that part or I have to do someting else