Author Topic: (Solved) Passing Multiple Values to Stored Proc Prompt in FM  (Read 2051 times)

Offline shank

  • Associate
  • **
  • Posts: 3
  • Forum Citizenship: +0/-0
Guys,

How to pass multiple values to a single stored procedure prompt. For
example, for the country prompt it works fine for single value, but not
for multiple selected values like 'america','australia','china','India'
etc.,

I used #promptmany as suggested in th FM documentation, but it is giving error message as "promptmany" not
recognized.

Could you please suggest how to achieve multiple parameter passing.

Regards,

Cognos Pal
« Last Edit: 21 Jul 2006 04:04:20 am by shank »

Offline mrcool

  • Statesman
  • ******
  • Posts: 258
  • Forum Citizenship: +27/-28
Re: Passing Multiple Values to Stored Proc Prompt in FM
« Reply #1 on: 17 Jul 2006 02:53:57 pm »
You cannot pass multiple values directly in stored procedure query
subject. Create a data source query subject then call the procedure like

exec <proc_name> #sq(promptmany('param1','char'))#
 This will create a multi valued parameter param1 and it will enclose
the parameters within single quotes so that it becomes a string
variable.
In the SP you need to split this into differnt values by using a
function which returns table variable


Thanks,
Mrcool
« Last Edit: 18 Jul 2006 11:20:54 am by mrcool »