Cognos Analytics

Expand all | Collapse all

Centering Date Prompt Object...BUG?

  • 1.  Centering Date Prompt Object...BUG?

    Posted Fri January 31, 2020 03:55 PM
    ​Hello - I'm having difficult centering a Date Prompt object.
    Quick way to reproduce/test:
    1. Create a new report.
    2. Opher the Prompt Page
    3. Add a Block - Set Horizontal Alignment to Center
    4. Place a Date Prompt into the Block (can be Calendar or Edit Box UI)
    5. Run the report
    6. Is the Date Prompt centered? No.
    I've added Tables and Text and everything short of my own HTML code. Nothing seems to change the default (left) alignment.

    I'm using CA (LTS)
    Is this a known bug, or am I missing something?



  • 2.  RE: Centering Date Prompt Object...BUG?

    Posted Sun February 02, 2020 02:30 PM
    Hey Opher
    I have no problem with this? see image where i set a tabel and a date prompt in and set horizontal alignment to center. 

    The date and time is directly in the tabel and second prompt is in a block with center as alignment. 

    Version 11.0.11


    Morten Frandsen

  • 3.  RE: Centering Date Prompt Object...BUG?

    Posted Tue February 04, 2020 10:16 AM
    Thanks @Morten Frandsen. I've waited to see if anyone with 11.0.13 replied, but none so far.
    It's definitely not working for me. I've even tried in IE and Chrome, so it's not browser related.


  • 4.  RE: Centering Date Prompt Object...BUG?

    Posted Tue February 04, 2020 12:10 PM
    Hi Opher, is it possible that your report template has some parent object "behind" the Block that you're placing that might have a different alignment behavior? Are you able to center other objects in same Block other than the Date Prompt?  Can you shift it using padding properties in the Block?

    Albert Valdez

  • 5.  RE: Centering Date Prompt Object...BUG?

    Posted Tue February 04, 2020 05:26 PM
    Hello @Albert Valdez - Thanks for the reply. Padding is something I didn't test, and YES, it does move the date prompt within the Block.
    But I can use the BLANK report template that has nothing on the page. Drop a Block and set it to Center and then drop a Date Prompt in it. The Date Prompt appears centered in Page Design, but when run it's at the left margin.
    I've also used the browsers Inspect Element and found that the HTML doesn't have any 'center' attributes set. I think this will be found as a bug in 11.0.13, but only time will tell.
    Thanks again.


  • 6.  RE: Centering Date Prompt Object...BUG?

    Posted Wed February 05, 2020 11:02 AM
    I have quickly tried this in 11.0.13 and have had no issue with centering a date prompt within a block.

    Ashley Kent