On the RowSelected Event, I am checking parameters and displaying a popup. The popup is working, but it displays the popup an endless number of times. I have tried adding a cookie when the dialog is displayed and required the cookie to not be there for the dialog to display again, but that does not seem to work.
var response = HttpContext.Current.Response;
if (!response.Cookies.AllKeys.Contains("mycookie")){
HttpCookie mycookie = new HttpCookie("mycookie");
response.Cookies.Remove("mycookie");
response.Cookies.Add(mycookie);
Base.Document.Ask("This is a TEST.", MessageButtons.OK);
return;
}
I am news to Acumatica Development, so any guidance or tips would be appreciated!