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