Book a Demo

Author Topic: API export and import queries and views  (Read 5453 times)

aloeffen

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
API export and import queries and views
« on: May 30, 2013, 09:59:35 pm »
Dear EA people,

I'd like to access the model searches of EA through the API, for inspection (what searches are defined), export to XML and import from XML (as also available through the GUI).

Also I'd like to have access to the model views for the same type of operations.

For API based export/import of XMI this is well documented, but I cannot find such calls for the functions described above.
Any suggestions (examples)?

Thanks,
arjan

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: API export and import queries and views
« Reply #1 on: May 30, 2013, 10:35:54 pm »
You need to extract t_script.Notes and match <type> to be MODELSEARCH.

See section 6.5 of my Inside book.

q.

aloeffen

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: API export and import queries and views
« Reply #2 on: May 30, 2013, 11:15:56 pm »
Thanks, and well done, I bought the (2) books :-)
I'm looking at a steep learning curve...
arjan

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: API export and import queries and views
« Reply #3 on: May 30, 2013, 11:41:45 pm »
Thanks too :-) Any feedback is welcome. My mail address is in the book.

q.