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

Please Help with Passing Parameters Via API

Status
Not open for further replies.

linuxjr

Programmer
Jun 2, 2001
135
US
Hello all,

I have everything working except I'm getting one error that I can not figure how to get around.

The problem is I have a report that has 5 subreports. The main report has one parameter. The links to the subreports is to a different field than the main report parameter I'm trying to filter on.

I have several functions that I used to help set the logon information, get the parameter fields etc.

When I go to pass my addparameter call

Call AddParameter(index(0), "11")

I get a error message saying Addparameter 553 when I looked in the developers manual it means the parameter is not their. I stepped through my code and notice that when I call the add parameter I get the correct parameter I want in index(0) but its trying to set it in the last subreport.

The api I'm using is
PEAddParameterCurrentValue(MainJob, PINFO.Name, PINFO.reportName, VINFO)

The reportName is returning the last subreport. Is their a way to get the main report passed so it will take the value I'm passing.

Any tips suggestions will be greatly appreciated. Have a nice day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top