Hi,
I have two databases on two different servers.
For example server1 with db A and server 2
With db B.
I want to merge all models from db A to db B using script.
Can any one suggest how this can be sone.
Thanks in advance.
Hi Sunil,
if you want to use a report script, you can use the "Merge" report API returned by the following call
Context.getComponent("Merge")
Both databases have to be on the same server.
if you want to use a macro script, you can use the macro Merge API, this is especially helpful in ARIS 7.x to merge data from different servers. You first log into the 2 databases using
var database = Explorer.login(p_serverName, p_dbName, p_userName, p_userPassword, p_dbLang, p_filterId)
afterwards you use
var options = Merge.createMergeOptions()
var mergeMacroResult = Merge.startMerge( sourceElementsFromDb1[], targetDatabase, options)
ARIS 9 does not allow access to other servers than the current.
BR,
Torsten
Hi Torsten,
var gLang = Context.getSelectedLanguage();
var entireMethodFilter = <entiremethod guid>; var srcDb = Explorer.login("servername","KT Session - Test","system","manager",gLang,entireMethodFilter); var targetDb = Explorer.login("servername","T ArisToVisioABP","system","manager",gLang,entireMethodFilter); var dbArray = [srcDb,targetDb]; reportInfo = Report.createExecInfo("reportguid", dbArray, Context.getSelectedLanguage()); result = Report.execute(reportInfo, false,true); after executing this macro in the report when i use var oDbs = ArisData.getSelectedDatabases(); i am getting only one database from the dbArray which is passed in the macro. Can you please suggest if this is correct. Thanks in advance.