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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Linking Java and Arbortext

pzorrilla
1-Visitor

Linking Java and Arbortext

Hello gurus!

Today I'm having a problem with some of my java methods, I created an
Arbortext button which calls through aDocument doc = Acl.getDOMDocument("0");
getElementsByTagName("Sect1");

childsByTag.getLength());
for(int i=0; i < childsByTag.getLength(); i++){
this.getNodeContent(node,");
childByTag node that I have found in my first oid_find_childrenoid,root_children_arr,"SectX") < in java and get the
elements of the root_children_arr, in order to process them in a
recursive function.

Please if anybody could help me I would be pretty grateful. As always I
really appreciate your time, help and support.

Regards,
Paulette

2 REPLIES 2

You could either iterate through the DOM itself, or just use an XPath to
get a set of applicable nodes.

For XPath, you'll also need to add some helper functions, as XPath support
isn't native, but can be exposed through ACL.

See example:

trick I would think.


On Wed, Feb 27, 2013 at 12:30 PM, Paulette Zorrilla <
paulette.zorrilla@oracle.com> wrote:

> Hello gurus!
>
> Today I'm having a problem with some of my java methods, I created an
> Arbortext button which calls through a dlgitem_add_callback command a
> java method, this method will ex...






























Thank you! It works now using Ac.lfun(...) 🙂

Announcements

Top Tags