walekarsa - Thursday, October 22, 2009 3:29 AM:
Hi All,
I have a unique requirement, wherein I want to see a product with its relationships in the form of a tree. THe product will is made up of different ITEM TYPES say part, Documents, screws, nuts). Each ITem type will have its own set of attributes. I Want to display the product as an hirarchical aggregate of item Type with the correponding attributes besides them.
With Regards,
PeterSchroer - Thursday, October 22, 2009 8:04 AM:
A couple suggestions: (In order of programming fun, lowest to most interesting)
(1) Structure Browser (right mouse menu from main grid) will show all the relaled items, and if you change the definition of Keyed_Name you can get additional attributes displayed on each node
(2) check out the Multi-Level-BOM community package. This shows a quick easy way to build a Tree+Grid display that is multiple levels deep. The posted sample just navigates Part-Part BOM -Part structure.... but should be an easy programming task to include any relationshiptTypes.
(3) Create your own View on a Tear-Off Window Tab, or create a pop-up Dialog, into which you put 3 controls. ToolBar across the top, Structure Browser on the left lower panel, and the Grid control on the lower right panel. Pass the new dialog the ID and ItemType of the top of your tree, and then use a Server method to crawl the structure (all of it, or more efficiently, only 2 levels of structure). Use the structure browser in the lower left panel to display the multiple level structure, giving the user nice controls for drilling down, or re-arranging structure. Whenever the user selects a Node it the Structure Browser, your code does 2 things (a) run the server method again to see if there is any deeper structure to add to the display, and (b) get the attributes for the highlighted item, and display them in the grid in the lower right panel. Since each ItemType is likely to have different Properties, you will be modifying the grid cells and their column titles with each mouse click. For extra credit, we let the user highlight many Nodes in the structure browser, and for all highlighted nodes, the attributes are displayed as rows in the Grid panel. (you have to decide if you only show common properties, or you re-use a column for different property names). For advanced credit, if the highlighted Item has a thumbnail, or is a Document, put a view of the image or file below the Grid in the lower right panel.
#3 would be pretty interesting. Anyone interested in helping us build it?
Peter