![]() |
How can I set value for the property ? |
Post Reply
|
Page <12 |
| Author | |
janne
MetaCase
Joined: 25.Mar.2008 Points: 58 |
Post Options
Thanks(0)
Quote Reply
Posted: 05.Jun.2013 at 08:37 |
|
How about the following: collect all the visited elements to one variable (reported_elements) and test before reporting has this element been reported earlier. Similar structure can be found from Metrics generator (Generator editor | Ghange Graph Type... | Graph)
First call '_translators' subreport (wildsp translator needed later in comparison) and initialize a variable ($reported_elements) having all the visited elements: subreport '_translators' run $reported_elements = ' ' Then inside the foreach loop, check has the current object oid been reported earlier, if not --> go ahead and add the current oid first to the variable and a space. Wildcard comparison (=~) searches space-separated values from the $reported_elements. if not $reported_elements =~ oid%wildsp then variable 'reported_elements' append oid ' ' close /* Here comes the part for elements which have not been reported earlier */ endif Edited by janne - 05.Jun.2013 at 14:31 |
|
![]() |
|
Post Reply
|
Page <12 |
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |