Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

Report Explorer

edited December 2004 in Devices
Hi,

I would like to change the sort order in the report explorer, so is there
any way that we can change the default sort order of the folders in the
Report explorer.

Thanks in advance

Regards
aaa

Comments

  • edited December 2004

    The default sort mode for the listview is read from RBuilder.Ini. So you can
    run the report explorer, click the listview columns to have it sort on the
    desired column. Then exit the app and the next time you run it will display
    that sort order.

    If you are referring to the TreeView that appears on the left then you will
    need to create a custom report explorer form and register it as the
    replacement for the built-in form. For an example see
    RBuilder\Tutorials\Complete\Applications\Custom Report Explorer.

    The UpdateTreeView method is responsible for populating the treeview.





    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2004
    thanks for ur reply, i have the problem in sorting the treeview on the
    lefhand side, i am using the custom report explorer only, but unable to make
    out where in the GetFolderItems exactly is the sort order set, i have tried
    changing the sorttype property of the folder treeview to stNone, even then
    it does the sort on the alphabetical order, can u pl. help me with this
    problem as i am being stuck on this for a long period.

    thanks in advance

    Regards
    aaa

  • edited December 2004

    As I mentioned in my original reply, UpdateTreeView method is responsible
    for populating the treeview. That is the method that you need to modify.

    For example, if I comment out the following line, the treeview is not sorted
    at all.

    // trvFolders.AlphaSort;








    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.