Skip to content

RatanPaul/sObjectHierarchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

sObjectHierarchy, AccountHierarchy (Any sobject with self relationship )

Any sobject with self lookup relationship.

Demo link

Installtion Package

Website

<apex:page standardController="Account" standardStylesheets="false" showHeader="false">
    <apex:form >
        <c:RN_sObjectHierarchy sObjectName="Account" relationshipFieldName="ParentId" sObjectId="{!account.Id}" sObjectFields="Name, Phone, Type, AccountNumber, Rating"/>
    </apex:form>
</apex:page>

Account hierarchy

<apex:page standardController="contact" standardStylesheets="false" showHeader="false">
    <apex:form >
        <c:RN_sObjectHierarchy sObjectName="contact" relationshipFieldName="ratan__ParentContactId__c" sObjectId="{!contact.Id}" sObjectFields="Name, Phone, Email, Title"/>
    </apex:form>
</apex:page>

Note: Here ratan__ParentContactId__c is a custom field(self lookup) on Contact sObject.

Account hierarchy

Source:-https://github.com/khan4019/tree-grid-directive

About

Any sobject with self lookup relationship.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages