Print Page | Close Window

Accessing Data from Subgraphs

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=40
Printed Date: 27.Mar.2026 at 05:08
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Accessing Data from Subgraphs
Posted By: Dagijoana
Subject: Accessing Data from Subgraphs
Date Posted: 14.Jun.2008 at 21:57
Hello,

my structure is similar to the one of the digital wristwatch example. I have a Family Metamodel Graph Type and an Application Graph Type. I started to build the Generator for my FamilyGraph, which has an Application Graph as a Subgraph. I need to integrate information from there, how can I do that? Embarrassed

Thanks,

Dagijoana



Replies:
Posted By: stevek
Date Posted: 16.Jun.2008 at 12:45
Hello Dagijoana!
 
You can use the http://www.metacase.com/support/45/manuals/mwb/Mw-5_3_4.html#_Ref190593893 - - do decompositions  commands, depending on which type of subgraph link you want to follow. Inside the do loop you'll be in the subgraph, and can use a foreach loop to iterate over the objects etc.
 
It's normally a good idea to run a subreport for the things you want to do in the subgraph. The top level generator will be in your FamilyGraph graph type, and the subgenerator will be in your ApplicationGraph graph type. E.g. in FamilyGraph you might have:
 
foreach .ApplicationObject
{  do decompositions
   {  subreport 'AppCode' run
   }
}
 
To create the AppCode subreport in ApplicationGraph rather than FamilyGraph, open a new Generator Editor for ApplicationGraph (or use Generator | Change Graph Type... in an open Generator Editor).



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net