COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Active Reports => Topic started by: cognos05 on 25 Aug 2014 08:09:28 AM

Title: Border with rounded corners
Post by: cognos05 on 25 Aug 2014 08:09:28 AM
Hi All,
Which control should I  use to get this border with rounded corners as shown in few active report samples.

Thanks,
Nithya
Title: Re: Border with rounded corners
Post by: ToriBurns on 26 Aug 2014 05:43:54 AM
Hi! as long as you set the width and height of a control you want to set a rounded corner with, it will work. But not on all controls. You can use a block. Set a height and a width. Then on background effects from properties pane you can set the border radius which will give your block a round corner. :) You can also set a fill which will give a color for your block. You can also use a table, just don't forget to set a fixed width and height. Hope it helps.

Cheers!
Tori

:)
Title: Re: Border with rounded corners
Post by: cognos05 on 26 Aug 2014 10:57:35 AM
Hi ,

Thanks ToriBurns !! I used a block and set its size and overflow to 50 % and 50 % .

Now I went to the background effects and choose border property and gave the corner radius as 15 px. In preview it shows a rounded corner ,but when apply and run I am getting the same rectangular box .

Am I doing something wrong.

Thanks,
Nithya
Title: Re: Border with rounded corners
Post by: MFGF on 26 Aug 2014 11:26:53 AM
Quote from: nithya1224 on 26 Aug 2014 10:57:35 AM
Hi ,

Thanks ToriBurns !! I used a block and set its size and overflow to 50 % and 50 % .

Now I went to the background effects and choose border property and gave the corner radius as 15 px. In preview it shows a rounded corner ,but when apply and run I am getting the same rectangular box .

Am I doing something wrong.

Thanks,
Nithya

Try setting specific values for height and width rather than percentages...

Just a thought - you don't have a "normal" border defined as well, do you? If so, remove it, and just use the border setting in Background Effects.

MF.

MF.
Title: Re: Border with rounded corners
Post by: cognos05 on 26 Aug 2014 01:09:36 PM
Thanks MFGF . It shows the rounded border if we set height and width in pixels or other measures.

But IF I am not using percentage I should have fixed width of controls in my container right.  If I am going to use these report in Ipad will the block resize accordingly .

Thanks,
Nithya
Title: Re: Border with rounded corners
Post by: MFGF on 26 Aug 2014 02:08:38 PM
Quote from: nithya1224 on 26 Aug 2014 01:09:36 PM
Thanks MFGF . It shows the rounded border if we set height and width in pixels or other measures.

But IF I am not using percentage I should have fixed width of controls in my container right.  If I am going to use these report in Ipad will the block resize accordingly .

Thanks,
Nithya

Yes - correct. :) You need a specific size to get rounded corners - a percentage will not be sufficient. Once you specify a specific size it will not scale to the resolution of the mobile device.

It's a tradeoff - you choose which is most important to you.

Cheers!

MF.