| Getting ID and Name from Requirements::Requirement [message #1828706] |
Wed, 17 June 2020 02:01  |
Eclipse User |
|
|
|
Hi all.
I'm trying to get ID and Name from a list of requirements.
When using iteration with Requirements::Requirement as type, I can get ID but not the NAME of each object. On the other hand when I iterate by using Class, I can get the NAME but not the ID of the Object.
I found an old topcased forum talking about this but I couldn't resolve the issue,
Can someone help me with this please?
I'm using the following template alternatives:
1-
<context ...'/>
<gendoc>
[for (r: Requirements::Requirement | Requirements::Requirement.allInstances()->sortedBy(id))]<drop/>
[r.id/]
[(r.text)/]
[r.name/] ****this fails****
[/for]
</gendoc>
2-
<context ...'/>
<gendoc>
[for (r: Class | self.ownedElement]<drop/>
[r.name/]
[r.id/] ****this fails****
[(r.text)/] ****this fails****
[/for]
</gendoc>
Hope I can get some help on this
Best Regards.
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07297 seconds