Sorting results in Advanced System Reporter in Sitecore -
in sitecore's advanced system reporter (v1.3) shared source module, there out-of-the-box way of sorting results before results displayed email/screen or need implement myself?
in standard asr install, can see media viewer viewer configuration item has sort parameter in attributes field it's using asr.reports.items.itemviewer class which, after checking in reflector, doesn't respect sort parameter. take mean class might have respected sort parameter doesn't now.
as side thought, have thought scanner class more logical place put sorting logic @ viewer class level.
ok, found answer. sort parameter found used when running report asr module.
the sort parameter set in attributes , in following format:
sort=columnname,asc|desc,[datetime]
where column name display name of column, asc or desc sort direction , required , datetime set if column date time value.
example: given column formatting of
<columns> <column name="item name">item name</column> <column name="publish date">publish date</column> </columns>
to sort publish date descending, appropriate sort parameter
sort=publish date,desc,datetime
and sort item name, sort parameter be
sort=item name,asc
Comments
Post a Comment