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!

CRViewer via ASP will not prompt for parameter fields

Status
Not open for further replies.

syfaure

Technical User
May 24, 2005
3
US
I use Crystal Enterprise 10 on a W2k server. I have installed the RDC ASP Samples for Crystal Reports 10 provided by Business Object.

I can display any report using either viewer Java or ActiveX. I dispaly either the saved data on the report or I pass on the report parameters from a web form using the following code (place into the morerequiredsteps.asp page):
' Set the report selection parameters
'Set ParameterFields = session("oRpt").ParameterFields
'Set ParameterField = ParameterFields.Item(1)
'ParameterField.SetCurrentValue "B"

Typically, I get the values from an HTML form.

However, I cannot get the refresh button from the viewer to prompt for parameter entry. I believe the code provided by business object into the RDCrptserver10.asp page should be changed aroung the code:
Case "RFSH"

' This command forces the database to be read again.
session("oRpt").DiscardSavedData
If Err.Number <> 0 Then
Call CheckForError
Else
session("oRpt").EnableParameterPrompting = false
session("oRpt").ReadRecords
Set session("oPageEngine") = session("oRpt").PageEngine
End If
------
If I set the property EnableParameterPrompting to true, the refresh button hangs.

Please help.

Regards

Syfaure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top