Calling an array value in a calculation

Hi,<BR><BR>I am new to script writing but was hoping that someone may be able to help. I have created an array to store the run time prompt selections. I want to use the first position of the array as the data point to assign to other locations. How/can do I reference a value in an array? A sample of my calc is below:<BR><BR>

If you do get this to work, please post your findings. I never ever figured out ARRAY and LOOP in Essbase calcs.

Similar Messages

  • Calling A Single Value From A Channel To Output To A Table Need Help

    I have populated a table that contains every value in every channel of my data set. I am now attempting to do channel calculations in order to come up with weighted averages and an overall average for the days worth of test. This data will be outputted to a new table called 'Total Table'. This Total Table is to only have one value per channel.
    The issue I am running into is 2-fold. When doing channel arithmetic, primarily Channel Sums using 'ChnSum' DIAdem does not truncate the entire data set into a new data set. It retains all the values and appends the last block with the sum of the entire channel set. I need to either be able to pull that last value dynamically (as not all my data sets are of equal length) or I need to generate a new channel that only has the sum value. Is there a way to do this?
    Here is what I have been attempting to do but to little avail. Attached is a screenshot of what the table output looks like after this code is processed.
    'Populate Total Table With Values From Above Calculations
    For j = 1 to selectData.MultiSelection.Count
    Counter = Counter + 1
    length = ChnPropValGet("[" & selectData.MultiSelection(j).Index & "]/Cumulative Fuel Used", "Length")
        If Counter = 2 Then
       [ A Bunch Of Channel Calculations That Output New Channels ]
       Call View.Sheets("Total Table").Areas("Area : " & Counter).DisplayObj.Columns.Add(ChnFind("Ch("& selectData.MultiSelection(j).Index &") > 0 " , length - 1))
      End If
    Next
    Any help would be much appreciated.
    Thanks,
    ~Nate
    Solved!
    Go to Solution.
    Attachments:
    TotalTable.JPG ‏212 KB

    This is my latest version of the code and it sort of works but its referencing my "Fan Speed" channel for some reason rather than my "Cumulative Fuel Used" channel. Im a little stumped
    For j = 1 to selectData.MultiSelection.Count
    Counter = Counter + 1
    length = ChnPropValGet("[" & selectData.MultiSelection(j).Index & "]/**bleep** Fuel Used", "length")
    If Counter = 2 Then
    Call View.Sheets("Total Table").Areas("Area : " & Counter).DisplayObj.Columns.Add(Data.Root.ChannelGroups("[" & selectData.MultiSelection(j).Index & "]").Channels("**bleep** Fuel Used").Values(length))
    End If
    Thanks,
    ~Nate

  • OCIBindArrayOfStruct not called, but array insert successed

    according to Oracle document, the OCIBindArrayOfStruct must be called for array insert, but I observed a stranger behavior that I bind the address of array through OCIBindByPos and didn't call OCIBindArrayOfStruct, and the call OCIStmtExecute, give iters the number of element of array. all data in array are insert succeeded, so I am wonder what will happen if OCIBindArrayOfStruct is not called? and why even the function is not called, array insert still succeeded? It seems OCI's behavior is same as OCIBindArrayOfStruct if iters great than 1.@
    #include "stdafx.h"
    #include "oci.h"
    void PrintError(OCIError *pError);
    int _tmain(int argc, _TCHAR* argv[])
      char szName[20] = {0};
      char szUID[20] = {0};
      char szPWD[20] = {0};
      OCIEnv *pEnv = NULL;
      OCIError *pErr = NULL;
      OCIServer *pServer = NULL;
      OCISvcCtx *pSvcCtx = NULL;
      OCISession *pSession = NULL;
      OCIInitialize((ub4)OCI_THREADED | OCI_OBJECT, 0, 0, 0, NULL);
      ::OCIEnvInit(&pEnv, OCI_DEFAULT, 0, NULL);
      sword wStatus = ::OCIHandleAlloc(pEnv, (void**)&pErr, OCI_HTYPE_ERROR, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Failed allocate Error handle";
      return 0;
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pServer, OCI_HTYPE_SERVER, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Failed allocate Server handle.";
      return 0;
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pSvcCtx, OCI_HTYPE_SVCCTX, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Failed allocate service context handle.";
      return 0;
      std::cout << "Please enter the TNS name:";
      std::cin >> szName;
      std::cout << "Please enter user name:";
      std::cin >> szUID;
      std::cout << "Please enter password:";
      std::cin >> szPWD;
      wStatus = ::OCIServerAttach(pServer, pErr, (OraText*)szName, strlen(szName), OCI_DEFAULT);
      if (wStatus == OCI_ERROR)
      std::cout << "Unable to attach to a server.";
      return 0;
      OCIAttrSet(pSvcCtx, OCI_HTYPE_SVCCTX, pServer, 0, OCI_ATTR_SERVER, pErr);
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pSession, OCI_HTYPE_SESSION, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Unable to allocate a session handle.";
      return 0;
      OCIAttrSet(pSession, OCI_HTYPE_SESSION, (void*)szUID, strlen(szUID), OCI_ATTR_USERNAME, pErr);
      OCIAttrSet(pSession, OCI_HTYPE_SESSION, (void*)szPWD, strlen(szPWD), OCI_ATTR_PASSWORD, pErr);
      wStatus = OCISessionBegin(pSvcCtx, pErr, pSession, OCI_CRED_RDBMS, OCI_DEFAULT);
      if (wStatus == OCI_ERROR)
      std::cout << "Unable to begin a session.";
      return 0;
      OCIAttrSet(pSvcCtx, OCI_HTYPE_SVCCTX, pSession, 0, OCI_ATTR_SESSION, pErr);
      std::cout << "Connected.";
      OCIStmt *pStmt;
      OCIBind *pBind;
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pStmt, OCI_HTYPE_STMT, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "failed allocate statement handle." << std::endl;
      return 0;
      OraText *lpSQL = (OraText*) "Insert into test (prop, value) values(:p, :v)";
      wStatus = ::OCIStmtPrepare(pStmt, pErr, lpSQL, strlen((char*)lpSQL), OCI_NTV_SYNTAX, OCI_DEFAULT);
      if (wStatus != OCI_SUCCESS)
      PrintError(pErr);
      int nProp[5] = {1, 2, 3, 4, 5};
      char szValue[5][20];
      strcpy_s(szValue[0], _countof(szValue), "V1");
      strcpy_s(szValue[1], _countof(szValue), "V2");
      strcpy_s(szValue[2], _countof(szValue), "V3");
      strcpy_s(szValue[3], _countof(szValue), "V4");
      strcpy_s(szValue[4], _countof(szValue), "V5");
      wStatus = ::OCIBindByName(pStmt, &pBind, pErr, (OraText*)":p", 2, nProp, sizeof(int), SQLT_INT, NULL, NULL, NULL, NULL, NULL, OCI_DEFAULT);
      wStatus = ::OCIBindByName(pStmt, &pBind, pErr, (OraText*)":v", 2, szValue, sizeof(szValue[0]), SQLT_STR, NULL, NULL, NULL, NULL, NULL, OCI_DEFAULT);
      wStatus = ::OCIStmtExecute(pSvcCtx, pStmt, pErr, 5, 0, NULL, NULL, OCI_COMMIT_ON_SUCCESS);
      if (wStatus != OCI_SUCCESS)
      PrintError(pErr);
      ::OCISessionEnd(pSvcCtx, pErr, pSession, OCI_DEFAULT);
      ::OCIServerDetach(pServer, pErr, OCI_DEFAULT);
      return 0;
    void PrintError(OCIError *pError)
      UCHAR szMessage[1024];
      memset(szMessage,0,1024);
      sb4 ErrorCode;
        (void) OCIErrorGet((dvoid *)pError, (ub4) 1, (text *) NULL, &ErrorCode, szMessage, (ub4) sizeof(szMessage), OCI_HTYPE_ERROR);
      std::cout << "Error:" << szMessage << std::endl;

    according to Oracle document, the OCIBindArrayOfStruct must be called for array insert, but I observed a stranger behavior that I bind the address of array through OCIBindByPos and didn't call OCIBindArrayOfStruct, and the call OCIStmtExecute, give iters the number of element of array. all data in array are insert succeeded, so I am wonder what will happen if OCIBindArrayOfStruct is not called? and why even the function is not called, array insert still succeeded? It seems OCI's behavior is same as OCIBindArrayOfStruct if iters great than 1.@
    #include "stdafx.h"
    #include "oci.h"
    void PrintError(OCIError *pError);
    int _tmain(int argc, _TCHAR* argv[])
      char szName[20] = {0};
      char szUID[20] = {0};
      char szPWD[20] = {0};
      OCIEnv *pEnv = NULL;
      OCIError *pErr = NULL;
      OCIServer *pServer = NULL;
      OCISvcCtx *pSvcCtx = NULL;
      OCISession *pSession = NULL;
      OCIInitialize((ub4)OCI_THREADED | OCI_OBJECT, 0, 0, 0, NULL);
      ::OCIEnvInit(&pEnv, OCI_DEFAULT, 0, NULL);
      sword wStatus = ::OCIHandleAlloc(pEnv, (void**)&pErr, OCI_HTYPE_ERROR, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Failed allocate Error handle";
      return 0;
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pServer, OCI_HTYPE_SERVER, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Failed allocate Server handle.";
      return 0;
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pSvcCtx, OCI_HTYPE_SVCCTX, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Failed allocate service context handle.";
      return 0;
      std::cout << "Please enter the TNS name:";
      std::cin >> szName;
      std::cout << "Please enter user name:";
      std::cin >> szUID;
      std::cout << "Please enter password:";
      std::cin >> szPWD;
      wStatus = ::OCIServerAttach(pServer, pErr, (OraText*)szName, strlen(szName), OCI_DEFAULT);
      if (wStatus == OCI_ERROR)
      std::cout << "Unable to attach to a server.";
      return 0;
      OCIAttrSet(pSvcCtx, OCI_HTYPE_SVCCTX, pServer, 0, OCI_ATTR_SERVER, pErr);
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pSession, OCI_HTYPE_SESSION, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "Unable to allocate a session handle.";
      return 0;
      OCIAttrSet(pSession, OCI_HTYPE_SESSION, (void*)szUID, strlen(szUID), OCI_ATTR_USERNAME, pErr);
      OCIAttrSet(pSession, OCI_HTYPE_SESSION, (void*)szPWD, strlen(szPWD), OCI_ATTR_PASSWORD, pErr);
      wStatus = OCISessionBegin(pSvcCtx, pErr, pSession, OCI_CRED_RDBMS, OCI_DEFAULT);
      if (wStatus == OCI_ERROR)
      std::cout << "Unable to begin a session.";
      return 0;
      OCIAttrSet(pSvcCtx, OCI_HTYPE_SVCCTX, pSession, 0, OCI_ATTR_SESSION, pErr);
      std::cout << "Connected.";
      OCIStmt *pStmt;
      OCIBind *pBind;
      wStatus = ::OCIHandleAlloc(pEnv, (void**)&pStmt, OCI_HTYPE_STMT, 0, NULL);
      if (wStatus == OCI_ERROR)
      std::cout << "failed allocate statement handle." << std::endl;
      return 0;
      OraText *lpSQL = (OraText*) "Insert into test (prop, value) values(:p, :v)";
      wStatus = ::OCIStmtPrepare(pStmt, pErr, lpSQL, strlen((char*)lpSQL), OCI_NTV_SYNTAX, OCI_DEFAULT);
      if (wStatus != OCI_SUCCESS)
      PrintError(pErr);
      int nProp[5] = {1, 2, 3, 4, 5};
      char szValue[5][20];
      strcpy_s(szValue[0], _countof(szValue), "V1");
      strcpy_s(szValue[1], _countof(szValue), "V2");
      strcpy_s(szValue[2], _countof(szValue), "V3");
      strcpy_s(szValue[3], _countof(szValue), "V4");
      strcpy_s(szValue[4], _countof(szValue), "V5");
      wStatus = ::OCIBindByName(pStmt, &pBind, pErr, (OraText*)":p", 2, nProp, sizeof(int), SQLT_INT, NULL, NULL, NULL, NULL, NULL, OCI_DEFAULT);
      wStatus = ::OCIBindByName(pStmt, &pBind, pErr, (OraText*)":v", 2, szValue, sizeof(szValue[0]), SQLT_STR, NULL, NULL, NULL, NULL, NULL, OCI_DEFAULT);
      wStatus = ::OCIStmtExecute(pSvcCtx, pStmt, pErr, 5, 0, NULL, NULL, OCI_COMMIT_ON_SUCCESS);
      if (wStatus != OCI_SUCCESS)
      PrintError(pErr);
      ::OCISessionEnd(pSvcCtx, pErr, pSession, OCI_DEFAULT);
      ::OCIServerDetach(pServer, pErr, OCI_DEFAULT);
      return 0;
    void PrintError(OCIError *pError)
      UCHAR szMessage[1024];
      memset(szMessage,0,1024);
      sb4 ErrorCode;
        (void) OCIErrorGet((dvoid *)pError, (ub4) 1, (text *) NULL, &ErrorCode, szMessage, (ub4) sizeof(szMessage), OCI_HTYPE_ERROR);
      std::cout << "Error:" << szMessage << std::endl;

  • How do I display array values in a text field?

    Hi there-
    I have a small Flash movie I'm trying to complete, it's my
    first go around with Flash 8 so I appreciate your patience:
    I built an array with some actionscript which seems to work
    fine (I can trace it and all is well in the trace window). Now I'm
    simply trying to display it to my Flash movie screen and I've built
    a dynamic text window which is working, except that I only ever get
    the last array element to appear in the dynamic text window. I've
    traced the code and see all of my array values, but when I use
    "myResults_txt.text=picker_array;" I only see the last position's
    value in my array. I tried playing with the "multiline" attribute
    for the text field, it didn't seem to make any difference.
    I'm sure it's probably something silly that I've missed, but
    how do you display an array, with all of it's values to a dynamic
    text field (I even tried using the textArea component but ran into
    the same problem).
    Thanks in advance for any help-
    rich

    Thanks for your input. I tried just about everything but
    ended up re-writing the contents of the array to a var and looping
    through the var. Not my first choice but it got me to done.
    Thanks again,
    Rich

  • JDBC Adapter Call a Table-Valued Function

    Hello to all,
    we're using the JDBC adapter to access a MS SQL-Server 2008.
    I have to call a "Table-Valued Function" via JDBC.
    Has anybody done this?
    I've tried to call it like a stored procedure with the following:
    <ns1:LGBuchungSAP_REQ xmlns:ns1="http://xyz.de/pi/mav/kantine">
         <fLGBuchungenSAP>
              <Tablename action="execute">
                   <table>dbo.fLGBuchungenSAP</table>
              </Tablename>
         </fLGBuchungenSAP>
    </ns1:LGBuchungSAP_REQ>
    but I get following error:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser:
    Error when executing statement for table/stored proc. 'dbo.fLGBuchungenSAP' (structure 'fLGBuchungenSAP'): com.microsoft.sqlserver.jdbc.SQLServerException:
    Fehler bei der Anforderung für 'fLGBuchungenSAP' (Prozedur), weil 'fLGBuchungenSAP' ein Tabellenwertfunktion-Objekt ist.
    Calling with a select-statement also fails:
    <ns1:LGBuchungSAP_REQ xmlns:ns1="http://xyz.de/pi/mav/kantine">
         <STATEMENT_NAME>
              <Tablename action="SELECT">
                   <table>dbo.fLGBuchungenSAP(&apos;20101101 00:00:00&apos;, &apos;20110101 00:00:00&apos;)</table>
              </Tablename>
         </STATEMENT_NAME>
    </ns1:LGBuchungSAP_REQ>
    with error:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <!-- Eingangs-Message -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
         <SAP:Category>XIAdapterFramework</SAP:Category>
         <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
         <SAP:P1></SAP:P1>
         <SAP:P2></SAP:P2>
         <SAP:P3></SAP:P3>
         <SAP:P4></SAP:P4>
         <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'dbo.fLGBuchungenSAP('20101101 00:00:00', '20110101 00:00:00')' (structure 'STATEMENT_NAME'): java.lang.IndexOutOfBoundsException: Index: 4, Size: 4</SAP:AdditionalText>
         <SAP:Stack></SAP:Stack>
         <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Please advice
    Regards
    Christian

    Hello to all,
    I solved the problem.
    You have to call it this way:
    <ns1:LGBuchungSAP_REQ xmlns:ns1="http://xyzde/pi/mav/kantine">
         <STATEMENT>
              <LGBuchungSAP action="SQL_DML">
                   <access>select * from dbo.fLGBuchungenSAP(&apos;$DatumVon$&apos;, &apos;$DatumBis$&apos;)</access>
                   <key>
                        <DatumVon>20101101 00:00:00</DatumVon>
                        <DatumBis>20110101 00:00:00</DatumBis>
                   </key>
              </LGBuchungSAP>
         </STATEMENT>
    </ns1:LGBuchungSAP_REQ>
    But I get the next error: "A result set was generated for the update task"
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
         <SAP:Category>XIAdapterFramework</SAP:Category>
         <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
         <SAP:P1></SAP:P1>
         <SAP:P2></SAP:P2>
         <SAP:P3></SAP:P3>
         <SAP:P4></SAP:P4>
         <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'LGBuchungSAP' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Es wurde ein Resultset für den Aktualisierungsvorgang generiert.</SAP:AdditionalText>
         <SAP:Stack></SAP:Stack>
         <SAP:Retry>M</SAP:Retry>
    </SAP:Error>

  • How to call a preference value in XSLT

    Hi ALL,
    how to call a preference value(which is defined in bpel already) in XSLT??
    Can any one help me plz
    Regards,
    Venkat Ch

    Function to retrieve the preference :
    http://www.xenta.nl/blog/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    Create a new xsl mapping and let the 'first' parameter be some messageType variable (for example the inputVariable, or some other variable you use for your main input).
    In the xslt add between the "<xsl:stylesheet>"-tag and the "<xsl:template match=".">"-tag something like  "<xsl:param name="myPref" />"
    Your xsl is ready to receive the extra input parameter.
    Now in your bpel process do something like this
          <copy>
            <from expression="ora:doXSLTransformForDoc('xsl/myxslt.xsl', $inputVariable.input, 'myPref', ora:getPreference(myPref))"/>
            <to variable="myresult"/>
          </copy>
    or first assign ora:getPreference(myPref) to myPrefVar (xsd:string) and then use 
          <copy>
            <from expression="ora:doXSLTransformForDoc('xsl/myxslt.xsl', $inputVariable.input, 'myPref', $myPrefVar)"/>
            <to variable="myresult"/>
          </copy>

  • Minimum Value Sucharge not calculated

    Hi Gurus,
    I created condition record ZMIW for material 1234 1000 Euro but in the Salesorder Condion Tab
    SD Minimum Value Sucharge is same with Minumum Order Value
    Mat 1234 1 pc 200 Euro
    Minimum Order Value                            1000 Euro
    Minumum Minimum ValueSurchrg          1000 Euro (it should be 800 Euro)
    I use the Condition types ZMIW and ZMIZ
    In the Pricing Procedure                                                                               
    SubT    Reqt   Calty                  acct
    817       0          ZMIW   Minimum SalesOrdrVal                                      D          2
    818       0          ZMIZ     Minimum ValueSurchrg                                                 2          13                    ERS
    RefCondtTyp is ZMIW fpr CondType ZMIZ
    Could please tell what should I check ?
    BR,
    Emre
    Edited by: Y. Emre Kurnaz on Sep 11, 2009 9:00 AM
    Edited by: Y. Emre Kurnaz on Sep 11, 2009 9:01 AM

    Hi,
    thank you for your reply.
    I maintained the Condtyp ZMIW and ZMIZ
    ZMIW from 800  subtotal D and requirement 2. i typed step number 800 (where Net Value for Item calculated).
    ZMIZ requirement 2 and altcalc type 13
    I maintained Condition record for ZMIW 1000 Euro.
    everything looks right. but minimum order value and surchage are same (both are 1000 Euro.)
    I tried with standard pricing procedure (RVAA01) the result is equal
    I donkt know but  it should not be so complex.
    Thanks in Advance
    Emre

  • Excise Duty Values is not calculated in Po

    Hi,
    Even though we have maintained the Excise rates in J1ID the and the corresponding Tax Code in FTXP
    when we check the Pricing in the PO the Excise Values are not calculated.
    Can any body please help me.

    dear sir
    please check for you vendor , vendor excise details maintained in J1ID , and Excise tax indicator for vendor
    1 you have give or not check.
    also check excise indicator for the plant in J1ID. Excise tax indicator for company, give 1.
    then create the PO and check the excise amount.
    regards
    jrp

  • Return array value based on selection criteria

    I have one data field that holds text data similar to below:
    "Meeting Room 1 (Projector), Meeting Room 2 (Whiteboard), Meeting Room 3 (Video Conferencing)"
    "Meeting Room 3 (LCD Display), Meeting Room 1 (Video Conferencing), Meeting Room 2 (Whiteboard)"
    The meeting rooms are not always in the same order, I cant count on Meeting Room 1 being followed by Meeting Room 2 etc.
    My objective is to only return the meeting room that has the Whiteboard.
    I'm aware that I can use SPLIT to seperate the Meeting Rooms by the comma and place their components into an array.
    What I'm not sure how to do is return the meeting room with the Whiteboard when that could be [1] in the Array or [2] or [3] in the array.
    I need to return the array value based on its contents. Could someone help me 'search' the array created by the SPLIT command and always return that value with the word 'Whiteboard'

    This works
    whileprintingrecords;
    global stringvar x:='';
    global numbervar n:=1;
    While n <= Ubound(split('......, Meeting Room X (Whiteboard),..............', ",")) Do
    if split('..........., Meeting Room X (Whiteboard), ............', ",")[n] like '*Whiteboard*'
    then x:=split('.............., Meeting Room X (Whiteboard), ..............', ",")[n];
    n := n + 1;
    x;
    Just replace my string with your field.
    Ian

  • Can the Ring Properties/Edit Items/Labels be populated by array values?

    Can the Ring Properties/Edit Items/Labels be populated by array values?
    I'm trying to troubleshoot an existing LabView 7.0 application at our office (this is only the beginning of my nightmare) and I'm finding that there is an array being created out of discrete Elements, which is then being indexed using the Indexed Array function, using a Ring control as the Index input. 
    What I'm seeing is that whoever created this "Appication" seems to require that any new 'elements' that need to be added to the array need to added in AT LEAST two locations (add the element to the array and add a label on the Edit Items tab of the Ring control used to index the array) and there may be more locations I haven't found that also needs the same information.  Since I can't see any way for the array and the ring control to 'compare' the text strings, I'm assuming the array is being indexed using the 'values' from the Edit Items tab.  Ths would allow different text in the Ring dropdown than is actually contained in the text of the array.
    This is contrary to most of the coding practices I've learned, so I'm wondering if I could use the text strings contained in the array itself to populate Item list in the Ring control?
    Later I can create an 'entry form' that would allow new parts to be added by staff that doesn't require knowledge of LabView programming. (The "Users" should NEVER have to see the underlying block diagrams/code to add or edit parts ot test parameter values.)
    Thanks

    In 8.2 you can do this with a property node and the "Strings [ ] Property".  It accepts an array of strings.  Order of strings in array sets the order in the control.  Should work in 7.0 as well.

  • Passing array values to an Applet from JSP

    Hi,
    I have a JSP page in which I've arrays that are populated from a DB. I want to pass these array values from the JSP page to a Applet in the same page. Is it possible ?
    Any help will be appreciated.
    :-) Praveen

    Then the answer is no. The Applet doesn't exist until it is instanciated by the browser so the JSP running on the server can not pass Java Objects. You can either set up a javascript array, set the parameter tags in the HTML Applet tag or have the Applet open a URLConnection back to the server.

  • How to display array values in textfield?

    i am creating student details with mysql database using JSON to get values and display in xcode.i got json array values from php and converted to NSMuatable array. my array result
        firstName = hari;
        lastname = krishna;
        age=10;
        fathername=ragav;
        firstName = priya;
        lastname = amirtha;
        age=8;
        fathername=ravi;
    now i want to display values iwhen i am enter firstname other field values display  in  textfiled  on button click.how to do that .help me .thanks in advance.
    i am very new to xcode.

    Hi,
    I think that its necessaries to use AJaX.
    I am implemeting something like that.
    I have a input text that works like a filter and depends on what my user types in input text I populate my table with some information.
    In order to do that, I put in my JSP a div with an Id and I used ajax, like that:
    function ajaxFunction()
              var xmlhttp;
              if (window.XMLHttpRequest)
              xmlhttp=new XMLHttpRequest();
              else if (window.ActiveXObject)
              // code for IE6, IE5
              xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              else
              alert("Your browser does not support XMLHTTP!");
              xmlhttp.onreadystatechange=function()
                                                      if( xmlhttp.readyState==4 )
                                                           document.getElementById("tabelaResponsaveis").innerHTML = xmlhttp.responseText;
         var resp = "<f:invokeUrl var='solicitacao' methodName='getResponsaveis'/>";
         xmlhttp.open("POST",resp,true);
         xmlhttp.send(null);
    getResponsaveis is a method inside my BPM that returns a HTML code (the table HTML code with all the information that I need to show.
    I Hope to help
    Thanks Marcos

  • Exclude records with value 0 for calculated KF

    Hi, experts,
    How do I Exclude records with value 0 for calculated KF without using condition?  I'm using version 7
    Appreciate any help you can provide.
    Thank You!
    Alina

    Hi,
    We didn't understood ur requirement well.
    1) Lets say, you have 3 KF. and you are doing CKF1 and you don't want to show the records with Zero, In that case you can go with Zero Record Supression.
    2) If you want to try to delete only KF/CKF where there is zero, it won't work as others may have values in them and you may miss the whole record set in the report
    3) If the zero result is part of calculation, then please go ahead as explained above.
    Please explain clearly if this is what you have or is it different ?
    Regards,
    -S-

  • Update array value into database

    Hi, I would like to enquire if there is any way to update an array in the database.
    As an example, i have an array which contain the value of the operating hour. I am able to insert the array value successfully into the database. Now i have problem to update the database, for these arrays.
    Any suggestion will be very much appreciated.
    Thank you in advance.

    fizRiani wrote:
    the field type is a string arrayReally? Have never seen that before in databases. Aren't you confusing database field type with Java object type?
    the actual data represent the different operating hour that has to be inserted and updated to the database.I would rather use a chain table. Read on about database normalization.

  • How to run a for loop for an array value

    Hello
    I got an array of value(for ex 1,4,6,10),depending on the array value i need to run the porgram in the case structure(as the examaple values given earlier case1,4,6,10)the program needs to run once for all the values in the array(i mean the program needs to run 1st for case1,then case4 and so on)
    Any suggestions pls.

    Can you describe exactly what you want to do?  In most cases, you do not need a loop to deal with arrays.  Many functions are polymorphic and will deal with arrays directly. 
    R

