Accessing views variable in operation action [message #1802366] |
Thu, 07 February 2019 07:06  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03599 seconds