Created
May 11, 2022 18:51
-
-
Save yuriycto/6e386bbc7bee20ee75765671e00d178a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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