Skip to main content

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

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

 


@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


@darylbowman  Just published it and it is working.

Thanks so much,

 

Phil


Reply