COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: addicted2cognos on 21 Jul 2010 11:36:40 AM

Title: Dynamic lookup or dynamic expression evaluation in framework
Post by: addicted2cognos on 21 Jul 2010 11:36:40 AM
Is there a way to evaluate an expression dynamically in a calculated query item?

For example if we pass an expression within a prompt to the Fw, it needs to evaluate it and populate the query item with result of the expression.

Any help will be greatly appreciated!
Title: Re: Dynamic lookup or dynamic expression evaluation in framework
Post by: CognosPaul on 21 Jul 2010 12:13:05 PM
You're looking for a token prompt:

#prompt('Expression','token','running-total([Sales])')#

That's an optional prompt that will default to running the expression running-total([Sales]) if nothing is entered.