Adding button on newly created tab

2019-09-08 17:11发布

I want to add a new button on toolbar of my newly created tab. While I am trying to add a button to my class which is bind to that tab, by default, it goes to the main toolbar at the top instead of on the tab toolbar. Any suggestion?

标签: acumatica
2条回答
在下西门庆
2楼-- · 2019-09-08 17:52

By default, all actions will show up in the main toolbar. To hide them, you need to add an entry in the CallbackCommands section of the page. For example, if you look at the customers page, you will find an "Add Contact" button in the Contacts tab. This button is not visible in the main toolbar because of this line in the CallbackCommands section:

<px:PXDSCallbackCommand Name="NewContact" Visible="False" CommitChanges="true" />
查看更多
贼婆χ
3楼-- · 2019-09-08 17:59

Along with above code fix, need to add below under grid also

<CustomItems>
    <px:PXToolBarButton Text="New Contact">
        <AutoCallBack Command="NewContact" Target="ds" />
    </px:PXToolBarButton>
</CustomItems>
查看更多
登录 后发表回答