KM

I've been converting our VBSCripts to JavaScript

How would the ActiceXObject be implemented in an ARIS script(JavaScript).

I've got the below code but it keeps returning an "ActiveXObject" not defined error

var oFSO = null;//Dim oFSO As Object

FSO = new ActiveXObject("Scripting.FileSystemObject");//Set oFSO = CreateObject("Scripting.FileSystemObject")

    

var dicIniSections = null;//dim dicIniSections as Object

dicIniSections = new AcitveXObject("Scripting.Dictionary");//set dicIniSections = CreateObject("Scripting.Dictionary")

 

by Torsten Haase
Posted on Tue, 05/31/2011 - 17:14

You do not need any OS-dependent ActiveX objects any more. In our JavaScript implementation you can use (almost) every Java class from J2SE, where you'll find objects for every task. Additionally you can use your own JARs from a script.

For example for file system operations, you'll find objects in java.io, especially java.io.File.

The "Dictionary" object behaves the same as java.util.HashMap which is uesed the following way:

var dicIniSections = new java.util.HashMap()

dicIniSections.put("key1", value)

dicIniSections.put("key2", value2)

var val = dicIniSections.get("key1") //or use .containsKey("key1"), .containsValue(value2),...





 

 

0
by Ilya Seletkov
Posted on Mon, 04/01/2013 - 13:17

Hello!

But what I have to do if I need to work with excel and word classes and methods? For example selection; remove, copy tables; find   and so on?

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock