Page 1 of 1
Sort order in HierarchicalBand
Posted: Tue Jun 12, 2012 4:24 am
by csbrogi
Hello,
I am wondering about the sort order of child elements in hierarchical data bands:
is there a way to show child elements in the order they are in the XML-input file?
For me it looks as if they are displayed in random order?!
Thank you
Clemens
Sort order in HierarchicalBand
Posted: Tue Jun 12, 2012 8:55 am
by Alex K.
Hello,
Sorry, maybe we did not exactly understand your question.
As a way, you can add the additional column for the necessary order sorting.
Thank you.
Sort order in HierarchicalBand
Posted: Tue Jun 12, 2012 10:06 am
by csbrogi
Hello,
Sorry, maybe we did not exactly understand your question.
For example in the DokuDemo.xml
the Elements in the XML-file are ordered as
Code: Select all
Package
UseCase
UseCase 2
UseCase 3
so I expected,that they are displayed in this order, but instead they are ordered as
Code: Select all
Package
UseCase 3
UseCase
UseCase 2
As a way, you can add the additional column for the necessary order sorting.
that's not nice , but ok for me

Clemens
Sort order in HierarchicalBand
Posted: Wed Jun 13, 2012 2:50 am
by Alex K.
Hello,
Please try to set the Sort property for HierarchicalBand1 component.
Thank you.
Sort order in HierarchicalBand
Posted: Wed Jun 13, 2012 4:13 am
by csbrogi
Hello
and how can I set the sort order "Sort by order", if it is not allreadyset?
Thank you
Sort order in HierarchicalBand
Posted: Fri Jun 15, 2012 3:49 am
by csbrogi
Hello all
I used the Id field to sort the entries, but encountered the problem. that the entires are ordered in alpabetical order (i.e. 12 is in front of 2)
I got around this by using the following sort statement
Sort by Order, {"000000000".Substring(0, 5-System.Convert.ToString(ModellElement.ModellElement_Id).Length)+ModellElement.ModellElement_Id}
(only for the case, that somebody else is interesseted in this topic.)
Thank you
Clemens
Sort order in HierarchicalBand
Posted: Fri Jun 15, 2012 5:35 am
by Alex K.
Hello,
Most probably, the Id field is string type and because 12 is in front of 2.
Please send us yor report with test data for analysis.
Thank you.
Sort order in HierarchicalBand
Posted: Tue Jun 19, 2012 8:11 am
by csbrogi
Hello
yes the Id field is of type string. (it is the auto-generated key from stimulsoft).
My solution is good enough for me, I only posted it to help anybody having the same problem.
Regards,
Clemens
Sort order in HierarchicalBand
Posted: Wed Jun 20, 2012 2:37 am
by Alex K.
Hello,
Ok.
Let us know if you need any additional help.
Thank you.