Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 pushJSONChartUpdate issues

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
aletenti Posted - 18 Apr 2017 : 09:08:39
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
3   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 18 Apr 2017 : 12:50:06
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.
aletenti Posted - 18 Apr 2017 : 11:26:10
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
quinncurtis Posted - 18 Apr 2017 : 09:35:26
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07