I want to write a dxl code which checks the object's parent heading(object level 3) and writes in a separate column for all the child objects. Can anyone please help me with dxl command?
The simplest approach would be to create layout DXL column with the following approach
Object oParent = parent(obj)
if (!null oParent) {
if (!null oParent."Object Heading""") {
display oParent."Object Heading"""
}
}
You might want to augment the code with some conditions, like if/and level(obj) == 3
(i.e. only show something if the level of the CURRENT object is 3) or if/and (!null obj."Object Heading""")
(i.e. don't show the parent's heading if the CURRENT object owns a heading).