Author Topic: API support for Export/Import Reference Data  (Read 5722 times)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
API support for Export/Import Reference Data
« on: April 23, 2007, 02:12:59 am »
There are methods for exporting and importing package XMI, as well as transformations and imports (forward and reverse engineering), but reference data seems to be unsupported.

Methods for doing this - probably via the Repository object - would be welcome.

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8157
  • Karma: +231/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #1 on: April 23, 2007, 02:23:20 am »
Seconded (and Thirded)
(vote early and often!  ;D)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

fr3sh

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • drop it like it's hot baby
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #2 on: April 23, 2007, 02:41:50 am »
vote... i need it  :(

salayande

  • EA User
  • **
  • Posts: 224
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #3 on: April 24, 2007, 10:40:46 am »
API support for reference data is valuable. I support this.

pmullin

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #4 on: November 21, 2007, 08:01:14 am »
I vote for this one too.  

Disseminating updated reference data to multiple users is a real pain.  There does not appear to be any sensible way to do this when using private EAP files that are synced via version control.   Ideally, this data should be part of the root package, so that it can be included in VC updates.   Short of this, writing an add-in to do the import would be reasonable, if the APIs were available.

thomaskilian

  • Guest
Re: API support for Export/Import Reference Data
« Reply #5 on: November 21, 2007, 08:10:36 am »
Me too!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2898
  • Karma: +52/-3
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #6 on: November 21, 2007, 01:46:24 pm »
Unsupported, undocumented, 7.0.818 and later:

Repository.CustomCommand("Repository", "ImportRefData", sXML)

or

Repository.CustomCommand("Repository", "ImportRefData", sFilename)

:-X
The Sparx Team
support@sparxsystems.com

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #7 on: November 21, 2007, 04:04:38 pm »
Quote
Unsupported, undocumented, 7.0.818 and later:

Repository.CustomCommand("Repository", "ImportRefData", sXML)

or

Repository.CustomCommand("Repository", "ImportRefData", sFilename)

 :-X

But it is a beginning Neil.

Any way to filter what you export and import? Or do we just end up dumping everything, and replacing everything on the other side?

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8157
  • Karma: +231/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #8 on: November 21, 2007, 08:53:39 pm »
Quote
But it is a beginning Neil.

Any way to filter what you export and import? Or do we just end up dumping everything, and replacing everything on the other side?

David
Just to be clear, import is additive.  If the item already exists, then it's updated.  If its new, it's added.  If it was deleted - too bad...  It's still in the target.

There is no "true" replace this set with that set - as with package import...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #9 on: November 22, 2007, 12:00:45 am »
And it will be very nice to Version control Reference data from EA.

It has a
 big   + nice control in the same way as packages
 small - necessity to check out Reference data before modifying them.
Peter

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: API support for Export/Import Reference Data
« Reply #10 on: November 22, 2007, 04:41:20 am »
So, a desirable option would be to replace or refresh the settings. Of course this should be a parameter in the API call as well.

David
No, you can't have it!