Topic
  • 8 replies
  • Latest Post - ‏2013-10-27T06:12:53Z by SandipPradhan
BharatKumarBabariya
BharatKumarBabariya
20 Posts

Pinned topic Dynamic windows Titel

‏2013-10-21T06:28:24Z |

Dear all,

I have a issue with cognos reports windows titel , 

here is my question,

when i run my reports it show me windows titel which i have given. now what i want is when i run my report it should be name of reports and Current Date. so that at the time of saving the reports its easy to identify the reports ,

so ,can you please help me out in this

Thanks & Regards

Bharatkumar.

  • Ba-al
    Ba-al
    51 Posts

    Re: Dynamic windows Titel

    ‏2013-10-21T11:27:06Z  

    Try to use JavaScript for it.

  • BharatKumarBabariya
    BharatKumarBabariya
    20 Posts

    Re: Dynamic windows Titel

    ‏2013-10-21T11:47:53Z  

    Thank you Ba-AL ,

    i have try this java script and its working fine on promt page only but in report page its not affecting so ,if you any idea the nplease share...


    <script>
    var today = new Date()

    var dd = today.getDate();
    var mm = today.getMonth()+1; //January is 0!

    var yyyy = today.getFullYear();
    if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm}
    today = dd+'/'+mm+'/'+yyyy;

    window.document.title = 'Assumption_Reports' + today ;
    </script>

    Updated on 2013-10-21T11:58:23Z at 2013-10-21T11:58:23Z by BharatKumarBabariya
  • Ba-al
    Ba-al
    51 Posts

    Re: Dynamic windows Titel

    ‏2013-10-22T06:57:38Z  

    Thank you Ba-AL ,

    i have try this java script and its working fine on promt page only but in report page its not affecting so ,if you any idea the nplease share...


    <script>
    var today = new Date()

    var dd = today.getDate();
    var mm = today.getMonth()+1; //January is 0!

    var yyyy = today.getFullYear();
    if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm}
    today = dd+'/'+mm+'/'+yyyy;

    window.document.title = 'Assumption_Reports' + today ;
    </script>

    Strange.

    Your script works fine for clean report page.

  • Ba-al
    Ba-al
    51 Posts

    Re: Dynamic windows Titel

    ‏2013-10-22T07:01:15Z  

    Thank you Ba-AL ,

    i have try this java script and its working fine on promt page only but in report page its not affecting so ,if you any idea the nplease share...


    <script>
    var today = new Date()

    var dd = today.getDate();
    var mm = today.getMonth()+1; //January is 0!

    var yyyy = today.getFullYear();
    if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm}
    today = dd+'/'+mm+'/'+yyyy;

    window.document.title = 'Assumption_Reports' + today ;
    </script>

    Stop.

    Is your report active report?

  • BharatKumarBabariya
    BharatKumarBabariya
    20 Posts

    Re: Dynamic windows Titel

    ‏2013-10-22T07:10:33Z  
    • Ba-al
    • ‏2013-10-22T07:01:15Z

    Stop.

    Is your report active report?

    yes

  • Ba-al
    Ba-al
    51 Posts

    Re: Dynamic windows Titel

    ‏2013-10-22T08:07:35Z  

    yes

    Sorry. I don't know how to do it for active report.

  • BharatKumarBabariya
    BharatKumarBabariya
    20 Posts

    Re: Dynamic windows Titel

    ‏2013-10-22T09:06:48Z  
    • Ba-al
    • ‏2013-10-22T08:07:35Z

    Sorry. I don't know how to do it for active report.

    ok , thank you Ba-al

  • SandipPradhan
    SandipPradhan
    13 Posts

    Re: Dynamic windows Titel

    ‏2013-10-27T06:12:53Z  

    yes

    JS are unsupported to active report. For window Title go to File > Active Report Property > Window Title (Type here your customized text)

     

    All D Best!

    Sandy