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

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Passing an ACL Array of Unknown Size

ptc-982331
1-Newbie

Passing an ACL Array of Unknown Size

Hello Adepters,

I can't seem to figure out how to pass an array of unknown size using ACL and I was hoping maybe somebody could help me out. The size of the arrary varies depending on the number of CMS objects that the document contains.

local children[];
poid_list_children(logicalID, children);
java_static('com.kencook.arbortext.PackageXML','getChildren', children[]);

Arbortext gives me this error when I try to pass the children[] array to my java method:

"[ A11317] Unexpected operator: ])"

Thanks in advance,

Ryan



2 REPLIES 2

Hi Ryan--

Java doesn't grok ACL arrays directly, and vice versa, so you have to use functions to convert ACL arrays to Java (and back again, if you need to). Look at the online help for information on the java_array_from_acl() and java_array_to_acl() functions.

--Clay

Thanks Clay. I knew that I was overlooking something.