Please Help! Populate Prompts with Macros on refresh - BO6.5

Hi everyone Im using Business Objects 6.5 Service Pack 2,

Please someone help me its urgent, im at such a deadend!

I have over 40 reports to run and will take some hours over night to refresh. I am automating the whole process using Macros; Open, Refresh, SaveAs and Close then move on. I have this working apart from 1 thing.

Problem is each Report has Prompts! and requires User input for the Reports to continue to refresh.

The prompts are all same for all the Reports:
‘Current Month’
‘This Year’
‘Last Year’
I can use a variable to populate these at the start but how do i get these variables into the Prompts? What is the Macro Code? Please help!!!

Thank you in advance


sdleigh (BOB member since 2009-05-14)

Hi,

In the SDK forum you can find some examples of how to do it. Check out for instance these:

Or search for more topics in the SDK forum.


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Thanks so much for the Links, i got exactly what i needed, this fills in the Prompt and then refeshes then saves.

cheers Marek


Private Sub Document_Open()

'Get through the Prompts and refresh
Application.Interactive = False

ThisDocument.Variables.Item("Year").Value = "2008"
ThisDocument.Refresh

Application.Interactive = True

'Save the Document now it is refreshed
Me.Save

'Save the Document as a PDF
Me.SaveAs ("...\Document2.pdf")

End Sub

Thanks again life saver

Stu


sdleigh (BOB member since 2009-05-14)

You are welcome. Glad it helped. :slight_smile:

[Moderator Note: Moving to SDK forum]


Marek Chladny :slovakia: (BOB member since 2003-11-27)