Cognos Analytics

 View Only
  • 1.  Error when using Javascript in prompt page of active report

    Posted Tue November 05, 2019 10:34 AM
    Hello,
    I have a problem when I use javascript in the active report prompt pages.
    while I am editing the active report I run the report for test it, it works
    After that I save the report. I run the report and receive the error
    Cognos Analytics 11.0.12 on windows environment
    error when run active report with javascript
    can someone help me?
    Thanks
    Massimo

    ------------------------------
    Massimo
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Error when using Javascript in prompt page of active report

    Posted Wed November 06, 2019 01:12 PM
    @Massimo Deambrogio Can you provide a copy of the report spec? I would like to see how the report is authored and the custom JS being used.​

    ------------------------------
    DENNY NAREZNY
    ------------------------------



  • 3.  RE: Error when using Javascript in prompt page of active report

    Posted Wed November 06, 2019 04:30 PM
    Hello Denny,
    thanks for the help,
    the report in attach use the sample package Go sales (Query).
    I have also uploaded the two javascript used in the report, they are those of samples released by IBM
    Massimo

    ------------------------------
    Massimo
    ------------------------------

    Attachment(s)

    js
    DatePromptPresets.js   10 KB 1 version
    txt
    AR javascript.txt   8 KB 1 version
    js
    CustomFinishCancel.js   1004 B 1 version


  • 4.  RE: Error when using Javascript in prompt page of active report

    Posted Thu November 07, 2019 09:31 AM
    Edited by System Fri January 20, 2023 04:14 PM
    @Massimo Deambrogio You may be running into a variation of defect - PH02628: ERROR WHEN RUNNING A REPORT TO EXCEL FROM PORTAL WHEN REPORT CONTAINS JAVASCRIPT IN CUSTOM CONTROL

    I will test and validate if it is fixed for Active Reports in 11.1.4

    ------------------------------
    DENNY NAREZNY
    ------------------------------



  • 5.  RE: Error when using Javascript in prompt page of active report

    Posted Thu November 07, 2019 01:13 PM
    @Massimo Deambrogio I tested and can confirm the issue has been fixed for Active reports in 11.1.4. This has also been fixed in 11.0.13 FP2​.

    ------------------------------
    DENNY NAREZNY
    ------------------------------



  • 6.  RE: Error when using Javascript in prompt page of active report

    Posted Thu November 07, 2019 02:04 PM
    thanks Denny,
    as soon as I can I will upgrade cognos to the versions you recommended


    ------------------------------
    Massimo Deambrogio
    ------------------------------



  • 7.  RE: Error when using Javascript in prompt page of active report

    Posted Tue November 12, 2019 10:24 AM
    Thank you for the solution. I also experienced the same problem when creating the xiaomidev.com site. Thank you once again

    ------------------------------
    Luna Arista
    ------------------------------