Set ValueColumns in Javascript

Sorry for the newbe question. I have seen a similar post to this but nothing works.
I want to change the value column displayed in an iSPCChart using Javascript. I return two values in the query and want the user to be able to flip back and forth in the same chart.
I have tried:
document.overall.getChartObject().setPropertyValue("ValueColumns", "out1");
where overall is the applet.
but it does not work. I am using an iSPCChart.
Thanks

Hello OB,
To set value columns, you would use the SPCChart object method
document.iSPCChart.getChartObject().setValueColumns(). 
I would highly recommend MII training if you have not yet done so.  The Script Assistant, packaged with the MII Wizards, is available for version 12.0 as a download on the SDN.  The Script Assistant is the "master" reference for the various applet and object methods.
Kind Regards,
Diana Hoppe

Similar Messages

  • How we do set resolutions in javascript to develope a game in unity 3d

    how we do set resolutions in javascript to develope a game in unity 3d

    If you're not talking about JS in PDF files, this is the wrong forum for
    your question.

  • Setting styles with javascript

    getelementby('id').setAttribute lets you change a HTML objects attributes
    However the style attirubute (getelementby('id').setAttribute("style","value goes here")); actually contatins many settings in what javacript sees as a single attribute.
    as a result everytime i change a style setting with this i have to re-insert all of the other styles.
    this is inconvinient at best.
    and at worst means i have to store all of the set styles as javascript attributes and re-insert the whole lot.
    is there another way of doing this
    so that i can add or delete styles without the rest of the set styles being affected?

    function(){return A.apply(null,[this].concat($A(arguments)))}
    I_Know_Nothing_at_all wrote:
    I'm confused. Are you using the getElementby to write or set an individual style for multiple elements all over a page?
    I use it to set a style for an element or elements where the style is dependant on some other factor, or has to be changed in responce to an event.
    CSS alone cant do this because it does not have event listenters (except for psudo events such as :hover) cannot detect the styles and setting of anything (except for media rules) and does not have any sort of evaluative functions such as IFs, CASEs and basic arithmetic.

  • How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8

    How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8 . I am using WaveMaker application for web development

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • Setting variables in Javascript

    Hello all,
    We are trying to set a variable in javascript like so:
    var myFish = $v('P22_EPSB_SGF_GROUP').value;
    does not work. Yet the statement
    if ($v('P22_EPSB_SGF_GROUP') == '2')
    can be evaluated.
    Any help would be appreciated.
    Thanks

    lilhelp,
    The $v function returns the value so you don't need the ".value"
    The $x function returns the element so you would need the ".value"
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Set unit preferences (Javascript)

    I can't find a way to set the unit preferences for Illustrator CS6/CC using JavaScript.
    I found that this works (setting units for stroke):
    var units = 2; // 0-inches, 1-milllimeters, 2-points
    app.preferences.setIntegerPreference("strokeUnits", units)
    But I want to set the ruler units ("General" in the interface), and this does not work:
    app.preferences.setIntegerPreference("rulerUnits", units)
    Any help?
    Peter

    Ten,
    Yes, this works, finally! Thank you very much with this simple but poorly documented feature.
    I noticed that the unit mapping is:  0: inches, 1: mm, 2: points, 3: pica, 4: cm, 5: custom, 6: pixels
    Regards,
    Peter

  • Set preferences from Javascript

    Can preferences be set from a folder-level or document-level Javascript in Acrobat Pro 7 and 8?
    In particular, I am interested in toggling on "Display PDF in browser" and "Use local fonts".
    Alternatively, can JS read these settings, so that a suitable warning can be displayed?
    Thanks,
    Bruce

    Bruce,
      Were you able to address the issue here.. setPreference through JS (HTML).... our corporate policy is enforce opening PDF in new window but our application needs to open PDF in the same browser...... but the links need to open in new window.
    Thanks for your response..
    - K

  • Set jsp from javascript

    I have three "div" tags in index.jsp ,
    <div id='header'></div>
    <div id='body'></div>
    <div id='footer'></div>
    Now when window is loaded i want other jsp page to be set in the "body" div tag of index.jsp from javascript
    My javascript code
    function invokeJSP(){
    document.getElementById('body').innerHTML="<jsp:include page='test.jsp'>'";
    when I am including this code in <head > part of index.jsp its working the problem is if at all
    In test.jsp
    if i try to include this line
    <% = request.getParameter("name")%>
    its giving an error like "unterminated literal string" in javascript console
    Can anyone help me how to set the jsp from javascript
    Sorry for my bad english.This is the first time I am posting the forum
    thanks
    hema

    hi
    Thanks for the response
    but i have closed the tag in my program. Have u ever tried to invoke jsp from javascript in this way if it works plz help me.
    thanks hema

  • Set variable via Javascript

    I got a long string (length exceeds 32512) from Javascript, and want to pass the sting to a variable to a item called P_SQL
    I use *$x("P_SQL").value* in javascript to set the value, but my process couldn't get the value before I submit, however, when I do submit it reports an error like this :
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /pls/alq/wwv_flow.accept HTTP-400 Value param too long. Length is 216343. Upper limit is 32512
    Anyone knows how to handle this conflict ?

    Try like this to set the value in javascript, consider the string is stored in the variable 'pValue'.
    $s('P_SQL',pValue); Please read the document http://docs.oracle.com/cd/E3709701/doc/doc.42/e35127/javascript_api.htm#autoId36_
    Thanks,
    Lakshmi

  • Set Date With Javascript

    I have 2 date fields, A and B.
    What I need to do is once I tab out of A, I need to set B to A+1year-1day.
    I can do this in a page process on submit with
    ADD_MONTHS(:P_A, 12)-1
    but I need this to be done on change of field A.
    Any help appreciated
    Gus

    Hi Gus,
    you need to provide the date format you are using.
    Add this to your FIELD A "html form element attributes":
    onblur="javascript:fnc_field_b(this)"Add this to your page header:
    &lt;script>
    function fnc_field_b(v_field_a){
    /* Input: mm/dd/yyyy */
    /* Output: dd.mm.yyyy */
    /* Documentation: http://www.javascriptkata.com/2007/04/27/mastering-of-the-date-object-in-javascript/ */
    /*                http://programming.top54u.com/post/Javascript-Convert-String-to-Date.aspx            */
    /* Create date object */
    var myDate = new Date(v_field_a.value);
    /* Add 1 year */
    myDate.setDate(myDate.getDate() + 365);
    /* Create output string DD.MM.YYYY */
    /* Day */
    var myStr = (myDate.getDate() < 10 ? "0" + myDate.getDate().toString() : myDate.getDate().toString()) +  ".";
    /* Month */
        myStr = myStr + (myDate.getMonth()+1 < 10 ? "0" + (myDate.getMonth()+1).toString() : (myDate.getMonth()+1).toString()) + ".";
    /* Year */
        myStr = myStr + myDate.getFullYear().toString();
    /* Set value */
    $s('P1_FIELD_B',myStr);
    &lt;/script>Change the field P1_FIELD_B to the name of your field B name.
    Best regards,
    Tobias
    Edited by: Tobias Arnhold on Mar 7, 2011 4:44 PM

  • Setting shadow with Javascript

    For some odd reason, none of the Indesign's VBA-scripts works with InDesign CS5 anymore, maybe then reason is Office 2010 64-bit.
    Anyway, Javascript works just fine, but I'm having difficulties to write following script with JavaScript. Can anybody help?
    Simply script by setting up drop shadow for an active object.
    Set myInDesign = CreateObject("InDesign.Application")
    Set myObject = myInDesign.Selection.Item(1)
    myObject.transparencySettings.dropShadowSettings.angle=135
    myObject.transparencySettings.dropShadowSettings.opacity=33
    myObject.transparencySettings.dropShadowSettings.distance=1
    myObject.transparencySettings.dropShadowSettings.mode=2020623440
    myObject.transparencySettings.dropShadowSettings.blendMode=1852797549

    Hey!
    Here is the same code in JavaScript:
    var myObject = app.selection[0];
    with(myObject.transparencySettings.dropShadowSettings){
        angle = 135;
        opacity = 33;
        distance = 1;
        mode = ShadowMode.DROP;
        blendMode = BlendMode.NORMAL;
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

  • Netui:Checkboxoption, set checked without javascript

    I am working on weblogic 8 portal and attempting to set the checkboxoption to checked when the page initially renders with the following code with style=(quotes) checked:true (quotes), sorry if i'm typing (quotes) since it's emptying it out on the forum.
    <netui:checkBoxGroup dataSource="{pageFlow.displayDocuments}">
    <%
    if (pageContext.getAttribute("isDocumentExposedToInternet").toString().equalsIgnoreCase("true")) {
    %>
    <netui:checkBoxOption value="{container.index}" tagId="chkBox" style=(quotes) checked:true (quotes) onClick="setRdoValue(this)">TRUE</netui:checkBoxOption>
    <%
    } else {
    %>
    <netui:checkBoxOption value="{container.index}" tagId="chkBox" style=(quotes) checked:true (quotes) onClick="setRdoValue(this)">FALSE</netui:checkBoxOption>
    <%
    %>
    </netui:checkBoxGroup>
    does anyone know if this is the only way to set the checkbox value? I can't really do it with javascript since i need an onclick event to access it and i need this to be checked when the page initially renders.
    thanks in advance.
    Edited by: user12959394 on May 21, 2010 7:21 AM
    Edited by: user12959394 on May 21, 2010 7:22 AM
    Edited by: user12959394 on May 21, 2010 7:22 AM

    Hi
    This is the code snippet I have that is working fine and checking the check boxes values properly.
    <netui:checkBoxGroup dataSource="actionForm.credTechHighFreq" orientation="vertical">
         <c:forEach items="${sessionScope.GRACE_LOOKUPS['Credential_High Frequency']}" var="eachHighFreq">
              <%-- workshop:varType="com.hid.iod.forms.IoDLookUpForm" --%>
                   <netui:checkBoxOption value="${eachHighFreq.iodLookUpId}">${eachHighFreq.codeDescription}</netui:checkBoxOption>
         </c:forEach>     
    </netui:checkBoxGroup>
    In above code sniippet, I have actionForm.credTechHighFreq that stores the IDs of the selected checkbox. I can check multiple checkboxes. this is the variable I have in my Form class.
    private long[] credTechHighFreq;
    The checkboxOptions are retrieved from a session variable, which is kind of lookup value which has like Id and Desc. Desc is what I show on screen. Id is the one behind the screens.
    So when I retireve this data and open the page for the very first time, if my datasource [] is having say like 1, 3, 5, these 3 checkboxes are checked.
    NOW if you want to have default values, then you need to fill the datasource [] list say with like 1, 3. So these are like default. Do this only if the list is empty. Infact I do this by adding alwasy [0] and the value wil lbe like "Please Select".
    For CheckBox or RadioButton, or SelectBoxes, always there will be like a Key/Value Pair. Like what we see next to checkbox and when we checkit or uncheckit, the datasource that is behind this visible value. Using style attribute is not the right way and may not work also. style attribute is used only for css stuff like for look and feel stuff only. You are iterating through "pageFlow.displayDocuments" and what is the object like datatype for each of these objects. Those should have like key/value paris.
    Inside a checkboxgroup, when we check any Checkbox (for now lets assume we can check only one), then the checked behind id value is what stored in the datasource attribute for checkBoxGroup. Incase if you can check multiple checkboxes, then the datasource will be Array/List of selected items.
    Incase if you can check only one option like True or False, instead of CheckBox use Radio Button.
    HTH
    Ravi Jegga

  • How can I set CameraRAWOpenOptions using Javascripts in Photoshop CS6?

    I have been unable to set CameraRAWOpenOptions in scripts that worked fine for me in Photoshop CS5 but now do not work in Photoshop CS6.  There are no error messages when I run the scripts, and they appear to finish okay, but the images come out unadjusted.  Below is the essence of how I'm trying to do it.  When I run these scripts in Extendscript (CS5 or CS6 does not make a difference), Photoshop CS6 simply uses its own default (saved) settings, but CS5 would allow the overrides.  I did change the default settings in CameraRAW in CS6 to use the default lens correction profiles available from the EXIF data, and I'm wondering if that rendered the script unable to change any of the rest of the settings.
    Here's how I have the code:
    var RawOptions = new CameraRAWOpenOptions;
    RawOptions.settings=CameraRAWSettingsType.CUSTOM;
    RawOptions.exposure=+2.00;
    RawOptions.vignettingAmount = 0;
    RawOptions.vignettingMidpoint = 0;
    RawOptions.contrast = 50;
    RawOptions.saturation = 0;
    RawOptions.shadows = 0;
    RawOptions.luminanceSmoothing = 0;
    var JPGopts = new JPEGSaveOptions;
    JPGopts.quality = JPEGquality;
    //Perform the loop through the files
    app.open(testListing[0], RawOptions, false);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    for (var nfile = nstart; nfile < nstop; nfile++)
        app.open(testListing[nfile], RawOptions, false);
        FnameSave = new File(SavePath+"/"+testListing[nfile].name);
        app.activeDocument.saveAs(FnameSave, JPGopts, false, Extension.UPPERCASE);
        app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

    I would collapse and expand the toolbar windows by using the double arrow icon?
    Doing this will almost give you your full screen?
    Or you can hit 'Tab' and it hides your tools when you don't need them?

  • Set SPViewStyle using Javascript

    Hi,
    In my sharepoint site, I have created one custom list with "boxed" style. Also, for Client Side Rendering purposes I add a reference to JS Link which changes few fields on UI for color coding. Somehow after applying this JS Link, "boxed"
    style is getting vanished and view is being shown in "Default" style.
    Is there any way I can re add the style in JS link script or by any other means?

    Hi,
    I can reproduce the issue in my environment, it seems that the JSLink is not compatible with the built-in style of the current view at this moment.
    If you want to apply the “Boxed” style with the custom style defined in JSLink, a workaround is that you can create a completely custom style like “Boxed” style using JavaScript
    within JSLink.
    Here is a link with demo about how to apply accordion style to the list by using jQuery UI plugin for your reference:
    http://www.sharepointnutsandbolts.com/2013/01/using-jslink-to-change-ui-of-sharepoint_20.html
    There are also other plugins in jQuery UI can be used to create custom style for a specific HTML elements:
    http://jqueryui.com/demos/
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Scripting & Applying Set Percentage in Javascript

    I need to script a set percentage to an existing calculated total field in order to show a new field total with the set percentage applied. Total is already calculated in the form, but I'm not sure how to plug in the 2.25% to calculate for a final total.
    Example:
    Total ____
    Final Total ____ (new field with 2.25 percentage applied)

    Robert,
    Great – thanks! I did figure that out (eventually), but now have the issue of the Permit Fee field showing $0.26 when it should just show $0.00 until the Number field is filled in and the amount is calculated. Can you help? The error screen says that it doesn’t like the last equal sign. I’m at a loss…
    TopmostSubform.Page1.Cell[10].Permit_Fee::calculate - (FormCalc, client)
    Permit_Fee.rawValue = (4000.00Cell[8].Number + 0.25)1.0225
    If(Number.isNull | Permit_Fee = “”)
    Thanks!
    Noemi Harvell

Maybe you are looking for