I am trying to open the Inventory Summary screen with a PXRedirect and pass a parameter for the Inventory ID.
Dictionary<string, int> parameters = new Dictionary<string, int>();
var baseGraph = PXGraph.CreateInstance<InventorySummaryEnq>();
//hard coded for testing
//14998 = Inventory CD "1007"
parameters.Add("InventoryID", 14998);
throw new PXRedirectRequiredException(baseGraph, "Inventory Summary", parameters) { Mode = PXBaseRedirectException.WindowMode.Layer };
The Mode = part is because I am populating a side panel. Since I am opening the Inventory Summary screen via Javascript from an SO Line detail, I cannot do this from a standard Side Panel.
The Inventory Summary screen opens in the Side Panel, but the Inventory ID field is not being populated.
One option to get the data and display it in a side panel using a GI. But there are over 2000 lines of code in the Inventory Summary graph to calculate the values displayed on that screen. I don’t think that is an option.
Is there something wrong with my redirect?
Best answer by Naveen Boga
View original