Topic
  • 3 replies
  • Latest Post - ‏2013-10-28T18:02:55Z by OpherB
cbochner
cbochner
7 Posts

Pinned topic Forcing Cognos Data Prompt to Select different Date based on Weekday

‏2013-10-28T16:24:40Z |

Hi,

I have a cognos date prompt named StartDate, parameter: Date1, and the user selects a date from the prompt.  I need to develop javascript code to check whether the user clicked on Saturday.  If the user clicks on Saturday, I want the prompt to self-click itself to Friday or Sunday.  Is there a way to do this in javascript for Cognos?

Please Assist.  I'm climbing the walls with this...

Thank You,

CB

  • OpherB
    OpherB
    679 Posts
    ACCEPTED ANSWER

    Re: Forcing Cognos Data Prompt to Select different Date based on Weekday

    ‏2013-10-28T18:02:55Z  
    • cbochner
    • ‏2013-10-28T18:01:14Z

    Opher,

    My company did not upgrade yet, is there a way with javascript?

    Thanks,

    CB

    The API is intended for use with JavaScript. I don't think you can do it in an earlier release.

    Opher

     

  • OpherB
    OpherB
    679 Posts

    Re: Forcing Cognos Data Prompt to Select different Date based on Weekday

    ‏2013-10-28T17:39:28Z  

    If you are using 10.2.1 there is a (new) Prompt API available that should allow this. Check Appendix H of the Report Studio User Guide.

    Good luck,
    Opher

     

  • cbochner
    cbochner
    7 Posts

    Re: Forcing Cognos Data Prompt to Select different Date based on Weekday

    ‏2013-10-28T18:01:14Z  

    Opher,

    My company did not upgrade yet, is there a way with javascript?

    Thanks,

    CB

  • OpherB
    OpherB
    679 Posts

    Re: Forcing Cognos Data Prompt to Select different Date based on Weekday

    ‏2013-10-28T18:02:55Z  
    • cbochner
    • ‏2013-10-28T18:01:14Z

    Opher,

    My company did not upgrade yet, is there a way with javascript?

    Thanks,

    CB

    The API is intended for use with JavaScript. I don't think you can do it in an earlier release.

    Opher