parameter 'submit' and 'reset' break report

Stimulsoft Reports.WEB discussion
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: parameter 'submit' and 'reset' break report

Post by brianj774 »

The above mvc4 project compiles, but fails to render any report.

230 various javascript errors.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: parameter 'submit' and 'reset' break report

Post by brianj774 »

I pulled the "ParametersSelectingCountry.mrt" into a new controller on my main project. It displays the same parameters behavior as otherwise indicated.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: parameter 'submit' and 'reset' break report

Post by brianj774 »

I have constructed a sample project that displays the same behavior that we are concerned with. Perhaps this will help to find the answers.
StimulsoftExperiment.zip
(18.41 MiB) Downloaded 435 times
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: parameter 'submit' and 'reset' break report

Post by brianj774 »

I am now doing a text comparison with 'beyondCompare' , in order to identify differences between your sample and mine. It appears that there are some substantial differences between our two samples, but, at the same time, many close similarities.

For Example, my sample contains many files and directories that yours does not (much that seems related to the new DotNetOpenAuth stuff).

I suspect that somehow, one of these differences must be responsible for the behavior I see, but you do not.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: parameter 'submit' and 'reset' break report

Post by Vladimir »

Hello,

The example that you have sent to reproduce the error uses a prerelease build 2013.2.1610. But, after a simple replacement of libraries to version 2013.2.1611, the error disappears - the example works correctly.

All that has changed since version 1610 are added two lines of code for registering data in the cloned report. Please test the following code, whether it works correctly:

Code: Select all

StiReport report = new StiReport();
report.Load(...);  // your report 
report.RegData(...);  // your data


                // Compile a report if needed
                if (report.NeedsCompiling && !report.IsCompiled && report.CalculationMode == StiCalculationMode.Compilation) report.Compile();
                report = report.CompiledReport != null ? report.CompiledReport : report;

                StiReport reportCopy = report;

                // Create a copy of the report to apply the parameters
                if (serverCacheMode == StiCacheMode.Page || serverCacheMode == StiCacheMode.Session)
                {
                    if (!StiOptions.Engine.FullTrust || report.CalculationMode == StiCalculationMode.Interpretation)
                    {
                        reportCopy = new StiReport();
                        MemoryStream stream = new MemoryStream();
                        report.Save(stream);
                        stream.Seek(0, SeekOrigin.Begin);
                        reportCopy.Load(stream);
                        stream.Close();
                    }
                    else
                        reportCopy = StiActivator.CreateObject(report.GetType()) as StiReport;

// Two new lines

                    reportCopy.RegData(report.DataStore);
                    reportCopy.RegBusinessObject(report.BusinessObjectsStore);
                }
Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: parameter 'submit' and 'reset' break report

Post by brianj774 »

But, I've already tried replacing the libraries, and get a crash instead....

I REALLY need your help on this. Can I not get a gotomeeting or something? The matter is very urgent to us.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: parameter 'submit' and 'reset' break report

Post by Vladimir »

Hello,

Please try to test sent the above code, whether it will work on your system. This code - the main thing that has changed in the latest prereleases.
If possible, please give the most detailed information about your system, we will set up a virtual machine on the same parameters: OS, Visual Studio, Installed Frameworks, possibly other nuances.
I REALLY need your help on this. Can I not get a gotomeeting or something? The matter is very urgent to us.
It does not help to solve the problem more quickly because in any case, we need some time to test.
Also, our working time is from 9-00 to 18-00 GMT+3.

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: parameter 'submit' and 'reset' break report

Post by brianj774 »

Vladimir,

I do appreciate your help. Please understand that I am not angry, only frustrated that this teensy issue is delaying a very important release to our clients. Something has changed. Without any code changes, I can switch between 1604 (which works fine, but eliminates a feature I need), 1609 (which adds the feature, but breaks the params), 1610 (which behaves exactly as 1609), and 1611 (which does not work in the slightest, crashing out before any stimulsoft callback code is executed on my controllers).

I also understand that the timezone offsets are a complication, and that you're generally away from the office when I'm at my desk, and that you're at the office while I'm away, for the most part. This is the main reason that I'm pushing for a gotomeeting. I simply wish to make the absolute most of our narrow window of shared office time.

Deepest regards,
Brian
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: parameter 'submit' and 'reset' break report

Post by HighAley »

Hello, Brian.
brianj774 wrote:I also understand that the timezone offsets are a complication, and that you're generally away from the office when I'm at my desk, and that you're at the office while I'm away, for the most part. This is the main reason that I'm pushing for a gotomeeting. I simply wish to make the absolute most of our narrow window of shared office time.
We have some ideas how to solve your issue, but we need an access to your machine.
Could you create a meeting at 16:00 GMT+3 today and send us invitation to support@stimulsoft.com?
Or we could make a meeting in Monday from 16:00 to 18:00 GMT+3.

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: parameter 'submit' and 'reset' break report

Post by brianj774 »

yes, please schedule that meeting for today. Thanks!
Post Reply