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
Dear Mayur,
Did you check ARIS help on http://localhost/abs/help/en/script/ba/index.htm#report_OBJECTS_ArisData... (link is external)?
There are some variants of the function openDatabase.
Cheers
Rune
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.
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.