Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 pushJSONChartUpdate issues
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

aletenti

Italy
8 Posts

Posted - 18 Apr 2017 :  09:08:39  Show Profile  Reply with Quote
Hi, I'm trying to update my chart because I want to see control limits changing in order to values from a stored procedure. Last week I sent an email to the support and they told me to see the mediumSimpleDataUpdate.js file in the QCSPCChartGWTWar folder and they also told me I can include the SpecifyControlLimitsUsingMeanAndSigma in the PrimaryChartSetup and SecondaryChartSetup sections at top, like this:
{
    "SPCChart": {
        "PrimaryChartSetup": {
            "ControlLimits": {
                "SpecifyControlLimitsUsingMeanAndSigma": {
                    "Mean": 32,
                    "Sigma": 2.666
                }
            }
        },
        "SecondaryChartSetup": {
            "ControlLimits": {
                "SpecifyControlLimitsUsingMeanAndSigma": {
                    "Mean": 3.1,
                    "Sigma": 1.1
                }
            }
        },
        "SampleData": {
            "SampleIntervalRecords": [{
                    "SampleValues": [
                        27.53131515148628,
                        33.95771604022404,
                        24.310097827061817,
                        28.282642847792765,
                        30.2908518818265
                    ],
                    "BatchCount": 20,
                    "TimeStamp": 1371830829074,
                    "Note": ""
                },
                {
                    "SampleValues": [
                        27.444285005240214,
                        34.38930645615096,
                        28.0203674441636,
                        33.27153359969366,
                        36.8305571558275
                    ],
                    "BatchCount": 21,
                    "TimeStamp": 1371831729074,
                    "Note": ""
                },
......


when I call the pushJSONChartUpdate (after the pushJSONChartCreate), i see this error in console:
"com.google.gwt.core.client.JavaScriptException: (TypeError) : toEscape.replace is not a function" and i don't see my changes.
What can I do to avoid this error?

Thanks!
Alessio

quinncurtis

1555 Posts

Posted - 18 Apr 2017 :  09:35:26  Show Profile  Reply with Quote
Sorry, but there is nothing we can tell from your post.
Confirm that you ran the SPCMediumSimple.htm example using the modified mediumSimpleDataUpdate.js file and that it worked as we described.
You will need to supply us with a complete setup of your example (html and related *.js files) that we can run and debug in order to give you an answer.
Go to Top of Page

aletenti

Italy
8 Posts

Posted - 18 Apr 2017 :  11:26:10  Show Profile  Reply with Quote
Sorry, I didn't express myself well.
I'm developing an asp.NET web app that shows a specific chart (chosed from a dropdown list) created with specific values selected from other dropdown lists. this values are passed into a stored procedure that returns some data that are stored into C# classes (named like the Quinn Curtis JSON properties).
Then, I call a method that serializes this classes into a JSON string that I pass to the pushJSONChartCreate function.
The rows returned from the stored procedure have fields named like "Primary UCL", "Primary LCL", etc.. I would like to check them and when I'll check that this values (or only one of this field's value) change, on my chart I want to see control limits moved up or down for the new values. The chart is in READ-ONLY, so there are no possibilities to add new data with a button for example. I check this values only once.
The support told me to see the mediumSimple example and to specify the property "SpecifyControlLimitsUsingMeanAndSigma" for the new batch of new sample records. to do this, I think that I have to use the pushJSONChartUpdate with the new JSON string like I wrote in my first message. Isn't it?

I hope now it's more clear. If not, I supply you my source code.

I'm sorry for disturbing you,
Alessio
Go to Top of Page

quinncurtis

1555 Posts

Posted - 18 Apr 2017 :  12:50:06  Show Profile  Reply with Quote
The mediumSimpleDataUpdate.js file is to be used in conjunction with the SPCMediumSimple.htm example, exactly as-is. So once displayed, SPCMediumSimple.htm will call pushJSONChartUpdate when you select the Add New Data button . Once you add new data, you can scroll through the data to see the control limits change. As with most changes to an HTM file, you will probably need to hit the browser refresh button to clear the previous HTM file from the cache. The modified mediumSimpleDataUpdate.js includes the call to SpecifyControlLimitsUsingMeanAndSigma.

Look at the source to SPCMediumSimple.htm to verify the call to pushJSONChartUpdate in the button handler. Perhaps you can modify the program to demonstrate your specific problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07