如何将菜单添加到 Acumatica 按钮
How to add menu to Acumatica button
我在 Acumatica 中创建了图形。我还通过以下方式创建了按钮:
public PXAction<APBill> Report;
如何将此按钮转换为菜单按钮?
我建议你采用以下方式。假设你的图名为 APBillManager,那么在构造函数中你可以这样写:
public APBillManager()
{
this.Report.AddMenuAction(bankStatementReport);
}
public PXAction<PRPayroll> bankStatementReport;
[PXButton]
[PXUIField(DisplayName = "Bank Statement")]
protected void BankStatementReport()
{
}
我在 Acumatica 中创建了图形。我还通过以下方式创建了按钮:
public PXAction<APBill> Report;
如何将此按钮转换为菜单按钮?
我建议你采用以下方式。假设你的图名为 APBillManager,那么在构造函数中你可以这样写:
public APBillManager()
{
this.Report.AddMenuAction(bankStatementReport);
}
public PXAction<PRPayroll> bankStatementReport;
[PXButton]
[PXUIField(DisplayName = "Bank Statement")]
protected void BankStatementReport()
{
}