Axapta 参数与所需类型不兼容
我试图将一些参数从一个类传递到另一个类,一个Axapta 参数与所需类型不兼容,axapta,dynamics-ax-2012,Axapta,Dynamics Ax 2012,我试图将一些参数从一个类传递到另一个类,一个自定义custable事件处理程序传递到一个自定义文档矩阵类 我想通过客户电子邮件,我正在使用: DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Email) 并将其传递给字符串EDT 这给了我一个错误: 参数与所需类型不兼容 如何更改参数passthrough,以便将返回值填入字符串EDT?此函数DirParty::p
自定义custable事件处理程序
传递到一个自定义文档矩阵类
我想通过客户电子邮件,我正在使用:
DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Email)
并将其传递给字符串EDT
这给了我一个错误:
参数与所需类型不兼容
如何更改参数passthrough,以便将返回值填入字符串EDT?此函数
DirParty::primaryElectronicAddress(custable.Party,LogisticsElectronicAddressMethodType::Email)
returnLogisticsElectronicAddress
如果您试图获取电子邮件的价值,请尝试以下操作:
LogisticsElectronicAddressLocator _LogisticsElectronicAddressLocator;
LogisticsElectronicAddress _LogisticsElectronicAddress;
;
_LogisticsElectronicAddress = DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Email);
_LogisticsElectronicAddressLocator = _LogisticsElectronicAddress.locator; //E-mail value
此函数
DirParty::primaryElectronicAddress(custable.Party,LogisticsElectronicAddressMethodType::Email)
returnLogisticsElectronicAddress
如果您试图获取电子邮件的价值,请尝试以下操作:
LogisticsElectronicAddressLocator _LogisticsElectronicAddressLocator;
LogisticsElectronicAddress _LogisticsElectronicAddress;
;
_LogisticsElectronicAddress = DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Email);
_LogisticsElectronicAddressLocator = _LogisticsElectronicAddress.locator; //E-mail value
如果您想获得客户的电子邮件,您可以使用:
CustTable custTable;
custTable.email();
方法返回客户的主电子邮件。如果您需要其他电子邮件而不是主电子邮件,可以在email()方法中检查它是如何完成的
致以最良好的祝愿,
克里斯蒂安如果您想收到客户的电子邮件,您可以使用:
CustTable custTable;
custTable.email();
方法返回客户的主电子邮件。如果您需要其他电子邮件而不是主电子邮件,可以在email()方法中检查它是如何完成的
致以最良好的祝愿,
克里斯蒂安我们需要更多的代码和信息。调用并将参数传递给的对象的方法声明是什么?如果它是一个事件处理程序,我怀疑它需要
xppprepostargs
,请参阅我们需要更多代码和更多信息。调用并将参数传递给的对象的方法声明是什么?如果它是一个事件处理程序,我怀疑它需要xppprepostargs
,请参阅