Open Forum

Expand all | Collapse all

How to change the default sort order for Item History

  • 1.  How to change the default sort order for Item History

    Posted Aug 20, 2021 10:42 AM
    Edited by Ankit Jana Aug 20, 2021 10:43 AM
    Hi Everyone,

    Newbie here. I was wondering if it's possible to change the default sorting order in the Item History window (Inventory->History).
    When I enter an item, it displays the results in the following order by default:

    Is it possible to reverse the default order?

    Thanks,
    Ankit


    ------------------------------
    Ankit Jana
    Montreal
    ------------------------------


  • 2.  RE: How to change the default sort order for Item History

    GPUG ALL STAR
    Posted Aug 23, 2021 05:37 PM
    Hi Ankit,
    There is no way you can change the layout of the grid in the bottom of this window if that's what you meant by 'sorting' the output.. 


    But you could create your own smartlist or Excel report based on the content that's coming from the underlying tables or use the built-in view which is going to return the same result: [InventorySalesSummaryPeriod_History]
    I'm fairly confident there is already an existing Excel or SSRS reports that would be part of the out-of-the-box GP reports. 



    ------------------------------
    Beat Bucher
    Business Analyst, Dynamics GP SME
    Montreal QC/Canada
    @GP_Beat http://www.gp-geek.com
    Montreal QC GPUG Chapter Leader
    MBS MVP (2015-2018)
    All-Star 2013
    ------------------------------



  • 3.  RE: How to change the default sort order for Item History

    GPUG ALL STAR
    Posted Aug 24, 2021 05:38 AM
    @Ankit Jana

    There is no option via the standard application.

    However I could make this customization in a few minutes using GP Power Tools - Developer Tools module.

    it would just need a few triggers to make it happen.

    Regards

    David

    ------------------------------
    David Musgrave MVP, GPUG All-Star

    Managing Director
    Winthrop Development Consultants

    Perth, Western Australia

    http://www.winthropdc.com
    ------------------------------



  • 4.  RE: How to change the default sort order for Item History

    Posted Aug 24, 2021 08:10 AM
    Edited by Ankit Jana Aug 24, 2021 08:33 AM
    Thank you so much for your responses @Beat Bucher @David Musgrave
    @David Musgrave, we already have GP Power Tools, can you please let me know how to add those triggers or where can I find the instructions to make the change.​

    ------------------------------
    Ankit Jana
    Montreal
    ------------------------------



  • 5.  RE: How to change the default sort order for Item History

    GPUG ALL STAR
    Posted Aug 24, 2021 10:18 AM
    Hi @Ankit Jana

    You don't have a valid company name listed so I cannot check your registration for you.

    Please check the Registration window and confirm that the Developer Tools module is registered.

    This module is required to be able to run any custom scripts and triggers.

    Regards

    David​

    ------------------------------
    David Musgrave MVP, GPUG All-Star

    Managing Director
    Winthrop Development Consultants

    Perth, Western Australia

    http://www.winthropdc.com
    ------------------------------



  • 6.  RE: How to change the default sort order for Item History

    Posted Aug 24, 2021 10:34 AM
    Edited by Ankit Jana Aug 24, 2021 10:34 AM
    Hi @David Musgrave

    It's registered under ​Conglom Inc. I went through your blog
    and I was able to set up a trigger to change the default selection to 'Hist. & Proj. Annual' from 'All'.
    But I was not able to find the field responsible for sorting the results by date in descending order in the Item History Window to set up the trigger.

    Thanks

    ------------------------------
    Ankit Jana
    Montreal
    ------------------------------



  • 7.  RE: How to change the default sort order for Item History

    GPUG ALL STAR
    Posted Aug 24, 2021 10:46 AM
    @Ankit Jana

    The coding required is more complex as it requires concepts such as auto disabling triggers to capture and store table references, creating of temporary Dexterity indexes (in Descending order) and forcing the window to redisplay using the new index id. 

    This is something that most people would say is not possible, but that is just an extra challenge to be met.

    I will have a look at what is needed.

    Regards

    David​

    ------------------------------
    David Musgrave MVP, GPUG All-Star

    Managing Director
    Winthrop Development Consultants

    Perth, Western Australia

    http://www.winthropdc.com
    ------------------------------



  • 8.  RE: How to change the default sort order for Item History

    Posted Aug 25, 2021 08:31 AM
    David, I would be interested in seeing what you come up with as well since we have a few windows that we would like to be able to sort differently.  

    Thanks for being such a responsive member on these pages.

    ------------------------------
    Greg Wahl
    IT Applications Supervisor
    Owensboro Municipal Utilities
    Owensboro KY
    ------------------------------



  • 9.  RE: How to change the default sort order for Item History

    GPUG ALL STAR
    Posted Aug 26, 2021 06:47 AM

    Hi All

    You will be pleased to know that the concept works.

    I have been able to reverse the order of the data display on the Item History window.

    I need to do a little more work to make sure all the options work and then I will post the example on the blog.

    To make sure you see the article, subscribe to http://WinthropDC.com/Blog.

    Regards

    David



    ------------------------------
    David Musgrave MVP, GPUG All-Star

    Managing Director
    Winthrop Development Consultants

    Perth, Western Australia

    http://www.winthropdc.com
    ------------------------------



  • 10.  RE: How to change the default sort order for Item History

    Posted Aug 26, 2021 08:24 AM

    Great, Thanks Dave.  I will be sure to keep an eye out for that blog.

     

    Greg Wahl

    IT Applications Supervisor

    Owensboro Municipal Utilities

    270-926-3200 x4109

     

    CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message.





  • 11.  RE: How to change the default sort order for Item History

    Posted Aug 26, 2021 08:49 AM
    Edited by Ankit Jana Aug 26, 2021 08:48 AM
    @David Musgrave
    Great news!!
    I will be looking forward to that article :)
    ​​

    ------------------------------
    Ankit Jana
    Montreal
    ------------------------------



  • 12.  RE: How to change the default sort order for Item History

    GPUG ALL STAR
    Posted Aug 30, 2021 02:30 AM

    Article published today

    https://winthropdc.wordpress.com/2021/08/30/gppt-reversing-the-sort-order-of-the-item-history-window/

    Regards

    David



    ------------------------------
    David Musgrave MVP, GPUG All-Star

    Managing Director
    Winthrop Development Consultants

    Perth, Western Australia

    http://www.winthropdc.com
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role