gpt4 book ai didi

javascript - 传递参数时在 SSRS 的新窗口中打开 URL

转载 作者:行者123 更新时间:2023-11-30 12:33:27 25 4
gpt4 key购买 nike

我正在尝试使用下面的代码打开一个新窗口,同时向 url 传递一个值。

="javascript:void(window.open(' http://MYSite.aspx?acctcode= "&Fields!Account.Value', '_blank'))"

当前链接正在显示,但当我点击它时没有任何反应。

最佳答案

Requirement: I have requirement to open second report in new window by clicking
field in first report. My second report is having input parameter
which is used to filter the data in second report. For Example,
First Report Data         Second Report Data----------------         -------------------   DitrictID           DistrictID CityID CityName   3                     6         2      XYZ14                    3         1      pqr 5                     6         3      zzz6
我想显示带有地区 ID 列表的第一份报告,当我单击任何
特定 DistrictID 它应该向第二份报告提供 DitrictID 以显示
城市属于提供的 districtId(在上面的示例中单击 DitrcitId 6< br/> 将在第二份报告中显示城市 XYZ 和 XXX。解决方案:----------为了达成这个:右键单击第一个报告中 districtId 的文本框属性,然后
操作->选择“转到 URL”-> 将表达式设置为="javascript:void(window.open('http://serverName/ReportServer/?%2fFolderName%2fReportName&rs:Command =Render&DistrictId="& Field!DistrictId.Value & "','_blank'))"根据您的服务器和
报告详细信息替换上面表达式中以粗体突出显示的值。这对我有用,希望对你也有帮助。干杯!

关于javascript - 传递参数时在 SSRS 的新窗口中打开 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26894333/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com