Tree view in main grid

Hi there, I'm currently fumbling around with SP12 and am trying to get a tree grid view to display on the main grid instead of a relationship grid. For instance, I'd want to display all my Part BOMs in the main grid to allow users to manually browse through them. A next step would be to show both Part BOMs and Part Documents so users can navigate through the Part structure to find the Document item they want to work on/review etc. I manage to get the grid up and running in relationship grids using the Tree Grid View and Query builder but can't seem to get it to work in the main grid. To make things easier, our Part items have an "is_top" property to define whether or not the item is the top item in its respective Part BOM, so to gather the top elements for each Part BOM one just has to look for elements where the "is_top" property is set to 1. From there, the rest of each tree can be added.
Parents
  • Hello, The issue appears to be that the context of the HTML on the main grid is causing the relative paths to the image files to point to the wrong location. If I open the Chrome debugger tools and manually move the image path up two folders the image is displayed correctly. (../javascript/dojo/../../cbin/../Images/Refresh.svg becomes ../../../javascript/dojo/../../cbin/../Images/Refresh.svg) I haven't yet discovered a way to resolve this programmatically, but hopefully this information helps in your own search. Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hello, The issue appears to be that the context of the HTML on the main grid is causing the relative paths to the image files to point to the wrong location. If I open the Chrome debugger tools and manually move the image path up two folders the image is displayed correctly. (../javascript/dojo/../../cbin/../Images/Refresh.svg becomes ../../../javascript/dojo/../../cbin/../Images/Refresh.svg) I haven't yet discovered a way to resolve this programmatically, but hopefully this information helps in your own search. Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data