Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Helmut Ortmann

Pages: 1 ... 48 49 [50] 51 52 ... 59
736
Hi,

sometimes when JScript don't offers a feature which is available in VBScript you can call a VB Script from JScript.

Some times ago I have done it with waiting for a period of time. The example I got somewhere on the internet. You may even dynamically create the VB script and then call it from JScript.

Ok, it might require some digging in the internet.

Helmut

737
Hi,

the following code works in EA JScript:

var txt = Session.Input("Input value");
Session.Output(txt);


Session is an Object provided and documented by EA (see Online Help).

Helmut

738
Hi Christer,

I think that's just a JScript Problem. With prompt() method it should work.

see:
http://www.w3schools.com/jsref/met_win_prompt.asp
or other sides.

Helmut

739
Automation Interface, Add-Ins and Tools / Re: Tagged Values
« on: July 11, 2014, 11:07:43 pm »
Hi Jon,

as far as I know there are no special integrity rules for Tagged Values implemented in EA.

You may use one of the Events in an Addin to make checks (disconnect, Context Element Changed,..).

Helmut

740
Automation Interface, Add-Ins and Tools / Re: Cloning of an element
« on: July 11, 2014, 11:20:18 pm »
Hi Clemo,

the element don't contains any .Clone() method.

Only the package contains a .Clone() method. Because you can only call this method from a package there is no chance to clone an element alone.

You may do the following:
- Create a new empty package
- Move element to empty package
- Clone package
- Move old element back to his old location
- Move/rename cloned element to the wanted location

Helmut

741
Automation Interface, Add-Ins and Tools / Re: Cloning of an element
« on: July 11, 2014, 01:09:32 am »
Hi q,

great. There is always something to learn.

Helmut

742
Automation Interface, Add-Ins and Tools / Re: Cloning of an element
« on: July 10, 2014, 10:33:40 pm »
Hi Clemo,

you may try export/import via API. It may work but I haven't tried it before.

Cloning a Package don't looks as an easy tasks. There are a lot undocumented features used in EA and it will properly take you some time to get a general clone working.

If you know the possible package content then it might be possible (reducing of complexity to your issue).

Try to search the forum for example Clone.

If you find a solution please post it hear. I think there are some people also interesd in a viable solution.

Helmut


743
Automation Interface, Add-Ins and Tools / Re: Cloning of an element
« on: July 10, 2014, 07:21:12 pm »
Hi Clemo,

cloning a package is quite simple.

1. Package Browser
Use Copy and Paste for a package. The package and the nested packages are cloned.

2. Export / Import *.xml
Copy Package (recursive) to XML and import it at another location in the project tree. At start of import don't forget to click on Strip GUID. The result is:
The package is cloned to the new location. Each element is new but has the same features as before.

Helmut

744
Automation Interface, Add-Ins and Tools / Re: Generic Database Query
« on: July 11, 2014, 08:20:51 pm »
Hi,

that was the way I did until I got aware of repository.RepositoryType().

Helmut


745
Automation Interface, Add-Ins and Tools / Re: Generic Database Query
« on: July 10, 2014, 10:26:46 pm »
Hi,

as far as I remember is the connection string good for non JET databases. The problems are *.eap shortcuts.

As far as I remember you don't have this problem with repository.RepositoryType().

Helmut

746
Automation Interface, Add-Ins and Tools / Re: Generic Database Query
« on: July 09, 2014, 09:22:30 pm »
Hi,

ask SPARX why it is this way.

Macros like #WC# only works in EA Searches. Quick search via SQL tab or via API only works with poor SQL for the database you work against.

If you choose API you may change the SQL string dependent the current repository you are working with.

A good introduction to SQL-Query for EA you find in Thomas Kilians eBook InsideEA.  

Helmut

747
Automation Interface, Add-Ins and Tools / Re: Generic Database Query
« on: July 09, 2014, 08:26:10 pm »
Hi,

that should work with all supported database.

But keep in mind: You have to define a Search and not just change the tab from Search Builder to SQL. The SQL have to be in the "Search tab".

The EA standard Search 'My Checked Out Packages' shows it.

The easieast way is to copy an SQL Search like the above and change the SQL string.

Helmut

748
Hi,

repository.ShowInProjectView (object Item)
will do the job.

The complete documentation you find in the F1 help under:
Automation and Scripting, Enterprise Architect Object Model, Reference, Repository.

Helmut
 

749
Hi,

try Thomas Kilians ebook InsideEA and/or search in the EA help for SQL AND QUERY.

Ctrl+F and then F1 in EA will also guide you to the EA Search Help.

Helmut

750
Hi,

you may write a Query (SQL or Addin) and export the resukts to *.csv. Then you may visualize the results in Excel.

With an Addin you can automize the whole process.

To get conveyed Information Items from a connector is a little bit tricky. This forum contains some threads about how to get them.

Helmut

Pages: 1 ... 48 49 [50] 51 52 ... 59