Get parent object of current object! Help would be appreciated!

Hello,

How would I get about creating a DXLLayout attr. to show the text of the parent object. I have done some searching is this a built in function in DXL get the parent object of your current object?

-Jim
e.g.
Object Text DXLLayout Attr
-----------------------|----------------|
1 | |
-1.1 | |
--*Start parent(1) | |
---*Some text (A) |*Start parent(1)|
---*Some text (B) |*Start parent(1)|
---*Some text (C) |*Start parent(1)|
---*Some text (D) |*Start parent(1)|
---*Some text (E) |*Start parent(1)|
--1.3 | |
---*Start parent(2) | |
----*Some text (F) |*Start parent(2)|
----*Some text (G) |*Start parent(2)|
----*Some text (H) |*Start parent(2)|
SystemAdmin - Mon Jan 16 16:14:47 EST 2012

Re: Get parent object of current object! Help would be appreciated!
llandale - Mon Jan 16 16:25:34 EST 2012

The parent of an object is:
  • Object oParent = parent(obj)

There's been a couple threads lately on searching until you find a parent with actual heading.

"DXLLayout attr" is incorrect, either you are talking about a "Layout" displayed in a column and saved in a view, or an "AttrDXL" which is an actual attribute, which you can display in a view like other attributes. Both are constructed similary, but a Layout issues one or more "displayXX" commands, and an attrDXL issues one "obj.attrDXLName = Results" command.

-Louie

Re: Get parent object of current object! Help would be appreciated!
SystemAdmin - Mon Jan 16 17:43:03 EST 2012

llandale - Mon Jan 16 16:25:34 EST 2012
The parent of an object is:

  • Object oParent = parent(obj)

There's been a couple threads lately on searching until you find a parent with actual heading.

"DXLLayout attr" is incorrect, either you are talking about a "Layout" displayed in a column and saved in a view, or an "AttrDXL" which is an actual attribute, which you can display in a view like other attributes. Both are constructed similary, but a Layout issues one or more "displayXX" commands, and an attrDXL issues one "obj.attrDXLName = Results" command.

-Louie

Thank you.

I tried that earlier but must of fat fingured something....
-Jim