Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Dynamic Tree Menu

Author  Topic 

Cyclonik
Posting Yak Master

114 Posts

Posted - 2001-09-18 : 12:50:49
I am a procedure that builds an XML menu based on a users group membership and sec_level within that group.

The Menu table looks like this

LinkID | ParentID | MenuGroupID | GroupID | SecLevel | Name | Link

The Group Table Looks Like
GroupID | UserID | SecLevel

MenuGroup table
MenuGroupID | MenuGroupName

The Proc would take the the UserID and build the menu.
THe way it looks to me is i'll need a while loop to select the tree for each MenuGroup for each group the User belongs to. I am having trouble on how to build the recursive menu in this manner. After i get the menu in order i can then select it as an XML doc with for XML Explicit. Might any of you fine folk have any insight?

Thanks
Christian



-=:SpasmatiK:=-
   

- Advertisement -