You need to sign in to do that
Don't have an account?
Peter Cowen
Button to assign existing cases
I would like to create a button that assigns existing cases. So far i have created a button that opens a new window and lists cases. The button errors as it expecting a ')' when all brackets are closed. I have blanked the URL's with [URL]
window.open ([URL])
<apex: column width="100px" headerValue= "ID" headerclass="TableTitle" value="{Case.Id}" />
<apex: Column headervalue="Name" headerclass="TableTitle" value="{case.subject}" />
<apex: outputLink> value="[URL]" />
<a id="Existing Cases">[URL]/ </a></Apex: outputlink>
<apex:page controller="datalistcon">
<apex:datalist> value="{Case.CaseNumber}" var="CaseNumber">
<apex:outputText value="{CaseNumber}"/>
</apex:dataList>
</apex:page>
public class dataListCon {
List<Cases> Cases;
public List<Cases> GetCases(){
if(cases == null) cases = [select CaseNumber, Subject from Cases Limit 10];
return Cases;
}
}
window.open ([URL])
<apex: column width="100px" headerValue= "ID" headerclass="TableTitle" value="{Case.Id}" />
<apex: Column headervalue="Name" headerclass="TableTitle" value="{case.subject}" />
<apex: outputLink> value="[URL]" />
<a id="Existing Cases">[URL]/ </a></Apex: outputlink>
<apex:page controller="datalistcon">
<apex:datalist> value="{Case.CaseNumber}" var="CaseNumber">
<apex:outputText value="{CaseNumber}"/>
</apex:dataList>
</apex:page>
public class dataListCon {
List<Cases> Cases;
public List<Cases> GetCases(){
if(cases == null) cases = [select CaseNumber, Subject from Cases Limit 10];
return Cases;
}
}
Please correct the way you are specifying object fields. {!case.Id}, {!Case.subject}. And see if this resolves your issue. For reference please check VisualForce Standard Component Reference Guide.