Skip to content

Instantly share code, notes, and snippets.

@jvanhoesen
Created November 23, 2020 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvanhoesen/19bb75eab4aca39c1228a86e16c5261a to your computer and use it in GitHub Desktop.
Save jvanhoesen/19bb75eab4aca39c1228a86e16c5261a to your computer and use it in GitHub Desktop.
New functionality setup graph
public class AATimeRequestSetupMaint : PXGraph<AATimeRequestSetupMaint>
{
#region Views
public PXSelect<AATimeRequestSetup> Setup;
public PXSelect<AATimeRequestApproval> SetupApproval;
#endregion
#region Buttons
public PXSave<AATimeRequestSetup> Save;
public PXCancel<AATimeRequestSetup> Cancel;
#endregion
#region Events
protected virtual void _(Events.FieldUpdated<AATimeRequestSetup, AATimeRequestSetup.timeRequestApproval> e)
{
AATimeRequestSetup row = e.Row;
if (row != null)
{
foreach (AATimeRequestApproval setup in SetupApproval.Select())
{
SetupApproval.SetValueExt<AATimeRequestApproval.isActive>(setup, row.TimeRequestApproval);
}
}
}
#endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment