Skip to content

Instantly share code, notes, and snippets.

@yuriycto
Created May 11, 2022 18:51
Show Gist options
  • Save yuriycto/6e386bbc7bee20ee75765671e00d178a to your computer and use it in GitHub Desktop.
Save yuriycto/6e386bbc7bee20ee75765671e00d178a to your computer and use it in GitHub Desktop.
<ActionBar>
<CustomItems>
<px:PXToolBarButton Text="Insert Row" SyncText="false" DependOnGrid="grid" ImageSet="main" ImageKey="AddNew">
<AutoCallBack Target="ds" Command="AddNewDSLine" />
<ActionBar ToolBarVisible="External" MenuVisible="true" /></px:PXToolBarButton>
</CustomItems>
</ActionBar>
namespace PX.Objects.SO
{
public class SOOrderEntry_Extension : PXGraphExtension<SOOrderEntry>
{
#region Event Handlers
public PXAction<SOLine> AddNewDSLine;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "Insert Line", Enabled = true, MapEnableRights = PXCacheRights.Select,
MapViewRights = PXCacheRights.Select)]
protected virtual IEnumerable addNewDSLine(PXAdapter adapter)
{
return adapter.Get();
}
#endregion
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment