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 - Geert Bellekens

Pages: 1 [2] 3 4 ... 818
16
General Board / Re: Element Relationship Management
« on: February 04, 2023, 06:53:33 am »
I agree with Greet
Who's Greet?

Geert

17
are you sure it's not imported?
It might be that it's in the database, but EA refuses to show it.
IIRC EA will only show these field on database columns.

Geert

18
General Board / Re: XML Schema Generation
« on: February 03, 2023, 02:20:04 am »
In the properties of you element, you can set the multiplicity.
That will be translated to minOccurs/maxOccurs
(so either on the association, or on on the attribute, depending on your modelling style)

Geert

19
You only needed to change the first parameter (name), so 

Code: [Select]
Set attr = owner.attributes.AddNew("NULL", "")
Would be just fine.
The second parameter is the type parameter. If you didn't include that field in your excel, you would end up with type "NULL" in EA

Geert

20
Thanks Geert I suspected it was some API change in EA!  But all my attributes have a name.

My Excel file looks like this:


Code: [Select]
Action CLASSTYPE CLASSGUID ownerField Pos Name Notes Alias Datatype
Update Class {EFED214F-70DD-47f1-90FC-C8DEC586DC4F} {EFED214F-70DD-47f1-90FC-C8DEC586DC4F} -1 CV_S_D01_PURCHASE_SERVICE_LINE_DETAILS Type: CALC.  .  CV_S_D01_PURCHASE_SERVICE_LINE_DETAILS CV_S_D01_PURCHASE_SERVICE_LINE_DETAILS
Create Attribute {EFED214F-70DD-47f1-90FC-C8DEC586DC4F} 0 0AF_COLOR___T Text column for attribute 0AF_COLOR Text column for attribute 0AF_COLOR NVARCHAR
Create Attribute {EFED214F-70DD-47f1-90FC-C8DEC586DC4F} 0 0AF_FCOCO___T Text column for attribute 0AF_FCOCO Text column for attribute 0AF_FCOCO NVARCHAR
Create Attribute {EFED214F-70DD-47f1-90FC-C8DEC586DC4F} 0 0AF_GENDER___T Text column for attribute 0AF_GENDER Text column for attribute 0AF_GENDER NVARCHAR
Yes, I know, but the version you are using creates an attribute without name first, and then fills in the name (and the other properties)
So the VBA code needs changing.

Geert

21
Hi Richard,

Yeah, that's annoying. EA has made a breaking change to the api, and now doesn't allow to add attributes with an empty string as name anymore.
The fix is simple enough luckily. In the code, look for the line that does an Attributes.AddNew() and replace the empty string with something like "dummy"

I'll post an update with a link to the new version of the importer later...

Geert

22
General Board / Re: Sql to get its info from fields of a model element
« on: February 02, 2023, 03:00:21 am »
because the value 0.2 is not equal to the value '0.2','0.3'
If you wanted the "in" to work, you would need to have multiple element with name 'special info' where each of them has a single possible value. e.g.
- 0.2
- 0.3

SQL will not parse and evaluate the string that is returned by the subquery; it tests if it matches one of the returned strings exactly; and in this case it doesn't.

Geert

23
General Board / Re: model migration: qea-->qeax
« on: February 02, 2023, 02:54:40 am »
Probably using Settings | Model | Transfer | Project Transfer | Full Project Transfer via connection

I'm not 100% actually qea file actually differs from a qeax file.
It's possible you can simply change the file extension to make it work like you want.

Geert

24
@Geert, I think he is talking about something similar to the behavior of BPMN 2.0 elements that change the behavior of the visible tag values according some other tags (like when you change an Activity type, then other tag values are visible or hidden). So, is this possible to do? or is it just limited to BPMN 2.0 because is a native MDG?
No, you can't replicate that behavior using only an MDG. I don't even think you can replicate it using an add-in, unless you re-write your own versio of the properties dialog.

Geert

25
Diagrams are not always rendered on the fly.
There is a setting (see "Settings => Options => Cloud") where you can define that EA should always auto create a diagram image.
There even is a button to batch create all images available in the model.
This is necessary when using the WebEA functionality as this application has no ability to render the diagrams itself.

As far as I know, the images are stored in a separate table "t_images" or "t_document". I'm not quite sure which.
There is another thread on the forum somewhere that discusses this exact issue, and the location of the diagram images.
It's definitely in the database as ea0522 suggests.

Geert

26
General Board / Re: Add-in without license
« on: February 02, 2023, 02:46:16 am »
Thank you for the replies. I do have license for EA, but reading documentation I understood my add-in would also require a kind of license.
Actually, I would like to be able to use a JScript (stored in a MDG) to listen and act on EA_OnContextItemModified event - could I do that, please?
There is a new model-addin feature that uses Javascript, but I don't think you can store such a model-addin in an MDG
Regular scripts can't use the events.

You need either your own add-in, or EA-Matic.
But anyhow using add-ins doesn't require any kind of extra license; unless you would want that, and programmed it into your add-in.

Geert

27
General Board / Re: Add-in without license
« on: February 01, 2023, 05:31:36 am »
Whether or not the add-in requires a license is up to you as license developer.
You can develop and deploy an add-in without having a license for EA, but you wouldn't be able to test it.
You cannot run EA without a license for EA, so there's no way for you as a developer to know if it works or not.

Geert

28
General Board / Re: Sql to get its info from fields of a model element
« on: February 01, 2023, 03:19:41 am »
because the "in" statement checks for an exact match in a list of values, unlike the "like" operator.

So it will only return those instances where it matches exactly.

Geert

29
General Board / Re: Best method to differentiate between AS-IS and TO-BE
« on: February 01, 2023, 01:33:06 am »
I've encountered organisations using that Catalog/Projects aproach a few times.

They always had the same theory, and told me they where going to do that.

What I haven't seen is a working example of such an approach in practice. "Promoting" or merging the "project" stuff into the "catalog" stuff is almost impossible and definitely costs massive amounts of time.
Quite often there was this; "yeah we still have to merge that stuff" response.

Another major flaw of this approach is that you loose sight of your dependencies.
If Project A plans to replace a componentA, and project B plans to change some stuff on componentA. How and when will project B get notified?
All these types of inter-project dependencies are very difficult to manage if each project lives and works on it's own island.

That's what Ian is trying to solve with his add-in. So if you insist on this type of approach, I would definitely look into the Portfolio manager to get some automated support for this process.
If not I'm afraid this will only work in theory.

Geert

30
Yes, you can change the direction of the auto layout using the diagram properties from the context menu on the background of a diagram
Properties | Diagram | Set Layout Style | Direction | Down

There is a checkbox on this dialog to set this as default:  Set as Project Default

Geert

Pages: 1 [2] 3 4 ... 818