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.
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.