Dependent variable not work in HTML viewer or Flash viewer
Posted: Mon Jul 25, 2016 10:50 am
Hi.
A report that I am creating have two variabels, "Var1" and "Var2". "Var1" is a list of departments and "Var2" is a list of users. It is required when selecting a department, only users for selected department will show in the users list. Thus "Var2" has the "dependent value" option checked and the "Variable" field is set to "Var1" and the column value is set to the proper column. This works great in the "Preview" tab page of the editor, and only the users for the selected department are showing. But it does not work when running the report in HTML viewer, and the relation between "Var1" and "Var2" seems lost, otherwise the report works. In Flash viewer the report will not show at all, just a blank page as long as it has a dependent variable. In the editor the following error message will appear when selecting "Web preview":
Object reference not set to an instance of an object
at Stimulsoft.Base.Serializing.StiPropertyInfoCollection.AddRange(StiPropertyInfoCollection propertyInfos)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeList(StiPropertyInfoCollection props, Object list, StiSerializeTypes serializeType)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(Object obj, StiSerializeTypes serializeType)
at Stimulsoft.Base.Serializing.StiSerializing.Serialize(Object obj, TextWriter textWriter, String application, StiSerializeTypes serializeType)
at Stimulsoft.Base.StiObjectStateSaver.WriteObjectStateToString(Object obj, StiObjectStringConverter converter)
at Stimulsoft.Base.StiObjectStateSaver.WriteObjectStateToString(Object obj)
at System.ComponentModel.TypeConverter.ConvertToString(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Stimulsoft.Report.Dictionary.Design.StiDialogInfoConverter.ConvertDialogInfoToString(StiDialogInfo info)
at Stimulsoft.Report.Dictionary.Design.StiVariableConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at System.ComponentModel.TypeConverter.ConvertToString(Object value)
at Stimulsoft.Report.StiReportObjectStringConverter.ObjectToString(Object obj)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.Serialize(Object obj, Stream stream, String application, StiSerializeTypes serializeType)
at Stimulsoft.Report.SaveLoad.StiXmlDocumentSLService.Save(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(StiDocumentSLService service, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(Stream stream)
at Stimulsoft.Report.StiReport.SaveDocumentToString()
at Stimulsoft.Report.StiReport.SavePackedDocumentToString()
at Stimulsoft.Report.Design.WebViewer.StiWebViewerControl.SavePackedDocumentToStringFx(StiReport report)
at Stimulsoft.Report.Design.WebViewer.StiWebViewerControl.set_Report(StiReport value)
at Stimulsoft.Report.Design.Controls.StiDesignerWebPreviewControl.btRefresh_Click(Object sender, EventArgs e)
Unchecking the "dependent value" of "Var2" will make the report show again in Flash viewer and also the "web preview" tab page in editor. We are using Stimulsoft Ultimate 2014.1.1900 version Is it a bug, can you reproduce on same version?
Regards
Frode
A report that I am creating have two variabels, "Var1" and "Var2". "Var1" is a list of departments and "Var2" is a list of users. It is required when selecting a department, only users for selected department will show in the users list. Thus "Var2" has the "dependent value" option checked and the "Variable" field is set to "Var1" and the column value is set to the proper column. This works great in the "Preview" tab page of the editor, and only the users for the selected department are showing. But it does not work when running the report in HTML viewer, and the relation between "Var1" and "Var2" seems lost, otherwise the report works. In Flash viewer the report will not show at all, just a blank page as long as it has a dependent variable. In the editor the following error message will appear when selecting "Web preview":
Object reference not set to an instance of an object
at Stimulsoft.Base.Serializing.StiPropertyInfoCollection.AddRange(StiPropertyInfoCollection propertyInfos)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeList(StiPropertyInfoCollection props, Object list, StiSerializeTypes serializeType)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(Object obj, StiSerializeTypes serializeType)
at Stimulsoft.Base.Serializing.StiSerializing.Serialize(Object obj, TextWriter textWriter, String application, StiSerializeTypes serializeType)
at Stimulsoft.Base.StiObjectStateSaver.WriteObjectStateToString(Object obj, StiObjectStringConverter converter)
at Stimulsoft.Base.StiObjectStateSaver.WriteObjectStateToString(Object obj)
at System.ComponentModel.TypeConverter.ConvertToString(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Stimulsoft.Report.Dictionary.Design.StiDialogInfoConverter.ConvertDialogInfoToString(StiDialogInfo info)
at Stimulsoft.Report.Dictionary.Design.StiVariableConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at System.ComponentModel.TypeConverter.ConvertToString(Object value)
at Stimulsoft.Report.StiReportObjectStringConverter.ObjectToString(Object obj)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop)
at Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.Serialize(Object obj, Stream stream, String application, StiSerializeTypes serializeType)
at Stimulsoft.Report.SaveLoad.StiXmlDocumentSLService.Save(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(StiDocumentSLService service, Stream stream)
at Stimulsoft.Report.StiReport.SaveDocument(Stream stream)
at Stimulsoft.Report.StiReport.SaveDocumentToString()
at Stimulsoft.Report.StiReport.SavePackedDocumentToString()
at Stimulsoft.Report.Design.WebViewer.StiWebViewerControl.SavePackedDocumentToStringFx(StiReport report)
at Stimulsoft.Report.Design.WebViewer.StiWebViewerControl.set_Report(StiReport value)
at Stimulsoft.Report.Design.Controls.StiDesignerWebPreviewControl.btRefresh_Click(Object sender, EventArgs e)
Unchecking the "dependent value" of "Var2" will make the report show again in Flash viewer and also the "web preview" tab page in editor. We are using Stimulsoft Ultimate 2014.1.1900 version Is it a bug, can you reproduce on same version?
Regards
Frode