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

Pages: [1] 2 3 4
1
This must be the simplest question ever posted, for which I feel mildly embarrassed, but not too embarrassed to ask publicly:

I’ve come to terms (ish) with the vagaries of the RTF report generator, but now need to create an HTML model and place it in Sharepoint for review by various stakeholders.

Strangely the export to Sharepoint was the easy bit, once we realised that replacing the letters html with aspx in the File Extension field of the 'Publish as HTML' window made everything work seamlessly.

However, what I now want to do is have a text string displayed in the header of every web page, to convey a commercial sensitivity caveat to remind all viewers. Sadly Sharepoint permissions are not considered sufficient.

There doesn't seem to be a lot of information on the web about how to modify the Web Style Templates, other than playing with the logo, and if all else fails I shall cheat by amending the logo to carry the caveat text.

Anyway, I have found my way to Resources > Web Style Templates and can generate my own HTML template by copying the default one, but am utterly bewildered by where to define header text within the plethora of fields available.

I've used the examine html facility in the browser of an exported html page to find areas called IndexTitle and IndexHeader but am unsure how/where I can add a constant string to them.

Can anyone please help?

Many thanks

2
Bugs and Issues / Re: This is the only sub forum where I can post...
« on: February 18, 2022, 07:16:22 pm »
Thanks Gentlemen.

Time for Plan B...

3
Bugs and Issues / Re: This is the only sub forum where I can post...
« on: February 16, 2022, 05:15:47 am »
Yes, your book is exactly where I started, and tested out an amended version of your script which works perfectly for those elements which have children, and can return the 'Ref ID' Tagged Value of any child element.

Unfortunately, when the code is run as main, so that the element shape script is looking at its own Tagged Value, nothing happens.

So this works:

shape ChildElement{
   DrawNativeShape();
   SetCompartmentName("Reference");
   AppendCompartmentText("#TAG:Ref ID#");
   }

...but isn't what I want, whereas this doesn't:

shape Main{
   DrawNativeShape();
   SetCompartmentName("Reference");
   AppendCompartmentText("#TAG:Ref ID#");
   }

4
Bugs and Issues / Re: This is the only sub forum where I can post...
« on: February 15, 2022, 10:51:26 pm »
Thank you, but sadly  that doesn't work: the name of my new compartment isn't visible amongst the 'Show Element Compartments' list in the Compartment Visibility window for a newly created element.

Also, when I altered my shape script to call up the tagged values for child elements, I saw the results immediately, without having to modify visibility settings, so suspect that there's something else going on.


5
Bugs and Issues / Re: This is the only sub forum where I can post...
« on: February 15, 2022, 10:03:24 pm »
shape Main{
   DrawNativeShape();
   SetCompartmentName("Reference");
   AppendCompartmentText("#TAG:Ref ID#");
   
}

6
Bugs and Issues / Re: This is the only sub forum where I can post...
« on: February 15, 2022, 09:55:11 pm »
Ah...interesting.

So I have tried to sterilise my post by going through MS Notepad but still have same problem.

I'll now summarise my question by typing direct into here:

I have a custom MDG stereotype element which has ten tagged values.

On a diagram, to declutter, I would like to see only one of the values whose name is Ref ID.

I have used a shape script to define a procedure called Main and in there are two instructions to set compartment name and then append compartment text. Oh and a draw native shape.

Unfortunately I can not see my tagged value.

If I change the name of main to child element, then I see the tagged value for the associated children, so I am confident that the code is picking up the correct value.

Have I missed something obvious about why the shape script is not picking up the value of its own tagged value?

Many thanks.

7
Bugs and Issues / Re: This is the only sub forum where I can post...
« on: February 15, 2022, 09:32:39 pm »
Yes, you're right it's content related, but the only characters were
apostrophe '
inverted commas "
semi-colon ;
full colon:
hyphen -
hash #
brackets ()
square brackets []
curved brackets {}

So why did it get upset, and just out of interest, how did you manage to include guillemets?

...and why has it permitted me to post this message, but refused my original?

8
Bugs and Issues / Re: This is the only sub forum where I can post...
« on: February 15, 2022, 09:26:03 pm »
Thanks for the suggestion.

My next post to this sub-forum will be my original question, in its original form, so let's see what happens.

If there isn't a next post then, yes, it's content related.

9
Bugs and Issues / This is the only sub forum where I can post...
« on: February 15, 2022, 08:57:30 pm »
This is about a bug on this Board rather than in EA:

Whenever I try to post in the Automation Interface, Add-Ins and Tools sub-forum I receive this message:
"Database Error
Please try again. If you come back to this error screen, report the error to an administrator."


Unfortunately I can't see a means of contacting an admin, so am posting here.

Does anyone know why, after 40+ posts in the past, I am apparently barred?

Thanks

10
Am I being stupid?

