Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Last active December 1, 2023 12:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianMRO/6c37d15cb4578bf8edeae5a51b47b027 to your computer and use it in GitHub Desktop.
Save BrianMRO/6c37d15cb4578bf8edeae5a51b47b027 to your computer and use it in GitHub Desktop.
New Way of Adding Actions to Menus via Workflow
#region Workflow based menus
public override void Configure(PXScreenConfiguration config)
{
Configure(config.GetScreenConfigurationContext<InventoryItemMaint, InventoryItem>());
}
protected virtual void Configure(WorkflowContext<InventoryItemMaint, InventoryItem> context)
{
context.UpdateScreenConfigurationFor(screen =>
{
return screen
.WithActions(actions =>
{
actions.Add<InventoryItemMaint_Extension>(g => g.printLabel, a => a.InFolder(FolderType.ActionsFolder));
});
});
}
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment