AQL: Recursive selection [message #1801518] |
Mon, 21 January 2019 10:37  |
Eclipse User |
|
|
|
Hi,
I have an Item with can have properties, which also can have properties.
I tried to get them in an elegant way recursively, but it does not work, but i don't want to use a service, since i will need this scenario quite often. It seems i overlooked a concept.
NAIVE Approach:
aql: self.properties + self.properties.subProperties + self.properties.subProperties.subProperties + self.properties.subProperties.subProperties.subProperties ....
How can i implement this?
Thanks,
Laurens
[Updated on: Wed, 23 January 2019 10:31] by Moderator
|
|
|
|
|
Re: AQL: Recursive selection [message #1801937 is a reply to message #1801931] |
Tue, 29 January 2019 11:02  |
Eclipse User |
|
|
|
Hello,
I think that in your metaclass, you should add an EOperation getAllProperties. In its implementation you have a recursive method that look for properties, sub-properties etc. This way in your odesign, you will just need to call "aql: self.getAllProperties".
Regards,
Steve
|
|
|
Powered by
FUDForum. Page generated in 0.03002 seconds