Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Accessing views variable in operation action(operation action variable views diagram)
Accessing views variable in operation action [message #1802366] Thu, 07 February 2019 12:06 Go to next message
Mars Keez is currently offline Mars KeezFriend
Messages: 16
Registered: January 2015
Junior Member
Hi All

I'm in an operation action (see attachment). Had some trouble accessing the views variable, so for testing purposes I pop up a dialog box to see the value of the variable:

a) "aql:'' + views.name" shows the views variable name as expected: "Company" (when applied to the node "Company")
however
b) "aql:views.name" shows empty string
c) "aql:views.name.toString()" shows empty string
moreover
d) "aql:if views.name='Company' then 'fine' else 'fail' endif" shows fail
e) "aql:if ('' + views.name)='Company' then 'fine' else 'fail' endif" shows fine
although
f) setting the context to views and "aql:self.name" shows "Company"

Seems there is sth. wrong with the views variable in general?

So long
make

PS
this is part of a larger problem, of accessing the views variable at all
Re: Accessing views variable in operation action [message #1802985 is a reply to message #1802366] Wed, 20 February 2019 09:08 Go to previous message
Mars Keez is currently offline Mars KeezFriend
Messages: 16
Registered: January 2015
Junior Member
Finally, the solution:

"views" is a Collection, not an Object.

Life is simple
:o)
Previous Topic:Sirius to visio
Next Topic:diagram layout with ELK
Goto Forum:
  


Current Time: Mon Aug 26 00:48:05 GMT 2019

Powered by FUDForum. Page generated in 0.03870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top