COGNOiSe.com - The IBM Cognos Community

Planning & Consolidation => COGNOS Planning => Topic started by: Danno on 16 May 2012 03:30:38 PM

Title: Limiting Text to a Text Dlist Item
Post by: Danno on 16 May 2012 03:30:38 PM
I got a request to add a text item to a dlist and to restrict it to a maximum of 200 characters. I am not sure that this is even possible as I thought it you were stuck with the defaults when using a text formatted dlist item.

I should add this is for Contributor and I am using version 10.1.

Can it be done?
Title: Re: Limiting Text to a Text Dlist Item
Post by: ericlfg on 16 May 2012 06:40:23 PM
Hey Danno,

I'm not aware of any way to restrict the input length...  if you find a way, definitely post it up :)
Title: Re: Limiting Text to a Text Dlist Item
Post by: Danno on 17 May 2012 08:43:21 AM
Hi Eric,

That is pretty much the answer I was expecting  :D

Cheers!
Title: Re: Limiting Text to a Text Dlist Item
Post by: lav4you on 27 Jun 2012 05:06:04 AM
Hi Danno,

As per IBM Cognos Documents following limits apply for text fields

Limits For Text Formatted Cells

The data entry limit for text formatted cells for IBM® Cognos® Planning Analyst, IBM Cognos Planning Contributor, and the IBM Cognos Planning Analyst Add-in for Microsoft® Excel is 32K (32,767 characters). Note however that in some cases, further limits are imposed by the datastore provider.

For IBM Cognos Planning Contributor Add-in for Microsoft Excel, the maximum number of characters is 911. Special characters, such as Returns and Tabs, are not supported. If you need to copy and paste multiple paragraphs of text into a cell from another document, ensure that you remove the returns after each paragraph before you copy and paste text into a cell. Otherwise, Contributor Add-in for Microsoft Excel will truncate the incoming text after the first paragraph.

For annotations, the maximum number of characters is 3844 characters. For attached documents, the maximum number of characters in the comments section is 50 characters.

View Publish

SQL Server = unlimited
UDB = unlimited
Note that the publish views cast down to a varchar: SQL = 8000, UDB = 1500 (that is you only see 8000 characters in the SQL view)
Oracle = 4000 characters

Table-only Publish

Table-only publish varies by format
Text fields (epReportingText)
SQL Server = 8000
UDB = unlimited
Oracle = 4000

Regards,
Jitesh
Title: Re: Limiting Text to a Text Dlist Item
Post by: Danno on 11 Jul 2012 09:00:56 AM
Thanks Jitesh, that wasn't what I was asking. I was wanting to know if there is a way to limit the amount of text a user can enter into a text field and the answer is no  :)
Title: Re: Limiting Text to a Text Dlist Item
Post by: pricter on 11 Jul 2012 09:06:31 AM
Have you tried a validation?

A good example of how to create one (not exactly your case) but I think it would a good startup point I found
it on
http://www.ibm.com/developerworks/data/library/cognos/modeling/design/page527.html (http://www.ibm.com/developerworks/data/library/cognos/modeling/design/page527.html)
Title: Re: Limiting Text to a Text Dlist Item
Post by: lav4you on 12 Jul 2012 03:38:12 AM
Hi Danno,

I misunderstood your qustion ;D
No, There is no limit for user text input.
As Pricter suggested you can introduce validation. but so far what I understand thats not ur requirement.
Title: Re: Limiting Text to a Text Dlist Item
Post by: Danno on 12 Jul 2012 09:11:45 AM
I have looked at validation. It is great for limiting a range of numbers or setting caps on values but from what I can tell it doesn't allow you to determine the length of some text and set a limit. That was actually the first thing I looked at. Thanks though :)
Title: Re: Limiting Text to a Text Dlist Item
Post by: pricter on 12 Jul 2012 11:26:01 AM
I do not have planning infront of me so I do not know if this works
And a D-List item that produce 1 or 0 based on the length of the text item.
And then create a validation based on the new data item.
Its just a idea.
Title: Re: Limiting Text to a Text Dlist Item
Post by: Danno on 12 Jul 2012 11:33:33 AM
I will try that. Thanks Pricter