Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 如何在VisualStudio中的同一文本框中插入标签和字段值?_Reporting Services_Axapta_Dynamics Ax 2012 - Fatal编程技术网

Reporting services 如何在VisualStudio中的同一文本框中插入标签和字段值?

Reporting services 如何在VisualStudio中的同一文本框中插入标签和字段值?,reporting-services,axapta,dynamics-ax-2012,Reporting Services,Axapta,Dynamics Ax 2012,我是Visual Studio的初学者 在PrecisionDesign中的文本框中如何插入标签和字段值 我想要这样的结果: MyLabel:字段值 我在表达式属性中使用了以下代码: 但它不起作用 为什么会这样?Dynamics AX标签以“@”符号、标签文件代码和数字命名。例如,文本“Item”的一个系统标签是@SYS7407。这就是在表单和报表中使用标签所需的代码 在SSRS中,使用标签的表达式是=Labels。因此,对于您的情况,字段的表达式如下所示(使用我的项目标签): 如果您实际上是指

我是Visual Studio的初学者

在PrecisionDesign中的文本框中如何插入标签和字段值

我想要这样的结果:

MyLabel:字段值

我在表达式属性中使用了以下代码:

但它不起作用


为什么会这样?

Dynamics AX标签以“@”符号、标签文件代码和数字命名。例如,文本“Item”的一个系统标签是
@SYS7407
。这就是在表单和报表中使用标签所需的代码

在SSRS中,使用标签的表达式是
=Labels。因此,对于您的情况,字段的表达式如下所示(使用我的项目标签):

如果您实际上是指一个用于标记字段的静态字符串,那么在您的示例中,您只需使用加号来连接,而不是使用符号和:

="MyLabel: " + Fields!M_myField.Value

M_myField是数字字段吗?如果是这样,您需要将其转换为字符串
=Labels!@SYS7407 + ': ' + Fields!M_myField.Value
="MyLabel: " + Fields!M_myField.Value