[英]How to add custom action button on grid acumatica
Hello i have search alot on how i can do this but i cant seem to make it work.您好,我已经搜索了很多有关如何执行此操作的信息,但我似乎无法使其正常工作。 so i want to add an action button on my grid.
所以我想在我的网格上添加一个动作按钮。 i want to add calculate price on here on the circle
我想在圆上的这里添加计算价格
public PXAction<PX.Objects.CR.CROpportunity> CalcPrice;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "CalculatePrice")]
protected void calcPrice()
{
}
i added my action button on my graph and then i put a button on the grid right here我在图表上添加了操作按钮,然后在此处的网格上放置了一个按钮
but its not working i put it on document detail tab then i added a button am i doing it right?但它不起作用我把它放在文档详细信息选项卡上然后我添加了一个按钮我做对了吗? thank you in advance for helping me
预先感谢你帮助我
I think you can try somethink like that我想你可以尝试这样的想法
public PXAction<PRPayroll> Calculate;
[PXButton]
[PXUIField(DisplayName = "Calculate")]
public virtual IEnumerable calculate(PXAdapter adapter)
{
return adapter.Get();
}
and in the.aspx add this one并在.aspx 中添加这个
<ActionBar ActionsText="True">
<CustomItems>
<px:PXToolBarButton>
<AutoCallBack Command="Calculate" Target="ds" >
</AutoCallBack>
</px:PXToolBarButton>
</CustomItems>
</ActionBar>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.