![]() |
Accessing Data from Subgraphs |
Post Reply
|
| Author | |
Dagijoana
Major Contributor
Joined: 14.Jun.2008 Points: 22 |
Post Options
Thanks(0)
Quote Reply
Topic: Accessing Data from SubgraphsPosted: 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? ![]() Thanks, Dagijoana |
|
![]() |
|
stevek
MetaCase
Joined: 11.Mar.2008 Points: 643 |
Post Options
Thanks(0)
Quote Reply
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).
|
|
![]() |
|
Post Reply
|
|
| 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 |