Book a Demo

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 - bachristus

Pages: [1] 2
1
Quote
Let us know if you find out.
I can imagine I would need that one day as well.

Geert

It looks like overriding Control.OnHandleDestroyed() is doing the job!  :o

2
Quote
Could be that one of the standard .Net control events is being triggered, but that is something you would have to test.
I don't think there's an EA specific event that you can use.

Geert

I already tried a few of those. None fired. But i will keep trying  :o

3
How to know the EA tab was closed? Is there any event I can use to know when user closed my custom tab in EA?

I need to release some resources when tab is closed and I dont know the moment to do this. Have not found any method in (RT)FM! :-)

4
Automation Interface, Add-Ins and Tools / Re: Connection strings
« on: November 28, 2011, 10:46:24 pm »
Quote
using the search button on the forum I got:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1274978209/4#4

Geert

For some reason this search button returned nothing to my "DBType" search  ;D

Thank you

5
Automation Interface, Add-Ins and Tools / Re: Connection strings
« on: November 28, 2011, 09:25:46 pm »
Could somebody provide the list of "DBType" values for each supported DB?

6
Automation Interface, Add-Ins and Tools / Re: Connection strings
« on: November 24, 2011, 01:59:18 am »
Is there any reference or manual on how to build this connection strings?

I just want to path the information which I was using to create DSN to some method, build proper connection string and get Repository.OpenFile() or OpenFile2() work.

7
Automation Interface, Add-Ins and Tools / Re: Connection strings
« on: November 24, 2011, 12:18:02 am »
Quote
Connection String to remote EA rep:
Code: [Select]
ea_sqlserver --- DBType=1;Connect=Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=ea_sqlserver;Data Source=ALM-SRV;LazyLoad=1;
Create on remote OS a *.UDL-file and specify type DBMS. Then open *.UDL-file with Notepad.
Probably it is necessary to add the database name before DBType=1.

The received conn_string can be used in a script with OpenFile() or OpenFile2().

I hope that I have understood you correctly :)

"DBType=1" - what does it mean?

8
Automation Interface, Add-Ins and Tools / Re: Connection strings
« on: November 24, 2011, 12:14:05 am »
Quote
Have you tried the "Save As" suggestion?

Geert

Yes and it works. But... I need to connect to DB server without data source configured. It could be different DB and I have no access to the computer where my code should work. I have just server name, db name, credentials, port, db driver. Is there any way to open repository using just this info?

9
Automation Interface, Add-Ins and Tools / Re: Connection strings
« on: November 23, 2011, 11:21:10 pm »
Quote
The conn_string should be like:
Code: [Select]
Repository.OpenFile("C:\Test.EAP")To catch connection string of current project use:
Code: [Select]
Session.Output Repository.ConnectionString



Excuse me but you just shortly repeated the API manual ::)

I need to connect to remote DB repository.
What I need is how to connect to repository not having DSN configured and .eap files created?

10
Automation Interface, Add-Ins and Tools / Connection strings
« on: November 23, 2011, 08:57:44 pm »
What should connection string look like to connect to repository by Repository.OpenFile() or Repository.OpenFile2()?

I tried to pass the connection strings generated in EA using DSN ("DSN=XXX;SERVER=YYY;UID=UUUU;PWD=pppp;DATABASE=dddd;PORT=3306") - and I get exceptions thrown.


11
Setting SuppressEADialogs=true in EA_OnPostNewElement() does not suppress default properties dialog when adding new element using Project Browser context menu "Add > Add Element..." item.

Then the 'New Element' form is shown. You can check the 'Open properties dialog on creation' checkbox. Then the new element is created and default properties dialog is shown.

EA_OnPostNewElement() fires AFTER the default properties dialog is shown.

This means that there is no way to suppress default dialog and replace it with a new custom-made one.

Also developer has no access to the 'Open properties dialog on creation' checkbox value. So he cannot decide whether to show his custom dialog or not.

Could anybody suggest any solution to replace the property dialog corectly? :-/

12
How to suppress element properties dialog when adding new element in project browser using context menu?

I set Repository.SuppressEADialog=true in EA_OnPreNewElement() event handler and it does not suppress ANYTHING!

But when I drag new element from toolbox to a diagram - the properties dialog is suppressed (does not appear).

HE-E-ELP! Please...

13
Thank you!

14
We can get something like HTML from element.Notes. But can we somehow get RTF representation?
When you open the notes and copy content into clipboard - you can get RTF. Is it possible to achive this using EA API?

Thank you!

15
I fixed the problem using this.repository.RefreshModelView(element.PackageID);

Other ways you guys suggested did not worked. Thank you for help  :)

Pages: [1] 2