简体   繁体   English

子报表参数未显示为用于在Crystal Reports 2008中链接的可选参数

[英]Subreport parameter not showing as a selectable parameter for linking in crystal reports 2008

I have a crystal report designed in vs 2008 crystal reports. 我在2008年的水晶报告中设计了一份水晶报告。 There is the main report and 3 sub reports. 主要报告和3份子报告。 Each of these sub reports and the main one have information generated by a report number the fields are not named the same but in two of the three sub reports i have been able to link the parameter to the main report parameter that i am passing in the code behind. 这些子报告和主要报告中的每一个都具有由报告编号生成的信息,这些信息的字段名称不相同,但在三个子报告中的两个中,我能够将参数链接到我在其中传递的主报告参数代码背后。 However when I go to link the third subreport the parameter used is not showing up in the dropdown used to select the parameter to link. 但是当我去链接第三个子报表时,使用的参数没有显示在用于选择要链接的参数的下拉列表中。 Anyone have any ideas why this might be happening. 任何人都有任何想法为什么会发生这种情况。

I have a horrible tendency to speak in shorthand so if you need more info let me know and I will do my best to answer. 我有一种用速记说话的可怕倾向,所以如果你需要更多信息让我知道,我会尽我所能回答。 Thank you for your help. 谢谢您的帮助。

Ensure that the fields that you intend to link are the same data type. 确保要链接的字段是相同的数据类型。

Incidentally, this is how Crystal Reports 'supports' heterogeneous joins. 顺便说一句,这就是Crystal Reports支持异构连接的方式。 You can link a string to a numeric value, as long as you convert one of the fields to match the data type of the other (via a formula field). 您可以将字符串链接到数值,只要您转换其中一个字段以匹配另一个字段的数据类型(通过公式字段)。

I've also gotten around the heterogeneous-join issue by converting one of the fields using a SQL-expression field. 我还通过使用SQL表达式字段转换其中一个字段来解决异构连接问题。 Then you perform the 'linking' in the record-selection formula. 然后在记录选择公式中执行“链接”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM