Profile picture for user MayurPatel

Hi,



I've imported a script from ARIS 7.2 to 9 and used the openDatabase method with the user details i.e.



var testDB = ArisData.openDatabase(gActiveDB.Name(lng), "Username1", "Password1", "v05434590-d2d0-21e2-8e5d-12d906757rt9", lng)



But this function breaks in ARIS 9 as it no longer exists.



How do I log in to a database with a different user in a script?  Th emain reason I need this is for folder permissions and to edit non editable attributes.



Thanks

by Mayur Patel Author
Posted on Sat, 10/18/2014 - 06:42

Hi,

I have. There are fewer open db commands in ARIS 9 and none have user credentials in them. I think it's because the way users are managed has changed.



A confusing point for me is in the actual openDatabase help, the source code comment mentions logging in as system but there isn't any reference to system in the actual code statement.

0
by Mayur Patel Author
Posted on Mon, 10/20/2014 - 11:06

Hi Rune,



Thanks for the assist.  I managed to get it working when testing the openDatabase command.



As suggested by the source code comment, if you log in with the openDatabase command, you dont need to provide any credentials as in ARIS 7, rather ARIS automatically logs you in with the ssytem user(as can be verified by the ActiveUser method).  This allows you to edit non-editable attributes as you require.



Not sure how to mark posts as closed. but this one is resolved and can be closed.

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