Print Page | Close Window

Conditional connectable

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: http://www.metacase.com/forums/forum_posts.asp?TID=919
Printed Date: 15.Aug.2020 at 00:36
Software Version: Web Wiz Forums 10.16 - http://www.webwizforums.com


Topic: Conditional connectable
Posted By: edward22243
Subject: Conditional connectable
Date Posted: 11.Apr.2020 at 13:44
I have an object in which a property is specified. If the property has a certain value I must connect another object to it, and otherwise not. So I want a connectable (With a port attached to it)  to be visible dependent on the property (and also the binding must only be possible in the relevant case).

In the symbol editor I can choose Format > Condition and then specify the condition source for a rectangle or an ellipse, but not for a connectable.
Probably I have to use a dynamic port for it (naming sounds logic) but I only come across difficult examples with subgraphs. 

What would be the most easy way to get this done?



Replies:
Posted By: stevek
Date Posted: 11.Apr.2020 at 16:03
I'd make it so that there is a static port and its connectable, and the visible parts of the symbol for the static port are conditional. Add an extra 'error' element (e.g. a bold red exclamation mark) in the same position, and set its condition to display when the static port shouldn't be visible AND there is a role connected to that port.

In this way, you're also covered for the case where the port's condition is initially true, the user connects to it, and later the condition becomes false. 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 10.16 - http://www.webwizforums.com
Copyright ©2001-2013 Web Wiz Ltd. - http://www.webwiz.co.uk