Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing prompts values from macro to subreports

Status
Not open for further replies.

cognos4user

Technical User
Apr 21, 2003
4
US
Please, help!

I run macro to pass several values from the macro dialog to several reports and publish them as PDFs. Unfortunately, I could pass these values to only simple reports (objImpRep = objImpApp.OpenReport (strReport, strPromptValues)). If try to use this macro for reports with several subreports, the values are not being passed to the subreports. These reports with subreports behave well though in Impromtu when using regular prompts dialog.

Sincerely,
Dmitry
 
Do the subreports have prompts of their own, or are they strictly based on the main report? If they are based on the main report, as long as you include the field you are prompting on in each of your subreports, the filter should be passed.
 
Thank you, DoubleD,

I solved the problem. It does work. My problem was that some subreports prompts were something like 'Company, Inc.'and the macro thought it were two values for a prompt while in fact it should be one. I changed that prompt to use another field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top