Hello i am facing following problem.
I am have an report with a prompt page that contains three dates prompts. For each of these prompts I have added a JavaScript-Element so that a specific value is always selected. For this i have used following code:
<script type="text/javascript">
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest(): document.forms["formWarpRequest"]);
if(fW)
{
if(fW._oLstChoices1.length >= 1)
{
fW._oLstChoices1.selectedIndex = 18;
}
}
</script>
At the end i have a seperate list-prompt filled with static values, that runs the report automatically:
<script>
var form = getFormWarpRequest();
var list = form._oLstChoicesdummy;
list.selectedIndex = 0;
canSubmitPrompt();
setTimeout('oCVRS.promptAction(\'finish\')', 0);
</script>
When I open the report in Report Studio and click on "RUN", the report is executed automatically. But if I run the report outside of Report Studio, the prompt mask appears again and I have to click on "Finish/Run".
Has anyone faced silimiar problems and knows how to solve it?
Thanks in advance