Locate custom action (button) on SO line item grid
I have followed these instructions to move a custom action to the detail grid of sales order screen. It works in dev (localhost) but when I import package and publish to client production the button still shows on top toolbar. Not sure why.
So not sure why this didn’t make the trip in the export/import/publish.
Hi @rjean09 Hope you done the below steps.
Toolbar button should be added for the specific button at the Grid level in the Customization package.
Make sure Callback command should be Visible =false <px:PXDSCallbackCommand Name="ActionName" Visible="False" />
Hi @rjean09 Yes, it should be on .aspx page but NOT on the .aspx.cs file.
Since Toolbar button is missed, hence it is not showing on the Production instance.
Yes @rjean09 . I meant the aspx page.
Did you try to add the PXToolbarButton code in the customization package using the Edit Aspx option?
Right, nothing was missed as far as I can tell. All there in dev and working. After export, import to production and publish the toolbar button is not there.
Hi @rjean09 Can you please share the customization by removing all other files by keeping only SOOrder screen. That will help us to review and let you if you miss anything.
Update: It appears the problem was due to I had made customizations to the SO301000.aspx file on disk earlier when trying to change the button location. Then later I found instructions on how to do this inside the screen editor. Apparently, having it in both places is what caused the export/import/publish to somehow lose part of the change. I reverted the changes to the SO301000.aspx file, republished to target instance and now the button is located above the grid just like in my dev instance.