Skip to content

Instantly share code, notes, and snippets.

@RobertWaiteREPAY
Created December 30, 2021 18:56
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 RobertWaiteREPAY/91015ab6ce9398298347763f98180129 to your computer and use it in GitHub Desktop.
Save RobertWaiteREPAY/91015ab6ce9398298347763f98180129 to your computer and use it in GitHub Desktop.
#region Test Record Creation
#if TroubleShootingCode
//note: 20211214 this exist as a means to step through CustomizationPlugin code as
// there is no means to step through and debug code during a publish.
// ReSharper disable once UnusedMember.Global
// ReSharper disable once InconsistentNaming
public PXAction<Survey> testRecordCreation;
[PXUIField(DisplayName = "Test", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)]
[PXButton]
// ReSharper disable once UnusedMember.Global
public virtual IEnumerable TestRecordCreation(PXAdapter adapter)
{
SurveyCustomizationPlugin scp = new SurveyCustomizationPlugin();
scp.InitializeSurveyComponents();
scp.InitializeSurveyAttributes();
return adapter.Get();
}
#endif
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment