Setting Chart type property of iSPC chart dynamically doesn't work

Hi all,
      I am trying to set the chart type property (XBAR, MEDIAN etc..) of iSPC chart dynamically from my html page.
This is the code that I used.
var chart_obj = document.iSPCChart.getChartObject();
chart_obj.setChartType("MEDIAN");
iSPCChart is my Applet name.
But the code doesn't seem to work.
The chart is always of the type that I have set in the iSPC display template.
Can someone help me in this regard?
Thanks a lot.
Regards,
M.Subathra

M,
Even though that method shows up in the script assistant and the docs it really doesn't work. 
Just swap out the display template for one saved with the desired type:
document.iSPCChart.setDisplayTemplate("Folder/MedianChart");
document.iSPCChart.updateChart(true);
With all of the alarm rules, colors, limits, settings, etc. it is not likely that you will have the same view (display template) that applies to every SPC chart type.
There is also a predelivered example of an SPC Chart that uses an iframe and an irpt to dynamically pass the chart type (along with other settings) you can reference: http://<servername>/Lighthammer/Samples/SPC/Servers.irpt
Regards,
Jeremy Good

Similar Messages

  • Bug: setting ColumnChart type property breaks the chart object.

    PLease confirm if this Is this a bug or maybe ColumnChart
    type property is only applicable as MXML tag attribute?
    Description: Setting the
    type property of
    ColumnChart object other than "
    clustered" breaks the chart object. (i.e: series dissappear)
    Resetting to "clustered" wont restore the series.

    It breaks the chart when series have effects applied,
    otherwise it works fine.

  • How to set integer type property using um:setProperty

    Using WLP 8.1 .
    Can anyone help to set integer type property programmatically.
    i tried <um:setProperty> . but it can send only string or object type
    not Integer.
    tia
    Mahesh

    Thanks
    It worked for me
    Mahesh.
    Gregory Smith <[email protected]> wrote:
    For Numeric properties, I believe you actually need to use a
    java.lang.Long object (which extends java.lang.Object so it should compile):
    <um:setProperty propertySet="..." propertyName="..."
    value="<%=new Long(10)%>" />
    Greg
    Mahesh wrote:
    Using WLP 8.1 .
    Can anyone help to set integer type property programmatically.
    i tried <um:setProperty> . but it can send only string orobject type
    not Integer.
    tia
    Mahesh

  • I am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    i am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise*, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.
    *Note: If you've activated FileVault, this procedure doesn't apply. Follow instead the instructions on this page:
    If you forget the password and FileVault is on

  • I imported videos from photo into iMovie when I set up iMovie (obvious mistake) and now iMovie doesn't work properly, nor can I move specific videos into a folder where I want them. How do I fix this?

    I imported videos from photo into iMovie when I set up iMovie (obvious mistake) and now iMovie doesn't work properly, nor can I move specific videos into a folder where I want them. How do I fix this? I even tried deleting iMovie, bought a new copy and installed it, but the folder "iPhoto Videos" is still there and I can't get new clips loaded to iMovie, especially where I want them. Please help.

    The iPhoto Videos do occasionally have problems. I've seen a lot of people write messages to this Discussion group describing similar problems. The only thing that seems to get around this problem is to pull the video clips out of iPhoto then import them directly into iMovie. Once the troubles with iPhoto Videos starts, I haven't yet seen anyone write back with something that they did to fix it.
    The most difficult part of doing this is the movies in iPhoto might be a little difficult to track down. But you can create a smart alum that does that for you. Go to iPhoto > File Menu > New Smart Album:
    Set the first pulldown menu to keyword, second to contains, then in the last box type Movie with a capital 'M'. Then click OK. This smart album more or less does as search of the whole iPhoto Library and only displays items that match your search tearm of "Movie" exactly. In that smart album then you can find the original Movies you want to move out of iPhoto and into iMovie, <CTRL> click on the Movie clip, then choose Reveal in Finder. That will jump you out of iPhoto temporarily and into the iPhoto Library folder. From there you can move that movie file to the desktop. Move all the clips you want, once they're all collected up go to iMovie and go to the File Menu > Import Files. Then point it to the desktop where you moved your video clips.
    This will put all those videos into an Event folder in iMovie and bypass iPhoto Videos altogether.

  • My new iPad air is suddenly asking for a pass code. I have only just finished restoring it from my iPad 2 and I didn't set one. The one I used before doesn't work. What can I do?

    My new iPad air is asking for a pass code. I have only just finished restoring it via iTunes from my ipad2 and I didn't set one. The one I used before doesn't work. What can I do?

    http://support.apple.com/kb/HT1212

  • Why setting the download folder ton an external HDD doesn't work? the downloaded files goes to My Documents (Windows)?

    Why setting the download folder ton an external HDD doesn't work? the downloaded files goes to My Documents (Windows)?

    I did what you said and updated FF, now the download goes to the external HDD that I specified, but now FF bugs, it freezes (not responing) :s
    I reinstalled it but it doesn't fix the problem. I don't know what to do :(

  • Set data type property

    Hi all.
    I'm on devsuite 10g.
    Is there a way to set the data type property of an item at runtime???
    Thanks all for the collaboration,
    Fabrizio

    You can't it's a design time only construct

  • Setting a Type property on a custom object in XAML

    I have the following converter which needs to know the Enum type to parse. 
    public class EnumToStringConverter : IValueConverter
    public Type EnumType { get; set; }
    public object Convert(object value, Type targetType, object parameter, string language)
    public object ConvertBack(object value, Type targetType, object parameter, string language)
    Then I declare the type in XAML using the same syntax used for styles.
    <UserControl x:Class="MyProject.PreferencesPage"
    xmlns="..."
    xmlns:converters="using:MyProject.Converters"
    xmlns:model="using:MyProject.Model">
    <UserControl.Resources>
    <converters:EnumToStringConverter x:Key="EnumToStringConverter" EnumType="model:ResultSize" />
    </UserControl.Resources>
    <!-- ... -->
    </UserControl>
    I don't get any squiggle lines, but I get a parse error at runtime.
    This is the error:
       An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in BingImageSearch.exe but was not handled in user code
       Additional information: Failed to create a 'Windows.UI.Xaml.Interop.TypeName' from the text 'model:ResultSize'. [Line: 14 Position: 82]
    IIRC, this syntax was restricted to TargetType properties on styles and templates in WPF and Silverlight, is this still the case?

    I just came on here to look for this issue since I ran into the same thing. We absolutely should be able to set a Type-based property in XAML.  We can in WPF and SL.  Please either fix this TypeName error bug or at least provide us with the
    x:Type markup extension so that we can pass types directly to dependency properties in XAML with type checking.
    Can someone from Microsoft respond to this request?
    actiprosoftware.com - Professional WPF, WinRT, Silverlight, and WinForms UI controls and components

  • SoftKeyboardType property of StageText : some values doesn't work on Android

    Hello,
    on my Galaxy Nexus Android 4.2.2, when I use the softKeyboardType property of StageText :
    "number" and "email" work,
    but "punctuation", "url", and "contact" doesn't work.
    http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/text/StageTe xt.html#softKeyboardType
    Why some values doesn't work ?
    I need the constant "punctuation", please help.
    Thanks

    Hi,
    Thank you for your bug report. We are able to reproduce the issue. Could you please open a new bug report on this over at bugbase.adobe.com?  Once the bug has been added would you mind posting back with the URL so that others affected can add their votes and comments?
    Thanks once again for reporting this.
    -Nimit

  • Set SSIS variable property 'EvaluateAsExpression' to true dynamically

    I have a variable in SSIS.Initially i will set the value 'EvaluateAsExpression' property to false.
    In my package.I have a foreach  loop container.Once the execution enters in to the for each loop container.I want to set the 'EvaluateAsExpression' to true.Is that possible??
    Can anyone please help

    Hi Abhinav530,
    It’s not supported to change the EvaluateAsExpression property of a SSIS variable at runtime. I guess the sceanrio may be that you want the variable to use the default value when the package execution hasn’t entered the Foreach Loop Container phase, while
    the variable get value from the expression when the execution of the Foreach Loop Container starts. In this circumstance, you can create another variable with the same name but in the Foreach Loop Container scope. In this way, you don’t need to make changes
    to the existing expressions that reference the variable, and the variable in Foreach Loop Container scope will override the same name variable in package scope when the Foreach Loop Container executes.
    Regards,
    Mike Yin
    TechNet Community Support

  • How to set the source property of image control dynamically?

    Hi,
      I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
    I need to know how to set the image1.source = (the fxg path) as a string from database?
    Is there any conversion needed in this case? If so, can you please help me how to do this?

    Hi,
      Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
    What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
    Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
    import spark.components.Image;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
      // TODO Auto-generated method stub
      var strFXG:String = 'assets.DB_Actief_Graphics';
                                            var image1:Image = new Image();
                                            image1.x = 100;
                                            image1.y = 100;
                                            image1.source = strFXG;
                                            addElement(image1);
    Regards,
    Chella

  • Import Chart of Account via DTW - field ReconciledAccount doesn't work

    Hi all,
    I'm importing Chart of Accounts (segmented) via DTW.
    I want to set the SAP LocManTran field to YES
    so in the Excel file, I populate the  ReconciledAccount field with tYES
    The importation works fine but the SAP LocManTran field is not ticked after the import
    Someone could help?
    Thanks in advance
    Christian

    Hi Christian,
    ReconciledAccount is the field RealAccount.  There is LockManualTransaction in the template you should set tYES.
    Thanks,
    Gordon

  • I have CS6 in a disk and I can't install it,I get a window with my name and asking for a pass word,the window reads like this:set up wants to make changes type PW to allow this.I type my adobe PW and it doesn't work.I am stake in that step.

    What can I do?I can't install CS6 in a disk.I get a window reading:set up wants to make changes type PW to allow this.
    Type my Adobe PW and is not that.This is frustrating!!!!Downloading, Installing, Setting Up

    Hello ozne,
    as a first step please have a look at these "General infos about the Adobe Account"
    https://www.adobe.com/account.html and http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
    Did you purchase your product from these firms like Amazon? If yes, this is not a serial number, only a code with which you can request a serial number from Adobe. Please have a look at http://helpx.adobe.com/x-productkb/global/find-serial-number.html. (Start here: How did you purchase your product?)
    The following part, so I just see at least, ceased to exist on my Adobe website, everything takes place in the link from above. I leave it as an info yet, it might still fit for you. For this purpose, please click your way through to your Adobe Store and find the button "Get Serial Number". Fill in the form and after a while you will get the real serial number.
    Good luck!
    Hans-Günter

  • Setting a Custom Property - How to (cant get it to work)

    Hi Everyone...
    Have a code snippet that I think should be working, but I keep getting "bad parameter". Sought for examples, but could not find one on the site. "Creator" is a custom property we have added to the global map. Also, the incoming id is definately an objID of a group.
    Help :)
    publicstaticvoidSetCreatorProperty(intobjectID, stringcreatorString)
    IPTObjectManager ptOM;
    Object[][] vPropertyData = {
    // I've tried swapping the order, and using the int
    // value for the property
    newObject[] {creatorString,"Creator"}
    CIPTUserGroup usergroup;
    ptOM = Global.ServerSession.GetObjectManagers(PT_CLASSIDS.PT_USERGROUP_ID);
    usergroup = (CIPTUserGroup)ptOM.Open(objectID, true);
    usergroup.GetObjectProperties().SetPropertyData(vPropertyData);
    IPTServerContext sc = (IPTServerContext)usergroup.GetInterfaces("IPTServerContext");
    //Store it and unlock
    sc.Store();
    sc.UnlockObject();
    and I get this:
    Unhandled Exception: com.plumtree.server.marshalers.PTException (0x80070057): The parameter is incorrect. ---> System.ArgumentException: The parameter is incorrect. at com.plumtree.server.helper.IPTObjectProperties.SetPropertyData(Object vsaPropertyData) at com.plumtree.server.CIPTObjectProperties.SetPropertyData(Object[][] vsaPropertyData) at com.plumtree.server.CIPTObjectProperties.SetPropertyData(Object[][] vsaPropertyData) at Apollo.MySource.Tools.UserGroup.SetCreatorProperty(Int32 objectID, StringcreatorString) in c:\class libraries\mysource\apollo.mysource.tools\usergroup.cs:line 81

    OK, with some digging, I was able to find one deceptively simple solution, that I post below for your enjoyment. The trick here, which is not obvious from the docs, is that you can set as few as one property at a time on an object.
    here's how you would set up the code to set two custom properties: Cost Code and Creator:
    staticvoidMain(string[] args)
    constintPROPID_COSTCODE = 217;
    constintPROPID_CREATOR = 215;
    Object[][] vPropList = Global.makePropertyList(2); //see below
    int userGroupObjectID = 2033;
    vPropList[0][0] = PROPID_CREATOR;
    vPropList[1][0] = "AUTHSOURCE";
    vPropList[0][1] = PROPID_COSTCODE;
    vPropList[1][1] = "Cost Code value 33343-23";
    SetCustomProperties(userGroupObjectID ,vPropList);
    publicstaticvoidSetUserGroupCustomProperties(intobjectID, Object[][] vPropertyData)
    IPTObjectManager ptOM;
    CIPTUserGroup usergroup;
    ptOM = Global.ServerSession.GetObjectManagers(PT_CLASSIDS.PT_USERGROUP_ID);
    usergroup = (CIPTUserGroup)ptOM.Open(objectID, true);
    IPTObjectProperties objectProperties = usergroup.GetObjectProperties();
    objectProperties.SetPropertyData(vPropertyData);
    IPTServerContext sc = (IPTServerContext)usergroup.GetInterfaces("IPTServerContext");
    //Store it and unlock
    sc.Store();
    sc.UnlockObject();

Maybe you are looking for

  • Is it possible to change 10.5.2 to 10.4 Leopard to Tiger for new computer?

    For some reasons I need to start up my new MacBook Pro by OS 10.4 (Tiger). The computer doesn't accept to install Tiger. Is it locked to Leopard and doesn't work with any previous OS? I'd like to install it on my external hard disc but It's not possi

  • Is FoxTab 1.4.10 Compatible with windows 8.1 64bit

    retired my vista 64 bit desktop(inspiron530) and bought an XPS8700(win 8.1 64bit)FoxTab 1.4.10 work fine with it especially the TopSites feature.Well FoxTab Doesn't work at all with the new Desktop,tab switching,topsites etc.I have repeatedly emailed

  • Apple gurus please help. GPU problems

    Hi everyone. Having a horrible gpu issue and cannot find a solution anywhere. I have one of the 2008 Macbook Pros with the dreaded 8600 gpu. If I run any OS past 10.6.3 I get artifacts on my display. But, with 10.6.3 all is pretty much ok except for

  • Music not importing!

    I just created a new user on my computer because my old one was slowing up. I transferred all my music over to my new user but when I tried to import it(music) into itunes on my new user it was acting strange. It has duplicates of certain albums and

  • Office 365 error 259-4 when installing newer Project on top of older ProPlus

    Hello, I am encountering a problem in the following circumstances: - I install Office 365 ProPlus using version 15.0.4649.1003 - Then I try to install Project from Office 365, but using the newer version 15.0.4659.1001 The setup fails with error 259-