Skip to main content
Solved

Why does overriding the sort order on Inventory Transaction History break the hyperlinks? Is there a way around it?

  • 20 September 2022
  • 3 replies
  • 138 views

Forum|alt.badge.img+1

I have been asked to set the default sort for the Inventory Transaction History screen to sort by Descending Date order.  I found the following which does the job.  The only problem is it breaks the hyperlinks for Reference Nbr.  Clicking on Reference Nbr used to open the relevant Adjustment or Receipt but after adding this code they don’t work.  They still look like hyperlinks and accept the click but no page pops up.  Does anybody have any ideas why this happens and if there is a work around? Or if this is the wrong way to do this and there is a better way please let me know.

 

namespace PX.Objects.IN
{
  public class InventoryTranHistEnq_Extension : PXGraphExtension<InventoryTranHistEnq>
  {
    #region Event Handlers

    public override void Initialize()
    {
      Base.ResultRecords.OrderByNew<OrderBy<Desc<InventoryTranHistEnqResult.tranDate>>>();

    }



    #endregion
  }
}

 Thanks for any help or advice,

 

Phil

Best answer by darylbowman

I can’t tell you why that happens or if that’s the correct way to do it, but have you tried this?

 

View original
Did this topic help you find an answer to your question?

3 replies

darylbowman
Captain II
Forum|alt.badge.img+13
  • 1593 replies
  • Answer
  • September 20, 2022

I can’t tell you why that happens or if that’s the correct way to do it, but have you tried this?

 


Forum|alt.badge.img+1
  • Author
  • Semi-Pro I
  • 131 replies
  • September 20, 2022

@darylbowman That looks a better way.  I missed that in trying to find where to set a default sort.  I can’t test now as the system is in use but I’ll try later. 

Thanks.

Phil


Forum|alt.badge.img+1
  • Author
  • Semi-Pro I
  • 131 replies
  • September 21, 2022

@darylbowman  Just published it and it is working.

Thanks so much,

 

Phil


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings