I am trying to add a subreport to AR Form in E 10.2.300. I have 4 Parameters on the Subreport and added the subreport to the Parent Report. I added the parameters to the subreport on the Parent report as well. The subreport will not display. I checked the report server log and it says "One or more parameters were not specified for the subreport.
Any information would be greatly appreciated. Also do not know what information is needed. Trying to display all Tracking numbers from CartonTrkDtl table.
When you right click the subreport in the parent report and go to subreport properties>parameters… are all of the subreport parameters mapped with the correct fields from your parent report?
Here is my Query for SubReport.
="SELECT T1.InvoiceNum, T1.PartNum,T1.SalesUM,T1.PartNum_PartDescription,T1.InvoiceNum as InvcDtl_InvoiceNum,T1.PackNum,T1.DocUnitPrice,T1.DocExtPrice,T2.RptLiteralsLPartNum,T2.DisplaySeq as Label_DisplaySeq ,T2.RptLiteralsLDescription,T2.UnitPrice as RptLiteralsLUnitPrice,T2.RptLiteralsLExtPrice,T1.XPartNum, T1.Calc_LineDesc, T3.Calc_CustPartOpts, T2.RptLiteralsLINDiscount, T1.DocDiscount
FROM InvcDtl_" + Parameters!TableGuid.Value + " T1
LEFT OUTER JOIN RptLabels_" + Parameters!TableGuid.Value + " T2 ON T1.RptLanguageID = T2.RptLanguageID
LEFT OUTER JOIN CartonTrkDtl_" + Parameters!TableGuid.Value + " T3 ON T1.Company = T3.Company AND T1.PackNum = T3.PackNum
LEFT OUTER JOIN InvcHead_" + Parameters!TableGuid.Value + " T4 ON T1.Company = T4.Company AND T1.InvoiceNum = T4.InvoiceNum
WHERE T1.InvoiceNum = ‘" + cstr(Parameters!Pm_INVCHEAD_InvoiceNum.Value) + "’ " + " AND T1.PackNum= ‘" + cstr(Parameters!Pm_INVCDTL_PackNum.Value) + "’ " + " AND T1.RptLanguageID = ‘" + cstr(Parameters!Pm_INVCHEAD_RptLanguageID.Value) + "’"
Here is my Parameters in SubReport.
And here is Parameters from Parent Report for SubReport.
No. For some reason it says Cannot set the command text for dataset ‘InvcDtl’. (rsErrorSettingCommandText). I am using the same datasource for AR Form.
I am not certain what is wrong with the syntax in your query, but I bet it has something to do with the where clause. Try taking out the where clause and then do each of the joins one at a time with a test between each additional join. Then you can narrow it down to the problem.
I added the parameters on the subreport and the subreport runs with the parameters. I add the subreport to the parent report and it says Error: Subreport could not be shown.
Does not work. In the Parent Report I tried the Parameters for SubReport for InvoiceNum as Pm_INVCDTL_InvoiceNum to InvoiceNum (which is InvcHead) and Pm_INVCDTL_InvoiceNum to InvcDtl_InvoiceNum. Neither works. Still get error.