You need to sign in to do that
Don't have an account?
Displaying Hierarchy of a custom Object
Hi All
I have facing the problem when I am displaying the hierarchy of a custom object.
my requirement is:
If I am having the parent record parent1,under this we have the child records.
I need to display parent1 under this ineed to display
child1 if it is having the childs again, we need to display
child2
for this i wrote the code
controller:
page
<apex:page controller="udahierarchy" showheader="false">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!data}" var="k" rendered="{!showparent}">
<apex:column headerValue="Parent UDA Catalog ID">
<apex:commandLink value=" {!k.name}" action="{!udadata1}">
<apex:param name="oid" value="{!k.id}"/>
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!data1}" var="c" rendered="{!showchild}">
<apex:column headerValue="UDA Catalog Child">
<apex:commandLink value=" {!c.name}" action="{!udadata2}">
<apex:param name="kid" value="{!c.id}"/>
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!data2}" var="c1" rendered="{!showchild1}">
<apex:column headerValue="UDA Catalog Childs" value="{!c1.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
This code is working
But i need design part like this
when we click on the parent ,it will display the child,& click on child it will display the childs. without closing the parent window, means with in the parent only we have to diplay the childs(i.e without having too many pageblock tables)
pls help me
Thanks & Regards
Anu....