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

Pages: 1 [2] 3
16
Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 15, 2008, 04:27:31 pm »
Thanks Simon.

17
Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 15, 2008, 03:35:08 pm »
Thanks Simon.

I could not get connection string from the API in case it is shortcut to the server, but i read the file from addin using c# and it worked :)

No issues till the connection string is not encrypted, but I again ran into problem if the connection string is encrypted. Is there any method available in the API using which i can decrypt the connection string?

Thanks once again.

18
Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 12, 2008, 01:53:55 am »
Exactly Simon, this is the case I want to handle.
The problem is i can not look at the file. I should retrieve it dynamically in my addin. I am using C#.
Repository.Connectionstring returns me the file name in the case you mentioned. How can get the connection string using EA API.

Thanks for the help.

19
Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 10, 2008, 03:02:18 am »
Just wanted to add to my last reply. I want to know server name, DB name, user, password using API when Repository.Connectionstring returns me file name in C#.

Thanks :)


20
Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 10, 2008, 02:58:18 am »
Thanks David.

I can check the connection string in the .EAP file but how can I get using the API. I need to get in code. Repository.Connectionstring do not gives connection string everytime. When it return filename how can i get the actual connection string.

thanks for the help.

21
Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 09, 2008, 02:43:26 pm »
Sorry, I think I was not clear enough.

I want to get the connection string in the C# code in my addin.
I am using Repository.ConnectionString which is exposed by API but the problem is it return the file name if we open the .EAP file.

I want to retrieve the connection string to open a sql connection to DB in my code. For achieving that I need server name, user credentials etc for connecting the DB of the .EAP file.

22
Automation Interface, Add-Ins and Tools / Connectionstring
« on: September 08, 2008, 09:06:42 pm »
Hi,

How can I retreive connectionstring of the repository? I am using repository.Connectionstring but if we open it through file we get the file name. I want to retrieve the connection string which is used to connect to the DB. I need it to open a connection to DB through my addin.
Please help.
Thanks

23
Hi,

I am adding a tab to EA repository and all works fine. However i want to capture event when the tab will be closed. I want to release resources on the closing of my tab. I looked at the user guide and found EA_OnOutputItemClicked event, but it do not gets fired.
Any idea?

Thanks

24
Automation Interface, Add-Ins and Tools / Re: Package and element
« on: August 25, 2008, 02:48:06 am »
Can you tell me specifically which things will work for package and which will work with element associated with the package. From where I can get this list?  I took diagram as a example, i need much more than it.

One more question: How can i know what type of elements can contain diagrams?

Thanks for the help.  :)

25
Automation Interface, Add-Ins and Tools / Re: Package and element
« on: August 24, 2008, 04:20:40 pm »
Thanks Jim.

My question was:
Is there any difference between
diagram = package.Diagrams.AddNew("Scenerios","Use Case")
&
diagram = package.Element.Diagrams.AddNew("Scenerios","Use Case")
What differnece do it makes whether I add diagram to a package or an element associated with a package.
I have a another query; will the ID, guid of the package and the element associated with the package with the element will be same or it will be different.
I mean package.packageID & pacakage.packageGuid will be same as package.element.ElementID & package.Element.ElementGUID or it will be different?
It will of grate help if you can suggest Which table in database can I look to verify the same.
Thanks.

26
Automation Interface, Add-Ins and Tools / Package and element
« on: August 24, 2008, 09:25:52 am »
Hi,

I am realatively new to EA. I want to update lets say a diagram in EA through c#. At the time of updating i do not know that the source elment(which contains the diagram) will be a package or a elment. Do i need to handle these cases differently. What if i access element by id and just update the diagram. What is the difference beween package.Diagram and package.Element.Diagram ?

Please guide.
Thanks.

27
Default value of the tagged value of enumeration type is not retrieved using API. However it is correctly retrieved if we set default value of the tagged value by setting the “default value” attribute in stereotype definition.

This is a workaround but the original problem still exists.

Thanks.

28
I have added a tagged value of type enumeration having values("New","Changed","None") and default value = "New". When I add a new element in EA; default value ("New") of the tagged value is correctly displayed in the textbox. But when I try to retrieve this value in my addin using c# the default value is not getting retrieved.
However if the user changes the default value in EA it is correctly retrieved in the code.
The code I am using for retrieving the tagged value of an element is:

(element.TaggedValues.GetByName("Change in Release") as TaggedValue).Value.

Am I doing something wrong or is it a bug in EA?
Please guide.
Thanks.

29
Hi,

When I add a new design Item(package) in the repository, I cannot retrieve the default tagged value in c# code. The tagged value is of type enumeration having values (New,Changed,None) with default value(Changed). However, if the user changes the default value it is retrieved in the code.
Please help.
Thanks.

30
Thanks for the insight Frank.

I was passing the package's element GUID which was wrong. I found the package by GUID and it worked.

Thanks a lot :)

Pages: 1 [2] 3