Variable with string type (List) doesn't work
Variable with string type (List) doesn't work
Hi,
I created a Variable 'Variable1" which is a string (List) and with "Request from User" (Data Columns as Data Source).
And I'm using it in a filter expression in a databand like Variable1.Contains(Custormers.ContactTile).
In 2015.1.16.0, this filter expression works at Preview in Report designer but doesn't work at ReportViewer.
In 2014.1.1900.0, it doesn't work at neither Designer nor Viewer.
If there is any alternative solution, please let me know.
And refer to the attached file and try SimpleList.mrt with Variable1 == Owner.
Thanks
I created a Variable 'Variable1" which is a string (List) and with "Request from User" (Data Columns as Data Source).
And I'm using it in a filter expression in a databand like Variable1.Contains(Custormers.ContactTile).
In 2015.1.16.0, this filter expression works at Preview in Report designer but doesn't work at ReportViewer.
In 2014.1.1900.0, it doesn't work at neither Designer nor Viewer.
If there is any alternative solution, please let me know.
And refer to the attached file and try SimpleList.mrt with Variable1 == Owner.
Thanks
- Attachments
-
- MyDemo.zip
- (1.48 MiB) Downloaded 380 times
Re: Variable with string type (List) doesn't work
Hello.
Now your code in the Page_Load event runs each time when you send the parameters.
It create a new report instance and surely the parameter is not set there.
To avoid this you should add next statement in the Page_Load method:
Thank you.
Now your code in the Page_Load event runs each time when you send the parameters.
It create a new report instance and surely the parameter is not set there.
To avoid this you should add next statement in the Page_Load method:
Code: Select all
if (Page != null && !Page.IsPostBack)
{
.....
//all your code that loads the report
.....
}
Re: Variable with string type (List) doesn't work
You mean WebViewerFxDemo.aspx should have the following code?
But it doesn't resolve the issue.
protected void Page_Load(object sender, EventArgs e)
{
if (Page != null && !Page.IsPostBack)
{
string appDirectory = HttpContext.Current.Server.MapPath(string.Empty);
// Prepare data
DataSet dataSet = new DataSet();
dataSet.ReadXml(appDirectory + "\\Data\\Demo.xml");
dataSet.ReadXmlSchema(appDirectory + "\\Data\\Demo.xsd");
// Load report
StiReport report = new StiReport();
report.Load(appDirectory + "\\Reports\\SimpleList.mrt");
report.RegData(dataSet);
// View report
StiWebViewerFx1.Report = report;
}
}
And actually I'm loading report at OnGetReport in real project. still need to check IsPostBack there?
protected override void OnGetReport(StiWebViewerFx.StiGetReportEventArgs e)
{
Logger.Instance.Info("Begin to Load Report.");
this.Report = ReportPage.LoadReport();
Logger.Instance.Info("End to Load Report.");
}
Thanks
But it doesn't resolve the issue.
protected void Page_Load(object sender, EventArgs e)
{
if (Page != null && !Page.IsPostBack)
{
string appDirectory = HttpContext.Current.Server.MapPath(string.Empty);
// Prepare data
DataSet dataSet = new DataSet();
dataSet.ReadXml(appDirectory + "\\Data\\Demo.xml");
dataSet.ReadXmlSchema(appDirectory + "\\Data\\Demo.xsd");
// Load report
StiReport report = new StiReport();
report.Load(appDirectory + "\\Reports\\SimpleList.mrt");
report.RegData(dataSet);
// View report
StiWebViewerFx1.Report = report;
}
}
And actually I'm loading report at OnGetReport in real project. still need to check IsPostBack there?
protected override void OnGetReport(StiWebViewerFx.StiGetReportEventArgs e)
{
Logger.Instance.Info("Begin to Load Report.");
this.Report = ReportPage.LoadReport();
Logger.Instance.Info("End to Load Report.");
}
Thanks
Re: Variable with string type (List) doesn't work
Hello.
Sorry, there was a bug with the list variables in our code.
Please, check our latest official release. The bug is fixed there.
Thank you.
Sorry, there was a bug with the list variables in our code.
Please, check our latest official release. The bug is fixed there.
Thank you.
Re: Variable with string type (List) doesn't work
I think it works fine at 2016.1.0.
I can use this version at my future build.
But my old version (which is built at NET3.5) is using Stimulsoft 2014.1.1900.0.
My client asked if it can be fixed there.
As far as I know, 2014.1.1900 is the last version built on NET 2.0/3.5.
So I'm wondering if you can fix this issue(at both designer and viewer) at 2014.1.1900 and
provide new build 2014.1.1900.xxx to me for my NET 3.5 application.
I noticed my subscription of Stimulsoft Reports.Ultimate was just expired on Feb 19,2016.
But I will request the renewal soon.
Thanks
I can use this version at my future build.
But my old version (which is built at NET3.5) is using Stimulsoft 2014.1.1900.0.
My client asked if it can be fixed there.
As far as I know, 2014.1.1900 is the last version built on NET 2.0/3.5.
So I'm wondering if you can fix this issue(at both designer and viewer) at 2014.1.1900 and
provide new build 2014.1.1900.xxx to me for my NET 3.5 application.
I noticed my subscription of Stimulsoft Reports.Ultimate was just expired on Feb 19,2016.
But I will request the renewal soon.
Thanks
Re: Variable with string type (List) doesn't work
Hello.
Sorry, but it's impossible to create a build 2014.1 with fix for you.
This is too old build and there was many other fixes and improvements that we should do but we can't.
Please, upgrade to our latest build.
Thank you.
Sorry, but it's impossible to create a build 2014.1 with fix for you.
This is too old build and there was many other fixes and improvements that we should do but we can't.
Please, upgrade to our latest build.
Thank you.
Re: Variable with string type (List) doesn't work
I found one more issue in the 2016.1.0.0.
That it, "Reset" button for variable removed list from data column data source at ComboBox.
In viewer,
1. View "Simple List" report in the attached example.
2. Select "Owner" in the Combo box for "Variable1"
3. Click "Submit" button.
4. Then click "Reset" button
5. Click the combo box for "Variable1" and it shows only "Owner" in the combo box.
In designer,
1. Design "SimpleList.mrt" in the attached example.
2. Click "Preview" pane.
3. Select "Owner" in the Combo box for "Variable1"
3. Click "Submit" button.
4. Then click "Reset" button
5. Click the combo box for "Variable1" and it shows nothing in the list. Even it doesn't show "Owner" in the combo box.
Thanks
That it, "Reset" button for variable removed list from data column data source at ComboBox.
In viewer,
1. View "Simple List" report in the attached example.
2. Select "Owner" in the Combo box for "Variable1"
3. Click "Submit" button.
4. Then click "Reset" button
5. Click the combo box for "Variable1" and it shows only "Owner" in the combo box.
In designer,
1. Design "SimpleList.mrt" in the attached example.
2. Click "Preview" pane.
3. Select "Owner" in the Combo box for "Variable1"
3. Click "Submit" button.
4. Then click "Reset" button
5. Click the combo box for "Variable1" and it shows nothing in the list. Even it doesn't show "Owner" in the combo box.
Thanks
Re: Variable with string type (List) doesn't work
Hello,
Thank you for the detail descriptions. We need some additional time for investigating the issue.
We will let you about the result.
Thank you.
Thank you for the detail descriptions. We need some additional time for investigating the issue.
We will let you about the result.
Thank you.
Re: Variable with string type (List) doesn't work
Hello,
The issue is fixed.
The fix will be available in the next build in this week.
Thank you.
The issue is fixed.
The fix will be available in the next build in this week.
Thank you.