on 02-08-2007 2:58 PM
Hi Mdm guru,
I have to sort the getHierarchy results.
In the MDM Data Manager is possible "Sort Entire Branch" (in the context menu).
My question: there is a method in the Java Api for this funtionality?
Best Regards
Hi Rocco,
It depends upon <i>which</i> API you are using. The API <b>mdm4j</b> has a function
CatalogData.GetChildren()
which has a parameter for defining the sort field. So you can create your own recursive function which drills down through a hierarchy, creating each level sorted.
The class <b>SortDefinition</b> belongs to the "new" API <b>MDMJavaAPI</b>, but at present I do not see a way of gettting a sorted hierarchy with this API.
Walter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rocco,
Hope this helps you.
java.lang.Object
com.sap.mdm.data.SortDefinition
-
public class SortDefinition
extends java.lang.Object
This class includes information how the records retrieved from repository should be sorted in result set.
Regards,
Anish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.