Hello
@Opher Banarie,
I think that your javscript (thread) works more fast than the IBM Cognos Analytics for set the param values (another thread). Try to call the "Finish" button in Cognos Analytics through javascript when you finish to set all the prompt params in the prompt page.
You can do this by this way:
1 - Establish a name to the FInish button.
I wish that this solve your problem.
Best Regards.
------------------------------
Robert Berchtold Palacios
Business Intelligence Developer
Saima Abassy
Sant Cugat del Vallés
------------------------------
Original Message:
Sent: Wed January 29, 2020 04:26 PM
From: Opher Banarie
Subject: Prompts Set By JavaScript Correct Only AFTER First Execution
Hello - Hoping someone has seen this before and can suggest where I should be looking to correct it.
I have a very busy Prompt page (over 40 objects) with JavaScript code driving and validating selections.
All that works in other reports. But in one report the selected Prompt Value is not set properly the first time the report is executed.
But if the user then re-executes the same report in the same window with the same prompt values selected, this particular prompt value is set correctly.
Yes, it's strange to experience. Made my testing crazy because sometimes the value was there and other times it wasn't.
Anyone seen something like this before? Suggestions?
Thanks
------------------------------
Regards,
Opher
------------------------------
#CognosAnalyticswithWatson