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

Case Hierarchy View



I'm trying to reproduce the case hierarchy view to show parent and child cases on a single list. I have been able to write the controller to get the values for all the cases in the necessary order. However, I'm having a hard time indenting the case number column for the child cases.


Any suggestions?





Venkat PolisettVenkat Polisett


Try this below code. It assumes that you are passing a level field with the data.


<apex:pageBlock tabStyle="Case">
	<apex:pageBlockTable value="{!Cases}" var="c" rowClasses="odd,even" width="100%">
		<apex:column headerValue="Case" >
		<p style="margin-left:{!c.level}em;">
			<apex:outputLink value="/{!c.Id}">

		<apex:column value="{!c.xxxx}"			headerValue="xxxxxxxx" />
		<apex:column value="{!c.xxxx}"			headerValue="xxxxxxxx" />









Pedro, can you post the code that you used to re-create the case Heirachy view? Also, did the indent code above work for you?