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!

Button on web-report

Status
Not open for further replies.

PeteWalburn

Programmer
Jan 13, 2004
63
GB
Hi,

I am developing a report using Actuate 7. The report is displayed as a web-report. I need to have a push-button on the report that when clicked can perform an action. I know that I can use a browser scripting control and have a Javascript function. But I would like to have an Actuate control that calls an Actuate function. Can this be done?

I also have a requirement that at the top of the report there will be radio buttons for Summary and Detailed. The report contents will change depending on the radio button selected. The Detailed report will have a section which can be hidden for the Summary report. So, how can I make the radio button call a function to hide/show a section of the report?

Thanks in advance,

Pete
 

Make it a sequential report.
Make the main report as report 1. Add detail as report 2 and summary as report 3. Don't add detail/summary as objects in the slots 2/3 - just put blank reports.

The radio buttons will be tied to a global report variable. Use BSC to do that. Then check to see what the value of the variable is on report load. once you have that value do somethign like this in new content for the seq report.


if index = 2
If RPTBUTTON SELECT = SUMMARY then 'SUMMARY Holder
Set NewContent = New Persistent SUMMARY_REPORTOBJ else if it's DETAIL
Set NewContent = New Persistent SUMMARY_REPORTOBJ
END IF
ELSE
Set NewContent = Super::NewContent( index )
end if

 
Forgive my ignorance, but how do I tie a BSC to a global variable?

Pete
 
You can associate the BSC with a report parameter, which is essentially a global variable to the report. Use the BSC library_v6 that's located in the ERD examples directory. The param name on the object is called BSC_CorrespondingParameterName
Whatever values are selected/filled in will be set to the parameter name that you specify to the report.rox file specified on the submit button (from the bsc).

SUBMIT BUTTON has a property called BSC_BackendReport that you set to the.ROX file that you're passing the params to. The BSC will execute that ROX file with the given parameters and then you can check those report parameters on the run to see what you need to do.
 
Hi,

I have the report working as I want it apart from one thing. If I select one of the radio buttons (Summary or Detailed) and then click the Refresh button, the report is redisplayed correctly. I would ideally like the report to refresh when the radio button is clicked rather than having to click the Refresh button.

I know that it can be done by making changes to the Java code in the BSC_Library_V6 library, but I was hoping that someone had already done this (or something similar) as I am not a Java programmer and it's driving me mad!

Please help!

Pete
 
I just want to confirm that you are using Actuate ERD Pro and not Formula One. The code should be Visual Basic-like and not Java. Can you confirm? If you can confirm this and if you are using the VB-like stuff I can show you where to change the code to add an onClick=().
 
Hi,

I am using Actuate ERD Pro. The code is Visual Basic-like, but it creates a lot of Javascript functions like: UpdateDependencies() and SubmitPreferences() which get called when the user clicks the radio buttons and submit button on the final report. This is probably the way that I am going to have to go for now, but it would have been ideal if I could alter the code for the functions, so that clicking on the radio button does what it does just now, but also called the same code that a click on the submit button calls.

Pete
 
You are going to have to do that.

Edit the JavaScript it creates and add an onSelect or onClick (not sure which one you need). Make that function call the same thing that submit does (which you can look up in the addSubmit function).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top