Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2018 08:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
using System;
using PX.Objects;
using PX.Data;
namespace PX.Data
public class LEPMaint_Extension : PXGraphExtension<LEPMaint>
#region Event Handlers
public PXAction<PX.Data.ListEntryPoint> ToggleActivation;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "Toggle Activation")]
protected void toggleActivation()
ListEntryPoint first = Base.Items.Select();
if(first != null)
bool val = !first.IsActive ?? false;
foreach(ListEntryPoint row in Base.Items.Select())
row.IsActive = val;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment