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

Pages: [1]
1
Bugs and Issues / Re: ShapeScript NotesVisible property
« on: April 09, 2020, 12:36:58 pm »
Hi Uffe,

In response to your original question,
I've tried both the diagram's properties (Elements - Notes) and the element's compartment visibility. Either way, the NotesVisible property is stubbornly stuck at false.

The assumption I made (incorrectly as it turned out) was that you had Notes, with content, that you wanted to display.
Both Qwerty and I answered that question correctly. You set it in Diagram Properties OR Element Feature Visibility.

But thank you for highlighting the redundant code for checking existence of the property, I won't do that again.

And yes the complete set of criteria for whether 'NotesVisible' equates to 'true' does indeed require content in the Notes field. Terrible name for the property, because sometimes you may want to display a compartment for Notes whether there is content or not.

The 'NotesVisible' property should only refer to the settings which would indicate a desire to show the Notes.
A separate property to test for content in the Notes, such as 'HasNotes', should be used to determine if the notes aren't blank.

Glad I could jog your memory. We are all trying to help each other after all.

kevin

2
Bugs and Issues / Re: ShapeScript NotesVisible property
« on: April 08, 2020, 04:52:45 pm »
Hi Uffe,

It seems to be working for me.

Here is a script that shows notes or not depending on the settings for a Diagram or the Element Feature Visibility properties.

The 'NotesVisible' is true if either the Diagram > Element Properties has Notes ticked (right-click on a blank part of the diagram and select properties, then Elements)
OR
The Feature and Compartment Visibility of an Element on the Diagram has the Notes ticked. (right-click on an element on the diagram and select 'Features and Properties > Feature and Compartment Visibility').

shape main
{
   layouttype="border";
   editablefield="name";
   v_align="top";
   h_align="left";
   
   RoundRect(0,0,100,100,10,10);
   
   addsubshape("namePanel","n");
   if (HasProperty('NotesVisible'))
   {
      addsubshape("notesPanel","center");
   }
   shape namePanel
   {
      layouttype="border";
      preferredheight=20;
      addsubshape("padding","n");
      addsubshape("padding","s");
      addsubshape("padding","e");
      addsubshape("padding","w");
      addsubshape("name","center");
      shape name
      {
         v_align="top";
         h_align="center";
         printwrapped("#name#");
      }
   }
   shape notesPanel
   {
      layouttype="border";
      preferredwidth=100;
      
      if(HasProperty('NotesVisible','true'))
      {
      addsubshape("padding","n");
      addsubshape("padding","s");
      addsubshape("padding","e");
      addsubshape("padding","w");
      addsubshape("notes","center");
      }   
      shape notes
      {
         v_align="top";
         h_align="left";
         printwrapped("#notes#");
      }         
   }
   
   shape padding
   {
      preferredheight=6;
      preferredwidth=6;
   }
}

3
I have submitted a feature request to Sparx.

4
Hi fellow Sparxians,

I would like to have a Tagged Value that captures a valid email address.
I could do it with the the "Type=AddinBroadcast" but I do not want have the support issue of deploying an add-in.

I looked at the Type=Custom, with Mask and Template but this is only good for fixed length.
It reminded me of regular expression place holders, so I thought...

How about:
Type=Regex;
Pattern=validRegex;
ErrorMsg=An error message or prompt;

Then I could use the following for a valid email address:
validRegex =[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*;

So the whole thing for my email address would be:
Type=Regex;
Pattern=[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*;
ErrorMsg=Please enter a valid email address, which generally looks like '[email protected]';

Sparx would have to parse this very carefully, i.e. don't get caught out by additional = or ; characters in the regex.

This could be used for many other types of text validation when creating tagged values.

Anyone else agree, disagree, suggestions for alternatives?

5
General Board / Re: Sparx Cloud - User Access
« on: September 07, 2016, 05:19:36 pm »
Thanks Simon.

I definitely need model security for locking packages.
Everyone is effectively external, until we setup a synched AD.

So it looks like I've hit on the only solution available to me, creating multiple accounts.

Thanks for the suggestions, but having a second account with no password is not very secure! So I have to either accept double login all the time, or compromise security and have a second account with no password!

Only problem now is trying to figure out why some organisations don't get the http/https authentication prompt and get an automatic 401 - Unauthorised error.

I suspect it has something to do with reverse proxies, but the logging in sparxcloud is not very helpful. I have it set to SYSTEM, which I think is the most detailed. Or am I best to turn logging on for the desktop?

It may also be the Virtual Desktop Infrastructure (VDI), but alas I'm just guessing.

As with most IT problems, there are so many moving parts, diagnosing the real problem is difficult. Not to mention that many of the components are black box.

6
General Board / Sparx Cloud - User Access
« on: September 06, 2016, 01:58:55 pm »
Hi All,

I have deployed SparxCloud twice now, and I need help to understand the access management.

Business Requirement: Access Sparx models that are deployed in the 'azure cloud'. Allow many different organisational users to access the model. e.g. own internal users and third party organisations that are doing project work.

Problem: You have to 'login' twice!!! A Windows username/password dialog followed by a Sparx username/password dialog. Even though user credentials are in the sparx model and both logins check the same data.

The only way to get rid of the second login is if you enable 'Accept Windows Authentication' in the manage users dialog, and if your windows user id matches the username in the model and there is no password set.... But you can't login to the first login dialog if you don't have a password.

If you are logged into a windows domain, then the username in sparx needs to include your domain e.g. DOMAIN NAME\user name. If you not logged into a domain then your sparx username needs to match the windows user name.

So the ridiculous solution is to ... have two sparx logins. One that has a password set and the other that matches your windows user id but doesn't have a password set.

Has anyone got CloudService working with just a single login, for multiple organisations with their own windows domains, and external users who are just connecting from the public internet?

The user experience is terrible, so I would like to assume that I am doing something wrong and hope that someone out there is doing it correctly and can educate me.  Please.

Regards,
Kevin

7
Hello (if anybody is still interested)

Yes, it is possible to RE from the MDG XML into EA.

I've sometimes misplaced the ea model that I used to design my MDG and then generate into the XML.
I had the XML because that is what EA imports at startup. I like to put these on a web server directory because deployment of a new version is easier.
And I had lost all the images that where used in shape scripts and alternate images, so I needed to write a tool to recover all of this.

At a rough guess I'm about 80% done. I'm thinking of making it a Add-in. Would this be useful to anyone else?

Regards,
K

Pages: [1]