Page 1 of 1

Problem with empty list ...

Posted: Wed Apr 29, 2009 5:36 am
by JakubS
Hi,

I prepared report template using xsd as my dataset.
When I'm trying to prepare report it's crashing cause the lists is empty/doesn't exist.
Mentioned list is set to optional in xsd.

Is there any way to ignore empty list?

Xsd schema is valid, and I'm getting same error even if I create empty template only with dataset.

Here is the error msg that I'm getting:

Column 'GoodsItem_Id' does not exist in Data Source 'AdditionalInfoList' and relation 'GoodsItem' can't be created!

at Stimulsoft.Report.Dictionary.StiDictionary.RegRelation(StiDataRelation relation, Boolean virtualSources)
at Stimulsoft.Report.Dictionary.StiDictionary.RegRelations(Boolean virtualSources)
at Stimulsoft.Report.Dictionary.StiDictionary.RegRelations()
at Stimulsoft.Report.Dictionary.StiDictionary.Connect(Boolean loadData)
at Stimulsoft.Report.Dictionary.StiDictionary.Connect()
at Stimulsoft.Report.Engine.StiRenderProviderV2.ConnectToData(StiReport report)
at Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress, Int32 fromPage, Int32 toPage)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
at ABM.CustomsWare.Business.Framework.PrintServiceBase.PrepareReport(Object processItemParameter)

And here is the xsd that I'm using:












































































































































































































































































































































































































































































































































































































































































































































































Problem with empty list ...

Posted: Thu Apr 30, 2009 1:51 am
by Jan
Hello Jakub,
JakubS wrote:Hi,

I prepared report template using xsd as my dataset.
When I'm trying to prepare report it's crashing cause the lists is empty/doesn't exist.
Mentioned list is set to optional in xsd.
You can remove relation which have incorrent column settings.

Thank you.