MDS Web service, sorting Members from HierarchyMembersGet for an explicit hierarchy RRS feed

  • Question

  • Hi,

    I'm trying to build a TreeView from an explicit hierarchy through the MDS web service.  When my function completes 11 ParentChild members are available.  They appear to be in no particular order and SortOrder is set to 0.  Additionally all the ChildEntityIds are the same as all other ChildEntityIds.  RelationshipEntityIds and ParentEntityIds also match for each member.

    Does anyone know how it's intended to sort this HierarchyMembers into a TreeView or similar control/structure? 

    The hierarchy displays fine in MDS itself.

    Here's an example of how I'm retrieving the hierarchy:


          OperationResult opResult = new OperationResult();
          HierarchyMembersGetCriteria criteria = new HierarchyMembersGetCriteria();
          MetadataResultOptions rOpt = new MetadataResultOptions();
          criteria.VersionId = MDSVersion;
          criteria.ModelId = MDSModel;
          criteria.HierarchyId = hierarchyID;
          criteria.ParentMember = String.Empty;
          criteria.RowLimit = 0;
          criteria.HierarchyType = HierarchyType.Explicit;
          criteria.Ancestors = false;
          HierarchyMembers hm = mdsProxy.HierarchyMembersGet(new International(), criteria, out opResult);


    Tuesday, May 17, 2011 7:51 PM