MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - How can I set value for the property ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I set value for the property ?

 Post Reply Post Reply Page  <12
Author
Message
janne View Drop Down
MetaCase
MetaCase
Avatar

Joined: 25.Mar.2008
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote janne Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.048 seconds.