The sample code below will only create a new tab for the first URL. The goal is to have Acumatica create two separate tabs for two different URLs.
int countFirst = 3;
int countSecond = 4;
if(countFirst > 0) {
throw new PXRedirectToUrlException(firstUrl, PXBaseRedirectException.WindowMode.New, "First");
}
if(countSecond > 0) {
throw new PXRedirectToUrlException(secondUrl, PXBaseRedirectException.WindowMode.New, "Second");
}