No


Am I missing something obvious?


There are two kinds of pattern. You are creating a diagram pattern; what you need is a model wizard pattern. Create a roadmap diagram in a package, export the package as XMI, then add a <ModelTemplates> section to your technology to point the model wizard at your XMI file. Here's the help page:

https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/model_templates2.html

Ah ha. Many thanks for explaining the difference.

I ran through the process and as you say that makes perfect sense, and despite having to edit the .mts file manually, is quite straightforward, but...it means that I end up with a new package, as well as a new Roadmap diagram.

Is there a way to just get the new pre-formatted diagram without the associated package?

What I mean is that when, inside a package, I select 'Add Diagram' and amongst the menu options are the diagrams contained in my MDG's <<diagram profile>>, is it possible for one of them to be generated with Roadmap Enabled=True and Use Legend For Phase Colours = True having been pre-selected?

11
You may need a pattern to pull that off.

Geert

Thank you for the suggestion.

I've wasted spent all of Sunday morning trying to crack this and am getting nowhere:

Am I being stupid?

My imported pattern does contain the project (object) element, my note from the original diagram, and the legend.

Unfortunately, unlike the original diagram from which the pattern was published, the roadmap enabled flag doesn't get asserted, so the timeline doesn't get automatically displayed. Also the "Use Legend for Phase Colors" doesn't get set either.

Am I missing something obvious?

Thanks

12
I am building a bespoke MDG Technology.

I have previously built a number of MDGs so am happy with the process.

To get a standard Class diagram within my MDG I have a package <<diagram profile>> within which is a stereotype of <<my_diagram_name>> that extends to a metaclass named "Diagram_Logical".

That is all quite successful.

However, I need to include a roadmap diagram, i.e. a Class diagram where as soon as it is instantiated, it automatically has the roadmap timeline displayed at the top, and a pre-defined Legend displayed on the diagram. Better still if there are a couple of horizontal swimlanes.

Doing this all manually is obviously straightforward, but I need a novice user to be presented with the arranged diagram.

I cannot figure out (a) if it is possible, and (b) which attributes I should set either in the stereotype or the metaclass to make this happen.

Can anyone help, please?

Many thanks in advance.

--------------------------------------------------------------

Edited to add a link to a picture of the roadmap format, with a couple of elements dragged onto it.



Gave up with Dropbox, now using imgbb.com

13
General Board / Re: Inheritance of Tagged Values between Stereotyp
« on: June 24, 2014, 07:25:00 pm »
I suspect that I'm trying to achieve the same as you: because of the sheer quantity of stereotypes, enumerations and metaclasses sitting in an apparently haphazard fashion under the <<profile>>, I decided to have a tidy up, and carefully sorted them out into a number of sub-packages.

The result was much tidier but didn't work, even though I'd realised that I would have to update the pointer within each toolbox to refresh its knowledge of where each stereotype was newly located.

I spent much of last evening trying to fix this, but this morning noticed the following line within the EA Manual:
"A Profile package can contain several diagrams and many elements and connectors, but no other packages; do not use nested packages in a Profile"

This I think explains why my tidy up broke a previously working toolbox, so I've just gone through dumping all the stereotypes into the <<profile>> 'root'.

Maybe I've misunderstood what q. meant, but suggest you try the change on a small subset first...

14
Bugs and Issues / EA_MenuClick and use of Location
« on: August 10, 2014, 08:43:02 pm »
The Sparx produced VB Framework which Sparx has very kindly provided to me includes the following code:
Code: [Select]
Public Sub EA_MenuClick(ByVal Repository As EA.Repository, ByVal Location As String, ByVal MenuName As String, ByVal ItemName As String)
Repository.WriteOutput(My.Resources.OutputTabName, "event: EA_MenuClick Location=" + Location + ";MenuName=" + MenuName + ";ItemName=" + ItemName, 0)
        Select Case ItemName
etc ……

However, having used it, it seems to me that no matter which means of menu click (TreeView, MainMenu or Diagram) is used to trigger the function, the Location string is always set to “Diagram”.

I note that the EA User Manual is slightly contradictory for the functionality of the MenuClick command and variously includes and then ignores the Location argument.

This makes me unsure of whether it’s a bug or a feature?

Oops, nearly forgot: EA v11 build 1107

15
Just in case my attempted narrative description wasn't clear.
The first image is what I've got, which, if it's legible shows that the Widget Painter can affect the output of both painted and unpainted widgets.



The next image shows what I want which is that failure of the Widget Painter can, unsurprisingly, only affect the painted widgets.



Thanks for the suggestions so far, I shall investigate these this morning...

I appreciate that my application of EA may well be taking it outside its comfort zone - and from KP's response, outside Sparx' as well...
...which is surprising as I would have thought they'd be keen to broaden its market...

Pages: [1] 2 3 4