Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
599 views
in Technique[技术] by (71.8m points)

reporting services - SSRS - Trying to pass lengthy parameters to a report and opening in a new window

I am trying to open a report (From a report which is RDL) in a new window by using the command:

<Action>
    <Hyperlink>="javascript:void(window.open('http://...&param1=ddd&param2=fff&....

This is working fine for less number of parameters. But, For lengthier ones, The pop-up window is not getting opened. My client is using browser, IE 6, 7 & 8. This is not working in any of these 3 IE versions. Is there any way to make this request to be a POST method instead of GET. Can we write Javascript function inside RDL. Please guide to find a solution for this. I an new to SSRS.

Thanks,

Vivek

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can POST data to reporting server URL with parameters as form variables.

Example -

<form id="frmRenderReport" action="http://YOUR_REPORT_SERVER_URL" method="post" target="_blank">
    <input type="hidden" name="rs:Command" value="Render" />
    <input type="hidden" name="rc:LinkTarget" value="main" />
    <input type="hidden" name="rs:Format" value="HTML4.0" /> <!-- report format -->
    <input type="hidden" name="rc:Parameters" value="false" />  <!-- display report parameters -->
    <input type="hidden" name="param1" value="ddd" /> <!-- Parameter 1 -->
    <input type="hidden" name="param2" value="fff" /> <!-- Parameter 2, etc -->
    <input type="submit" value="Generate Report"/>
    </form>

Note: the name(s) of parameters have to match the names defined in the RDL


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...