Skip to main content



      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 07:06 Go to next message
Eclipse UserFriend
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 04:08 Go to previous message
Eclipse UserFriend
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: Sun May 18 04:35:24 EDT 2025

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

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

Back to the top