PXException - 没有完整显示电子邮件
PXException - not showing email in full
我有一个在操作中抛出 PXException 的验证,并且消息有一个电子邮件地址。消息中未完整打印电子邮件,出现了一些奇怪的情况。
For example, it is showing "The following email is already in use:
myemail" instead of "The following email is already in use:
myemail@email.com" i.e. it removes the part of the email after the @
symbol.
我正在使用这种方法抛出错误:
throw new PXException(EDMessages.REGISTRATION_EMAIL_ALREADY_INUSE, row.Email);
这是标准的 Acumatica 行为吗?
作为解决方法,我可以尝试使用 Ask 而不是 PXException,但最好知道为什么会这样。
有强烈的迹象表明 Acumatica 使用该字符将异常消息路由到特定的 HTML 帧。内部格式是这样的:'$target=frame_name@message'.
我怀疑 Acumatica 框架中的这个 JavaScript 片段导致了问题:
// extraction of redirect message
var ar = result.split('@', 2), msg = ar.length > 1 ? ar[1] : null;
result = ar[0];
我有一个在操作中抛出 PXException 的验证,并且消息有一个电子邮件地址。消息中未完整打印电子邮件,出现了一些奇怪的情况。
For example, it is showing "The following email is already in use: myemail" instead of "The following email is already in use: myemail@email.com" i.e. it removes the part of the email after the @ symbol.
我正在使用这种方法抛出错误:
throw new PXException(EDMessages.REGISTRATION_EMAIL_ALREADY_INUSE, row.Email);
这是标准的 Acumatica 行为吗? 作为解决方法,我可以尝试使用 Ask 而不是 PXException,但最好知道为什么会这样。
有强烈的迹象表明 Acumatica 使用该字符将异常消息路由到特定的 HTML 帧。内部格式是这样的:'$target=frame_name@message'.
我怀疑 Acumatica 框架中的这个 JavaScript 片段导致了问题:
// extraction of redirect message
var ar = result.split('@', 2), msg = ar.length > 1 ? ar[1] : null;
result = ar[0];