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
Dependent variable not work in HTML viewer or Flash viewer
Re: Dependent variable not work in HTML viewer or Flash view
Hello,
The Dependent variables for Web Viewers were added after 2014.2 release.
Please check the last version.
Thank you.
The Dependent variables for Web Viewers were added after 2014.2 release.
Please check the last version.
Thank you.
Re: Dependent variable not work in HTML viewer or Flash view
Hi again.
Just upgraded the Stimulsoft version from 2014.1.1900 to 2015.3.0.0, which is the lastest version we have. Now the dependent variable works in HTML viewer, but the report still fails to show in Flash viewer. This viewer only shows a blank page and none of the user requested variables are displayed. Why is there such difference between the viewers? I thought they would behave likewise. Is dependent variable not supported in Flash viewer in Stimulsoft Ultimate version 2015.3.0.0?
Regards
Frode
Just upgraded the Stimulsoft version from 2014.1.1900 to 2015.3.0.0, which is the lastest version we have. Now the dependent variable works in HTML viewer, but the report still fails to show in Flash viewer. This viewer only shows a blank page and none of the user requested variables are displayed. Why is there such difference between the viewers? I thought they would behave likewise. Is dependent variable not supported in Flash viewer in Stimulsoft Ultimate version 2015.3.0.0?
Regards
Frode
Re: Dependent variable not work in HTML viewer or Flash view
Hello,
Unfortunately, in the StiWebViewerFx is not supported. Please use the StiWebViewer from the last version.
Thank you.
Unfortunately, in the StiWebViewerFx is not supported. Please use the StiWebViewer from the last version.
Thank you.