MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Accessing Data from Subgraphs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Accessing Data from Subgraphs

 Post Reply Post Reply
Author
Message
Dagijoana View Drop Down
Major Contributor
Major Contributor


Joined: 14.Jun.2008
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dagijoana Quote  Post ReplyReply Direct Link To This Post Topic: Accessing Data from Subgraphs
    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
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post Posted: 16.Jun.2008 at 12:45
Hello Dagijoana!
 
You can use the do explosions or 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).
Back to Top
 Post Reply Post Reply

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.047 seconds.