If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Optional Prompt macro

Started by mrcool, 23 May 2011 08:09:57 PM

Previous topic - Next topic

mrcool

Hi All,
The following macro is failing could you please help me in resolving the single quotes in pretext.

#promptmany('QuoteMethod',
'token',
' ',
'AND (Case When Quote_Assess.QUOTE_COUNT=1 Then 'Single Quote' Else 'Competitive Quote' End)  IN (', '', ')'
)#

Thanx in adavance

Cheers
Mrcool

CognosPaul

You can use the SQ function to wrap the strings in quotes.

#promptmany('QuoteMethod',
'token',
' ',
'AND (Case When Quote_Assess.QUOTE_COUNT=1 Then ' + sq('Single Quote') + ' Else ' + sq('Competitive Quote') + ' End)  IN (', '', ')'
)#