Forum Discussion
16 Replies
- Zahar_ChernovCreator IIcordially, What source code you want to access? Do you have specific needs that are not covered by Aras core code?
- Former_MemberAccelerator IIIFirst of all, thank your for your response. I want to access to IOMCredentials Class for example to know how ARAS ensure connexion to server and database and how can i extract data from database? Is the a way to access to soure code? what should i do or download? cordially.
- Zahar_ChernovCreator IIServer side code is not open. Just to understand your needs, you wrote that you are new to Aras. So I'm wondering, are you learning Aras development (and just want to view the code to understand something) or you already trying to solved some development task? Maybe if you will ask specific question it will be much easier to help you.
- Former_MemberAccelerator IIII am learning Aras development and i am devoloping a connector for OpenOffice. I create a plugin that allows the display of a toolbar in LibreOffice wish have two commands that allow users to connect to aras Database and to search for document objects. So i should implement a command allowing users to connect to ARAS database and another allowing the search of objects of documents type.
- Zahar_ChernovCreator IIOK, To be able to connect to Aras you need to (my assumption that you using C# and Visual Studio):
- add to your project reference to IOM.dll (you can find it in server\bin folder of your Innovator installation)
- Then use following code
Innovator inn = null; HttpServerConnection innServConn = IomFactory.CreateHttpServerConnection({INNOVATOR URL}, {DB NAME}, {username}, {password}); Item loginResult = innServConn.Login(); if (loginResult.isError()) throw new Exception(loginResult.getErrorString()); else this.Innovator = loginResult.getInnovator();
- Former_MemberAccelerator IIIin" this.Innovator = loginResult.getInnovator(); " this references to inn ?? When running the program, how can i test if connection is successfully completed? thank you.
- Zahar_ChernovCreator IIFollowing row give you connection status:
Item loginResult = innServConn.Login();
So loginResult is Aras Item... that has a function isError()... if this function return false - connection is not established. If you want to show user why it not established call function getErrorString() (of the object loginResult ) and show the result to user. About:this.Innovator = loginResult.getInnovator();
Yes - my mistake, it was supposed to be:inn = loginResult.getInnovator();
But probably you will do the same... the inn will be class property and not inside your connection function, cause you will need this object in the second function - where you query Aras for the document. - Former_MemberAccelerator IIIwhat does mean by loginResult.getInnovator(); the getInnovator() will return wich informations?
- Zahar_ChernovCreator IIAras Innovator Class object. You can read about Innovator object in Programmers Guide section 3.2
- Former_MemberAccelerator IIIthank you very much for your reactivity. Now, how can I query Aras for the document. because i want to display document from the DB to OpenOffice