Cognos Analytics

 View Only
  • 1.  Reset with Submit button not working for default selection

    Posted Tue February 28, 2023 09:56 AM

    Hi All,

    Currently i am using prompt in report page and gave default selection for that .So in initial run the report will get filtered based on default selection. After that User can choose the value from prompt and run the report.

    Report has 6 charts with 6 prompt .Each chart associated with one prompt (List box) .Used Javascript to reset values and reprompt button used for submission.

    In initial run based on default selection it was fetching data then if i change the values in prompt based on that it was working fine.

    when i reset the prompt values and give Submit(Reprompt) then it should go to default selection but that is not happening.

    Can you please suggest any method to achieve this.

    Thanks in advance.



    ------------------------------
    Thanks
    Pavithra N
    ------------------------------


  • 2.  RE: Reset with Submit button not working for default selection

    IBM Champion
    Posted Wed March 01, 2023 03:21 AM

    Hi Pavitra, You're looking for a way to reset to default selection? One way could be to work with saving prompt values to browser cookies by JavaScript. There is an example in the IBM samples. Depending on the case it could be easier to leave the default selection empty and work with the "empty selection". If you're using the parameters in data elements or mandatory filters you need to put a prompt-macro around the parameters and give them a default selection there. 



    ------------------------------
    Philipp Hornung
    Business Intelligence Manager
    Techniker Krankenkasse
    Hamburg Germany
    #IBMChampion
    ------------------------------



  • 3.  RE: Reset with Submit button not working for default selection

    Posted Fri March 03, 2023 05:28 AM

    Hi Philipp,

    Thanks for your response and valuable suggestion . Prompt macro was working fine in loading default selection after reset in charts. But after reset the default was not taking in Prompt. Is there any way to achieve in Prompts? Please suggest

    Thanks.



    ------------------------------
    Pavithra N
    ------------------------------



  • 4.  RE: Reset with Submit button not working for default selection

    IBM Champion
    Posted Fri March 03, 2023 05:56 AM

    Hi Pavithra, You want to reset all prompts to default values at once? Maybe I'm missing something but re-running the whole report seems to be the easiest way. 



    ------------------------------
    Philipp Hornung
    Business Intelligence Manager
    Techniker Krankenkasse
    Hamburg Germany
    #IBMChampion
    ------------------------------



  • 5.  RE: Reset with Submit button not working for default selection

    Posted Fri March 03, 2023 06:24 AM
    Yes i need to reset all 6 prompts .once reset is done and reprompt the page then it should load with default 6 charts and in 6 prompts it should show default values which has been set.

    --
    Thanks & Regards,
    Pavithra.