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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Questions: Parameter Defaults and Printing Code

Status
Not open for further replies.

sjltektips

Programmer
Jan 3, 2007
3
US
2 questions - Forgive me, I am new to Actuate.

1. I would like to prepopulate parameters with default using VB Code (such as calculating a date to default to so many days beyond todays's date). Which Method of which class do I need to write my code in? I noticed that the start method for the entire report seems to be invoked AFTER the parameter screen is displayed. I need a place to write code BEFORE the parameters are displayed - can anyone tell me where this is done?

2. Is there a way to generate a BAS file that contains only the custom code that was written in subclassed methods? What I find myself having to do when I want to see what an existing program does is to expand every slot in the report tree, then look at the Methods for each entry in the tree to look for one that is BOLD, then dblclick to look at the code. IS there an easier way to identify just the custom code within a program?
 
Q1 You don't say which version of actuate your using. There is no way to program the basic parameters in actuate V7 or before. Actuate is very poor in that manner. What you could do though, is create a parameter for a number of days (forward) then, in the report add that to todays date.
eg
Parameter 'P_No_Days', default 10.
Date Field,
'Date To' = Date + 'P_No_Days' (Returns Date only)
or
'Date To' = Now() + 'P_No_Days' (Returns Date and time).

Alternatively you would have to create a browser scripting control.

Q2 In answer to your second question, as far as I know, you can't just extract custom code.
When Actuate builds and compiles the report, it creates a basic file. You could open that in word and search for the required value (i.e. bold)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top