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 - Pawel Zubkiewicz

Pages: [1] 2 3 ... 6
1
Automation Interface, Add-Ins and Tools / Re: Script Prompt Position
« on: July 26, 2017, 07:00:40 pm »
This problem still exists and it's quite random. I've got JavaScripts that ask for user input and they are displaying sometimes input windows outside of "visible screen". For no apparent reason. This behavior can be seen on the same machine but also can be working ok on one and badly on the other (Repo in DB).

Dear Sparx could you please do something about that, for example overload Session.Input method with positionX,positonY attributes so we have a way to force window to be showed on screen?

2
Thanks Geert :-)

3
General Board / Re: DB Import - No Columns for Views
« on: October 20, 2016, 01:07:32 am »
That's correct. I've got the sql query in view element. Well, that would be all folks ;-(

4
General Board / Re: DB Import - No Columns for Views
« on: October 19, 2016, 09:34:52 pm »
Same problem 9 years later....

Using EA12.1 I've imported subset of Views from Sybase DB. I didn't imported any tables though as they are not human readable ( great design and architecture ;-( 

In result of such import I don't have any columns on VIEW elements.

Is it normal behavior?
Is is possible to import in a way to have columns on views?

5
thanks Geert :-)

Just for future refrecence (maybe somone will need this)

For a certain validation I need to check if an attribute with a certain stereotype has a connector that is 'linked to the attribute'

Linking to an attribute can be done with the 'link to element feature'.

I have found that an attribute has an EA_GUID. For example: {7DBF1703-D202-4336-B1C9-B63D7522089A};
When a connector is linked to this attribute, the StyleEx field of the connector contains: LFSP={7DBF1703-D202-4336-B1C9-B63D7522089A}R;

That's all I needed to know :-)

6
By the way, qwerty do you know if it's possible to extract from connector the "element feature" (attribute or operation) to which it is assigned?
I want't to write a script which will iterate through all class's operations and list only those that have  Element Feature links.

7
Thanks for checking, more or less I have the same findings.

8
Hi qwerty, I manged to find out what link to element feature is :-)
Thanks  :D

Now, my only question is: is it possible to show on Relationship Matrix?

9
You could use a <<trace>> with Link to Element Feature.

Hi,
I intend to use trace relationship, however I don't fully undestrand your answer. How can I add it to "element feature" ? It's possible to do it in Relationship Matrix? Or should I do it on diagram (where I have class element expended with all attributes/operations visible)?
Could you please explain :)

10
General Board / Re: Change element stereotype
« on: August 22, 2016, 09:48:55 pm »
Am I doing anything wrong? Or EA isn't capable of such thing at all?

I did that in my EA. It work correctly but you need to close and re open the diagram to see correct element shape. Also check what qwerty described.

11
General Board / Traceability matrix to/from Class atributes/operations
« on: August 22, 2016, 09:25:10 pm »
Hi,

I would like to show in traceablity matrix which class attributes and operations are used by different UseCases. However in Relationship Matrix I can only display elements located in given package. Is is possible to go one level deeper into "sub-elements"?

Also, if it's not possible to realize my idea, I'm open to your suggestion how I can document that. I already have class element with attributes and operations defined.

PS. I just checked. I can drag and drop class operation element on diagram, it is of type Action. So it's perfectly legal to add a relationship to/from it. Question is, how to show that in Relationship Matrix.

12
Thanks Dermot :-)
It works !!!

It also works for EA12.1.

I just wonder why DocumentGenerator.InsertTemplate (string templateName) method does not have the same magical power to insert header and footer.
Now I need to have additional element just to have linked document with header and footer.

But I know... it's EA way  ;D

13
Hi All,

Once again I stumbled upon a problem.
I wrote a script that generates RTF document, everything works great except one detail: Header & Footer are missing in generated file.

I have them templates (logo and page number) but they are not present in generated file.

Basically my  script is invoked from context menu on diagram OnDiagramScript(); listener function.
Then I get list of all elements on diagram and generate the file
more or less like that:
Code: [Select]
            var docGenerator = Repository.CreateDocumentGenerator();
            if (docGenerator.NewDocument("")) {
                documentCoverPage(docGenerator, elements);
                docGenerator.InsertBreak(0);
                docGenerator.InsertTableOfContents();
                docGenerator.InsertBreak(0);
                docGenerator.SaveDocument(FILENAME, DocxType);
                Session.Prompt("Document successfully generated", promptOK);
            }
Where
Code: [Select]
            documentCoverPage = function (docGenerator, elements) {
            docGenerator.DocumentPackage(packageId, 0,TEMPLATE_COVER_PAGE);
            var documentChanges = filterElements(elements, "Change");
           
            for (var i = 0; i < documentChanges.length; i++) {
                var change = documentChanges[i];
                docGenerator.DocumentElement(change.ElementID, 0, TEMPLATE_CHANGE_HISTORY);
            }
        };
Generaly I don't do anything special.. the only difference is that everything is started and generated in script, not from F8 / Generate Documentation functionality.

Did you guys have problems like that?
Any idea on how to fix it will be appreciated :-)

14
Hi guys,

because not everybody is reading the community resources plus we have a neat search in this forum, I'd like to link my article about diffing release changes here as well:

http://community.sparxsystems.com/community-resources/982-automatically-keeping-track-of-ea-api-changes-between-ea-releases

Jan

HI Jan,

looks like there is a problem with your article

Quote
Error 404 - Item not found
You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages:

Home
If difficulties persist, please contact the System Administrator of this site.

I think you should contact community moderator because right now your article is not accessible.

15
Alright, I cannot read during creation of diagram but I can save into it :-)
Code: [Select]
diagram.ExtendedStyle ="HideRel=0;ShowTags=0;ShowReqs=0;ShowCons=0;OpParams=1;ShowSN=0;ScalePI=0;PPgs.cx=2;PPgs.cy=1;PSize=1;ShowIcons=1;SuppCN=0;HideProps=0;HideParents=0;UseAlias=1;HideAtts=0;HideOps=0;HideStereo=0;HideEStereo=0;FormName=;";
diagram.Update();

It works ;-)

Pages: [1] 2 3 ... 6