cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

ACL recursive function to get all children of a parent tag

dgopois
13-Aquamarine

ACL recursive function to get all children of a parent tag

Hello,

With Arbortext Command Language, How to write a function to get all children of a parent tag ?

David

ACCEPTED SOLUTION

Accepted Solutions
plutsky
14-Alexandrite
(To:dgopois)

If you want a recursive function to return all elements of a document, look at the code in the oid_children ACL function and modify it as needed. 

However, if you want a list of all elements in a document, you can get the list with code like this

global arr1[]

oid_find_children(oid_null(), $arr1, '.*', 0x08)

 

 

 

View solution in original post

2 REPLIES 2
plutsky
14-Alexandrite
(To:dgopois)

If you want a recursive function to return all elements of a document, look at the code in the oid_children ACL function and modify it as needed. 

However, if you want a list of all elements in a document, you can get the list with code like this

global arr1[]

oid_find_children(oid_null(), $arr1, '.*', 0x08)

 

 

 

dgopois
13-Aquamarine
(To:plutsky)

Thank you for your response

Announcements

Top Tags