New Posts New Posts RSS Feed: Browse Model.EntityRelations
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Browse Model.EntityRelations

 Post Reply Post Reply
Author
jcdk View Drop Down
Newbie
Newbie


Joined: 25-Aug-2007
Location: Denmark
Posts: 11
Post Options Post Options   Quote jcdk Quote  Post ReplyReply Direct Link To This Post Topic: Browse Model.EntityRelations
    Posted: 11-Jan-2008 at 7:38am
Hi
 
is there a way to get a browseable list of entity relations in my model? I am aware of the Model.EntityRelations, but it doesn't really fit my need.
 
What I want to do is a sort of dynamic search tool that takes one business object as its first input and then suggests all the tables that have a direct relation to the selected table. To do that in an effective manner I need access to a browseable list of the relations of the first business object.
 
Best regards
Jesper Carstensen 
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 11-Jan-2008 at 9:51am
Model.Entity.Relations does have all of the information you need.  It is just that the information is presented in a way that is not easy for you to
build the browseable list.  However, it can be done.
 
I suggest that you create a utility or method that will do what you want it to do.  Get all of the Entity Relations in your application by calling GetEntityRelations() and then step through each of the entity relations to build the browseable list that you want.
Back to Top
jcdk View Drop Down
Newbie
Newbie


Joined: 25-Aug-2007
Location: Denmark
Posts: 11
Post Options Post Options   Quote jcdk Quote  Post ReplyReply Direct Link To This Post Posted: 11-Jan-2008 at 10:55am
Tongue Bingo, just what I needed.
 
Sometimes it's just a matter of finding the right way.
 
Thanks a lot.
 
Regards
Jesper Carstensen
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down