function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Peter CowenPeter 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;
}
}
Shikha AgashiShikha Agashi
Hi Peter,

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.