Book a Demo

Author Topic: Element with Select Box (multiple hyperlinks)  (Read 6616 times)

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Element with Select Box (multiple hyperlinks)
« on: April 26, 2017, 03:53:43 am »
Hi, I have an element A and with a click I want to jump to diagram 1 oder diagram 2. The reason for this request is that I model a value chain. A process (element A) summarizes several variants (here digram 1 with process variant 1 and diagram 2 with process variant 2). Is there a way to get a selection box for an element with more than 1 choices? At the moment I am using hyperlinks to jump from element A to diagram 1 or 2. I also tried a Child Diagram and added the variants there (n processes in 1 diagram which I do not want). Both alternatives are not satisfactory. Any ideas? Many thanks in advance V.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element with Select Box (multiple hyperlinks)
« Reply #1 on: April 26, 2017, 05:43:07 am »
You could only do that with an add-in offering different choice. Else your way with hyperlink is the way to go. That's also what I do in projects: having an overview diagram that is a "composite" and that offers a number of secondary paths/traces.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element with Select Box (multiple hyperlinks)
« Reply #2 on: April 26, 2017, 09:46:11 am »
Hi Viking,

Try selecting the item in the Project Browser and <Context Menu> | Add > Add Custom Reference

That may do what you want.  You can put references to more than one diagram, there I believe.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Element with Select Box (multiple hyperlinks)
« Reply #3 on: April 26, 2017, 03:45:09 pm »
Hi Viking,

Try selecting the item in the Project Browser and <Context Menu> | Add > Add Custom Reference

That may do what you want.  You can put references to more than one diagram, there I believe.

HTH,
Paolo
Hi Paolo, I can only select another Element in the same package. What I want is to add resp. reference several diagrams in arbitrary packages. Did I do something wrong? V.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element with Select Box (multiple hyperlinks)
« Reply #4 on: April 26, 2017, 04:04:49 pm »
Hi Viking,

Try selecting the item in the Project Browser and <Context Menu> | Add > Add Custom Reference

That may do what you want.  You can put references to more than one diagram, there I believe.

HTH,
Paolo
Hi Paolo, I can only select another Element in the same package. What I want is to add resp. reference several diagrams in arbitrary packages. Did I do something wrong? V.
Sorry Viking, got it the wrong way round. 

You need to have the element (for which you want to create the custom diagram reference) visible on the current diagram.  You then select the "target" diagram in the browser.  Then: <Context Menu> | Add Custom Reference... and select the element you want the reference for from the list (in the current diagram).  This establishes the reference, now select the element in the current diagram and [Ctrl+J] should list the reference to the diagram you just made.

Did that work?  Does for us...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Element with Select Box (multiple hyperlinks)
« Reply #5 on: April 26, 2017, 05:14:51 pm »
Hi Viking,

Try selecting the item in the Project Browser and <Context Menu> | Add > Add Custom Reference

That may do what you want.  You can put references to more than one diagram, there I believe.

HTH,
Paolo
Hi Paolo, I can only select another Element in the same package. What I want is to add resp. reference several diagrams in arbitrary packages. Did I do something wrong? V.
Sorry Viking, got it the wrong way round. 
You need to have the element (for which you want to create the custom diagram reference) visible on the current diagram.  You then select the "target" diagram in the browser.  Then: <Context Menu> | Add Custom Reference... and select the element you want the reference for from the list (in the current diagram).  This establishes the reference, now select the element in the current diagram and [Ctrl+J] should list the reference to the diagram you just made.
Did that work?  Does for us...
Paolo
Hi Paolo, Thank you very much for your explanation. I did not know the concept. It works!
Do you add something to the element that the users see that there are references to the element (like the sign for the Child Diagram)? V.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element with Select Box (multiple hyperlinks)
« Reply #6 on: April 26, 2017, 05:21:10 pm »
[SNIP]
Hi Paolo, Thank you very much for your explanation. I did not know the concept. It works!
Do you add something to the element that the users see that there are references to the element (like the sign for the Child Diagram)? V.
Yes, we only came across it recently.   Looks pretty useful!

However, as you suggest, there doesn't seem to be any way for a shapescript to detect the presence of the references.  If you create a feature request, I'll support it.

If it proves popular with us, I'll look at creating a Tagged value automatically and using that to render a widget on the shape.  But, it would be MUCH better if Sparx gave us access to them via the shape script directly.

In the meantime, a Sparxian widget on the shape would also be better than nothing.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!