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

Pages: 1 [2] 3 4 5
16
General Board / Re: Include a table/matrix in diagram
« on: May 17, 2013, 10:35:44 pm »
Great! Thank you!

I feel kinda silly when it was that simple. I could have sworn that I tried that.

I guess I was fooled by thinking the second parameter to AddNew had to be a stereotype, and when I checked the stereotype of a Note it returned an empty string.

Thank you again.

17
General Board / Re: Include a table/matrix in diagram
« on: May 17, 2013, 08:44:26 pm »
Thank you for the input. Tho, I got another idea, perhaps much simpler.

Is it possible to create Notes or Text elements by scripts? I could live with using those.

I have found how to read and write to Note-elements. But what attribute makes a note-element to a note? It has no stereotype for example..

18
General Board / Re: Include a table/matrix in diagram
« on: May 17, 2013, 12:57:53 am »
I managed to access swimlanes, but it seems the matrices are hidden somewhere else. They don't show up as a swimlane class and I can't find anything in the object model which hints where the matrices are.

Have emailed Sparx for information about this.

19
General Board / Re: Include a table/matrix in diagram
« on: May 16, 2013, 11:55:16 pm »
The matrix idea could work. Is it possible to create those through scripts?

Can only find Swimlane as part of a diagram object.

Is there any documentation of the EA objects accessable by the script engine? The sample scripts aren't really enough here ...

20
General Board / Include a table/matrix in diagram
« on: May 16, 2013, 11:36:34 pm »
I would like to present certain relationships in a diagram as a table/matrix, either inside the same diagram or dedicated diagram or as some kind of listview. Is this possible in EA?

A table like this:

Information      |  Sender         |   Target            |  ....
Incident report         Servicedesk     Serviceboard  

I'm aware how to access the information through script, but not how to generate a table like this inside an EA diagram.

The "list view" is close but don't show the information I need.

Any thoughts?

Thank you for the help!

21
Bugs and Issues / Re: Installing and configuring WAN Optimizer
« on: September 04, 2014, 07:58:21 pm »
Make sure that the connectionstring is naming the databases with lower case.

If you use the connection wizard in EA the connection string will get the same case as the databases is actually named. In WAN opimizer though the name will be just lower case. Since the comparison of connection strings is case-sensitive it will thus not match.

22
Automation Interface, Add-Ins and Tools / Re: Help with Add-in search
« on: June 03, 2014, 11:19:41 pm »
Thanks for the input, but I have tried to no avail.

I tried to change the input to EA to following:
Code: [Select]
<ReportViewData>
<Fields>
   <Field name="Name"/>
</Fields>
<Rows>
 <Row>
  <Field name="Name" value="Test namn"/>
 </Row>
</Rows>
</ReportViewData>


I can see that this is what is returned from the Add-in, but not result.  As far as I can see is this coherent with http://www.sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/xml_format_search_data.html

Though, I'm not sure what they mean by "// The order of the columns of information to be appended here must match the order that the search run in Enterprise Architect would normally display.

 // Furthermore, if you append results onto a custom SQL Search, then the order used in your Custom SQL must match the order used below."
 

Jonas

23
Automation Interface, Add-Ins and Tools / Help with Add-in search
« on: May 16, 2014, 01:44:42 am »
Hi,

I'm trying to do a add-in search, but which don't work. During debug I see that the add-in is called and that it returns what  I want, but there is no results showing up in EA.

This is what I return to EA (any takes on whats wrong?):
Code: [Select]
<ReportViewData UID="MySearchID" >
<Fields>
 <Field name="CLASSGUID"/>
<Field name="CLASSTYPE"/>
</Fields>
<Rows>
<Row>
<Field name="CLASSGUID" value="{774D1047-A519-44ce-BE34-019376954557}"/>
<Field name="CLASSTYPE" value="Class"/>
</Row>
</Rows>
</ReportViewData>

Thank you for the help!

24
My timing's are with everything else switch off.

So unless I missunderstand, the time is just for EA to check each element, diagram, and connection, and for each one see that there is no rule to run.


25
I have a new issue with model validation - the time it takes.

When I got SQL working I rewrote some code to optimize the time it would take to run the validation. Alas, it still took a rather long time, so I clocked it (manually).

I had created 6 rules (based on the example from Sparx) and it took over 240 sec to run the validation. I disabled all logic, so that the rules was activated but didn't do anything. The validation then took around 240 sec. Thus, the actual testing hardly affected the total time.

Next I tried to only use one rule, but running the same amount of logic as above (instead of relying on EAs built in ruleIDs I ran the tests depending stereotype). That took about 80 sec.

Last, I ran the validation without any rules at all, which took 75 sec.

It seems that EA's built-in functionality for validation is really, really slow. Is there any point in using the built-in functionality, or is it just better to do it yourself (since your already need an add-in to write the logic)?

I wonder if i'm doing it wrong and anyone else have another experience of it?

26
Sparx have responded: Alias ...

The error is circumvented by explicit naming the COUNT-column with an alias.

Thank you again for the help.

Update: This is confirmed as a bug, present when not using a EAP-repository.


27
I have tried the query directly towards the database, and it works.
The same error occurs both when using mySQL and MS SQL.

Have sent a question to Sparx regarding this.  I thank you for the help, it feels like we're shooting blind now. :) I hope Sparx have any ideas..

28
C#

29
Still the same error  :-/

Code: [Select]
                 string myQuery = "SELECT COUNT(*) FROM t_object";
                  string queryResult = Repository.SQLQuery(myQuery);

30
Ah, now we're talking.

Thanks for the info. Yes, that would be the output I would expect. But for some reason my EA don't return that, but:
Code: [Select]
<?xml version="1.0"?>
<EADATA version="1.0" exporter="Enterprise Architect">
      <Dataset_0><Data><Row/></Data></Dataset_0></EADATA>

Using EA 10.0.1010

Pages: 1 [2] 3 4 5