Skip to main content
Solved

Issue with adding a sidepanel action to workflow of QuoteMaint (Screen CR304500)

  • January 20, 2025
  • 2 replies
  • 111 views

 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); });
});
}
}
}

 

 

Best answer by seyhanakifov

Hi, some classes need workflow class as argument on graph. <workflow, grapf>. Be sure that you use it.

2 replies

  • Freshman II
  • Answer
  • January 25, 2025

Hi, some classes need workflow class as argument on graph. <workflow, grapf>. Be sure that you use it.


  • Author
  • Freshman I
  • January 27, 2025

As ​@seyhanakifov suggested, adding the QuoteWorkflow as an argument resolved the issue. Thank you!

public class QuoteMaint_Test_Extension : PXGraphExtension<QuoteWorkflow, PX.Objects.CR.QuoteMaint>