Maybe you are looking for

  • Installation problem for Oracle 9.2 on Win XP pro

    This is what I have done so far: 1. Launch Setup 2. Specify the Product Key and Home Directory 3. Select Database Option 4. Select Personal Edition (I am a student) 5. Click Install The Installer starts and I see a progress bar on top. It goes till 3

  • Mouse no longer scrolls photos in 2 view modes

    In A2, if I hovered the mouse over the strip and used the wheel (Revolution MX) it would scroll the thumbnails. If I hovered it over the selected, large photo I could scroll through one-by-one. Same in Viewer mode-scrolling up or down went to the nex

  • G4 screen on an ibook g3?

    Hey everyone. I have a strange question. I own A iBook G3 (800mhz) The screen finally died on it. I was wondering if there is any possiable way to take a iBook G4 (1.25ghz)screen and color match the wires to make the G4 screen work with my G3? sorry

  • Out of Sync Audio/Video

    In Flash CS4 my audio is running faster than my video and then about the middle the sound ends but the video keeps playing. This is imported flv file. I am using progressive download and external videos at 24fps. Any help appreciated. Thanks Dave

  • Ordering a HP Recovery Kit Windows 8

    The websites directions to order the HP Recovery kit are not up to date with the current website layout. I need to order the kit for my laptop. ENVY dv6  Product: C2M11UA#ABAModel: dv6-7210usWarranty: 1y1y0y Just looking to be pointed in the right di