COGNOiSe.com - The IBM Cognos Community

Planning & Consolidation => COGNOS Planning => Topic started by: OSCARCog on 06 Oct 2015 10:00:00 AM

Title: Data Validation - Help!
Post by: OSCARCog on 06 Oct 2015 10:00:00 AM
Hello Cognos Gurus!

I am trying to set up a data validation whereby if a user in Contributor selects a certain value from a formatted d-list a warning message pops up when the grid is validated.

I have tried creating a message-only data validation as follows: IF COA = 91411000 OR COA = 91412000 THEN 0 ELSE 1

However when testing in Contributor this validation never takes effect - can anyone indicate where I am going wrong? Is it not possible to do what I am trying to do?

TIA for any assistance/advice provided!

Rgds,
OSCAR
Title: Re: Data Validation - Help!
Post by: Danno on 06 Oct 2015 10:10:53 AM
If the values are you writing against are from a drop down/lookup dlist then you need to use the ordinal values of the dlist items and not the values themselves.  I use these all the time. However if you can clarify this a bit further it would be easier to provide feedback.
Title: Re: Data Validation - Help!
Post by: OSCARCog on 07 Oct 2015 06:00:08 AM
Danno, thanks very much. Using the item id's of the d-list items in the validation expression works perfectly.

Much appreciated :)

Regards,
Oscar.
Title: Re: Data Validation - Help!
Post by: Danno on 07 Oct 2015 09:13:58 AM
Glad I could help :)