Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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