You need to sign in to do that
Don't have an account?
Kbhaskar
case redirects the user
Hi ,the below code shows case's with subject but when i click on the subject of the case the page directs the user to the detail page of the respective case record. but thats not happening below .does anyone knows about it ?
apex Class
apex/detailtag
apex Class
public with sharing class NewCaseListController { public List<Case> getNewCases() { List<Case> results = Database.query( 'SELECT Id,Subject, CaseNumber, Origin, Status, Account.Name ' + 'FROM Case ' + 'LIMIT 100' ); return results; } }apex page 1
<apex:page controller="NewCaseListController"> <apex:repeat value="{!NewCases}" var="Case"> <apex:outputLink onclick="/apex/detailtag?id={!Case.Id}"> <li> {!Case.subject}</li> </apex:outputLink> </apex:repeat> </apex:page>page 2(detail tag)
apex/detailtag
<apex:page standardController="case"> <apex:detail subject="{!case.userdetail}" relatedList="false" title="false"/> </apex:page>
modify ur code like this.....