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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Javascript issues after upgrading from 5.3 to 6.0

ptc-4765794
1-Newbie

Javascript issues after upgrading from 5.3 to 6.0

I've currently upgraded from Arbortext version 5.3 to Arbortext 6.0 M100 and I'm having some problems with porting over our custom javascript/ACL.

One of these customizations is a simple function run when the document is first loaded that checks a couple attributes of the root note:

var actDoc = Application.activeDocument;

var docRoot = actDoc.getDocumentElement();

var rootName = "" + docRoot.getTagName();

Right now, docRoot is returning null which breaks the getTagName() call. Other exceptions in some of our other custom ACL also say:

Wrapped com.arbortext.epic.AclException: [A12653] The "detail" command is illegal for a text file.

All our custom code is running on 5.3 without hiccup. Are there any caveats/details I need to know about with custom javascript/ACL when upgrading from such an old version? I know Arbortext 5.3 used Rhino as a Javascript interpreter, did anything change there in the updaets maybe? I'm really lost here and would appreciate any input.

1 REPLY 1

Hi Kevin,

There were quite a few changes in behaviour between 5.3 and 5.4 (but less changes between 5.4 and 6.0).

Upgrading Arbortext Editor is only easy in cases where you have no customisations. In cases where the Editor environment is heavily customised then you often need to engage the services of an Arbortext expert. If you feel like becoming an Arbortext expert then you will need to at least have taken the basic training, and for your particular task I would recommend studying the 5.4 release notes and 6.0 release notes to get an idea of exactly what has changed and what is new.

Next steps would then be to study the customisations and understand what is being added to the Arbortext environment and why. That will then lead you to understand how to replicate those customisations in 6.0 (in some cases, customisations can even be removed due to features which have been added in 6.0).

In extreme cases it can take weeks or even months to correctly migrate from an old release to a new release of Arbortext. It really depends on the level of customisations and the version gap. BTW, there are a number of organisations specialising in Arbortext services, one of which is the company I work for (GPSL).

Sorry I can't be of more assistance but it sounds like someone will need to debug the customisation code.

Cheers,

Gareth

Top Tags