Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
Bugs and Issues / Re: Schema composer and Appinfo
« Last post by Geert Bellekens on December 07, 2017, 10:46:26 pm »
You should either try the NIEM schema, or stick with the regular XML schema generation
see: http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/model_domains/model_xsd.html
There are a lot more options for tweaking your xsd when using regular xsd generation then there are for the Schema Composer.

If you want to define messages you can use the Schema Composer to create a subset for you and generate the XSD from the subset.
For an improved subset Schema Composer add-in see EA Message Composer

Geert
32
You can of course transfer stuff with Export/Import reference data, but in order to get a grip on your deployment process I would strongly suggest to use MDG for this purpose, definitely for the templates.
Scripts are a bit trickier because of they will all end up in the same script group, and it is a bit of a hassle to get a script fragment to reference an MDG script.

Geert
33
Have you tried googling that.
There seems to be loads of results.

One of them (I just copied it, did not verify)

Code: [Select]
function openWord(spath) {
            var pause = 0;
            var wdDialogFileOpen = 80;
            var wdApp = new ActiveXObject("Word.Application");
            wdApp.Visible = 'True';
            var wdDoc = wdApp.Documents;
            wdDoc.Open(spath);
            document.form1.submit();
        }

Geert
34
Bugs and Issues / Schema composer and Appinfo
« Last post by UrsulaGreen on December 07, 2017, 10:06:29 pm »
I'm currently evaluating the use of the schema composer to generate XML schemas.  All the schemas to be maintained and developed make use of appinfo. 
The current schema composer doesn't seem to support this or have I missed something.  If it does not support it, does anyone have a "work around"?
35
// The following code succesfully opens a CSV file as a worksheet
var xlApp = new ActiveXObject( "Excel.Application");
var xlBook = xlApp.Workbooks.Open (inputFileName);
var xlSheet = xlBook.Worksheets(worksheetNo);
var wsSource = xlSheet;
wsCell = wsSource.Cells(2, 1);

How do I do the same with a Word document?

// The following code fails to open a Word Document
var wordApp = new ActiveXObject( "Word.Application");
// Above line seems to succeed
var wordDoc = wordApp.Open (inputFileName);
// Above line errors out 'Object doesn't support this property or method'


// The following code fails to open a Word Document
var wordApp = new ActiveXObject( "Word.Application");
// Above line seems to succeed
var wordDoc = wordApp.Document.Open (inputFileName);
// Above line errors out 'Document is null or not an object'
36
General Board / Re: Update a state of an element
« Last post by qwerty on December 07, 2017, 09:34:48 pm »
Of course. Mixing API and direct database is the best way to shoot yourself in the knee.

q.
37
I have found 'Automation Scripts' as an other export option under Project, Data Management, Export Reference Data.  Both problems (RTF Templates and Automation Scripts) solved.  Thank you.
38
Sorry Geert.  I could not see the <Group Name>.  Phil has suggested another method which I have used successfully today. In EA Version 12, Reference Data Import/Export can be found in Project, Data Management, Export Reference Data. I used Export Reference Data to export my RTF Templates. Then I successfully Imported RTF Template Reference Data  into my target .EAP.   However I could not see any option to export scripts as Reference Data.
39
General Board / Re: Update a state of an element
« Last post by Geert Bellekens on December 07, 2017, 08:32:26 pm »
I think in fact that your element.update() will undo the changes you did directly to the database.

Geert
40
Automation Interface, Add-Ins and Tools / Re: MDG - change diagram icon
« Last post by sig550 on December 07, 2017, 08:06:31 pm »
Hello,

now I get it. I have to give the appropriate name to the metaclass. In my case, the name is "Diagram_Analysis".

Best regards
sig550
Pages: 1 2 3 [4] 5 6 ... 10