MES custom button DISable

That made more sense. I went through the wizard to add the code. I didn’t see the event type “EpiViewNotification” before. Thanks for the tip on that! All I had to do then was change:

EpiTransaction.NotifyType.AddRow to EpiTransaction.NotifyType.Initialize

Then I added my read only statements and it works great now.

	if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
	{
		if ((args.Row > -1))
		{
		StartButton.ReadOnly = false;
		EndButton.ReadOnly = false;
		}
		else
		{
		StartButton.ReadOnly = true;
		EndButton.ReadOnly = true;
		}
		
	}
2 Likes