两个字段合二为一 - Dynamics AX 中的表
Two fields in one - tables in dynamics AX
我必须在 Dynamics AX 中为 table 创建方法,该方法将一个字段中的一个 table 中的两个字段连接起来。例如姓名+姓氏显示在一个字段中。我该怎么做?
像这样创建 display
method:
public display PersonName fullName()
{
return this.FirstName + ' ' + this.LastName;
}
另见 edit
method。
要连接两个(或更多)字段,您可以使用 StrFmt()
方法。
示例:
str fullName;
fullName = strFmt("%1 %2", this.Name, this.Surname);
我必须在 Dynamics AX 中为 table 创建方法,该方法将一个字段中的一个 table 中的两个字段连接起来。例如姓名+姓氏显示在一个字段中。我该怎么做?
像这样创建 display
method:
public display PersonName fullName()
{
return this.FirstName + ' ' + this.LastName;
}
另见 edit
method。
要连接两个(或更多)字段,您可以使用 StrFmt()
方法。
示例:
str fullName;
fullName = strFmt("%1 %2", this.Name, this.Surname);