Hi,
So which Web Part are you using? You mention
- Universal Hierarchy Viewer with Custom Table Data
- universal viewer with custom data
But those don't exist...
I tried doing as much as what you described and when I use the following I get working data:
Web Part:
Universal Viewer With Custom Query
properties:
- ID column: ItemID
- ParentID Column: ParentID
- Level column: Level
- Load hierarchical data: checked
- Use default hierarchical order: checked
Query:
SELECT 1 AS ItemID, NULL as ParentID, 0 as Level, 'Default' as [FolderName], null as DocumentName
UNION
SELECT 2 as ItemID, 1 AS ParentID, 1 as Level, null, 'File' as [DocumentName]
ORDER BY ##ORDERBY##
Hierarchical transformation:
Transformation (text/XML): (I've set both the same for demostration)
<p>
ItemID - {%ItemID%};
ParentID - {%ParentID%};
Level - {%Level%};
Folder - {%FolderName%};
Document - {%DocumentName%};
<p>
Result