Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only
  • 1.  Centering Date Prompt Object...BUG?

    Posted 01/31/20 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 11.0.13.1 (LTS)
    Is this a known bug, or am I missing something?

    Thanks!

    ------------------------------
    Regards,
    Opher
    ------------------------------

    #CognosAnalyticswithWatson


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

    Posted 02/02/20 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


    ------------------------------
    Morten Frandsen
    ------------------------------



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

    Posted 02/04/20 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.
    Strange.


    ------------------------------
    Regards,
    Opher
    ------------------------------



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

    Posted 02/04/20 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
    albert@intelalytics.com
    ------------------------------



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

    Posted 02/04/20 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.


    ------------------------------
    Regards,
    Opher
    ------------------------------



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

    Posted 02/05/20 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
    ------------------------------