Hello,
i want to add a action with the type “Navigation: Sidepanel” to the QuoteMaint graph. My issue is, that despite no errors and the method executing there is no sidepanel appearing.
I have used the same approach for SOShipmentEntry and three other graphs, were the sidepanels appeared and worked correctly.
I checked that QuoteMaint already has an existing workflow and that there are no other customizations or extensions interfering.
Could the issue be a restriction in the workflow of QuoteMaint?
Every idea or tip is highly appreciated :) Thank you
using PX.Data;
using PX.Data.WorkflowAPI;
using PX.Objects.CR;
using PX.Objects.PM.CacheExtensions;
using PX.Objects.SO;
namespace PX.Objects.CR
{
public class QuoteMaint_Test_Extension : PXGraphExtension<PX.Objects.CR.QuoteMaint>
{
public sealed override void Configure(PXScreenConfiguration config)
{
Configure(config.GetScreenConfigurationContext<QuoteMaint, CRQuote>());
}
protected static void Configure(WorkflowContext<QuoteMaint, CRQuote> context)
{
PXTrace.WriteInformation("Configure start");
var sidePanel = context.Navigation.SidePanel(screen => screen
.NavigateToScreen("TE502010")
.WithIcon("folder_open")
.WithAssignments(filler =>
{
filler.Add(nameof(CRQuote.QuoteNbr), c => c.SetFromField<CRQuote.quoteNbr>());
}
));
var action = context.ActionDefinitions.CreateNew("SidepanelQuoteMaintActionTest", a => a
.DisplayName("DMS")
.IsSidePanelScreen(sidePanel)
);
PXTrace.WriteInformation("Configure variables declared");
context.UpdateScreenConfigurationFor(screen =>
{
return screen
.WithActions(actions => { actions.Add(action); });
});
}
}
}