Problem in using array variable in PartnerLinks

I have a stored procedure in Oracle DB,which the parameters is a varray with types,such as
type temp1 as object (temp_id varchar(10),temp_desc varchar(512));
TYPE templist AS VARRAY(50) OF TEMP1
procedure testArray1(accounting_temps IN templist)
I used the database adapter to generate a partnerlink,it can work,but when I assign the variables to DBAda1_InputVariable (using while to read all data in xml),it only send a array with one value,the last value updates the value before.
How to add the array (not update) variable in this case??
Thanks and best regards!!

I have a stored procedure in Oracle DB,which the parameters is a varray with types,such as
type temp1 as object (temp_id varchar(10),temp_desc varchar(512));
TYPE templist AS VARRAY(50) OF TEMP1
procedure testArray1(accounting_temps IN templist)
I used the database adapter to generate a partnerlink,it can work,but when I assign the variables to DBAda1_InputVariable (using while to read all data in xml),it only send a array with one value,the last value updates the value before.
How to add the array (not update) variable in this case??
Thanks and best regards!!

Similar Messages

  • Coercion problem when using Shared Variable

    I have a curious coercion problem when using Shared Variables.  I want to share the state of a State Machine, which is an enum saved as a control (typedef) called TYPE State (see attached).  I create a shared variable called State and define it as a Custom Control, using the just-mentioned typedef.  So far, so good.  I've attached three simple VIs -- the first one, Init State, simply wires a constant to the input of the Shared Variable to initialize it -- the wired constant is, of course, defined by the typedef.  However, the Get State and Set State, meant to wire an indicator (for reading the state) or control (for setting it), develop coercion dots when wired into the Shared Variable.  Why?  How do I get rid of the dot?  [I suppose I could abandon my typedef and custom control, but the beauty of typedefs and custom controls is that it "enforces" rules, lets you use enums for clarity, keeps the code "honest", etc. -- I'd hate to give that up just to get rid of a dot!].
    On a related note, the code seems to work.  This is much too simplistic to do anything, but if you open Set State and Get State, set the state to anything, run it (it immediately stops, of course), then run Get State, you'll see the chosen state appear in the indicator.  So it does appear to work.  The "error" (coercion dot) may, I suppose, be a "bug" in Labview because it can't figure out the mapping of the (very simple!) Custom Control, but if so, I hope it gets fixed quickly!
    Bob Schor
    Attachments:
    Coercion Problem1.zip ‏38 KB

    Hello Bob,
    I am also seeing this behavior, I will escalate this question to our LabVIEW developers and post again here no later than next Tuesday, November 27th as National Instruments will be closed for the remainder of this week.
    If this issue does turn into a product suggestion, I would suspect the workaround would to live with the coersion dot for the time being.
    Enjoy the holiday
    Regards,
    Erik J.
    Applications Engineer
    National Instruments

  • How to use array variable in Oracle

    Hi,
    I want to use a array variable to store many string values i.e. values like ( "my name is hhhyy and i have a tack", "My data is valid" , "hhggg gaya hujjjs")
    currently all these values are in seperate variables , I want to consolidate them in one array and use it in further , after replacing some values from them.
    I want to take data too. I am thinking of using "Varchar array" with values are in one cursor i want to take them in single array.
    varchar array is throwing some exception once it has taken all the value. I had extended it upto 100 values.
    What could be the possible solution.
    create or replace function testet
    ( value varchar2) return varchar2
    as
    x_value Varchar2(2000);
    x_value2 varchar2_array := varchar2_array();
    x_value3 number;
    cursor c1 is
    SELECT val
    FROM table A
    WHERE A.coulmn= 'val';
    begin
    x_value2.EXTEND(100);
    x_value3 := 1;
    for indx IN c1
    loop
    x_value2(x_value3):= indx.val;
    dbms_output.put_line(x_value2(x_value3));
    x_value3 := x_value3 + 1;
    end loop ;
    end;

    user12403816 wrote:
    actual error :
    ORA-06533: Subscript beyound count
    ORA - 06512 " at Function name , line 23
    ora - 06512: at line 3
    06533, 00000, "Subscript beyond count"
    // *Cause:  An in-limit subscript was greater than the count of a varray
    //          or too large for a nested table.
    // *Action: Check the program logic and explicitly extend if necessary.code contains bug.
    after code is fixed, then no error gets thrown

  • Problem in using bind variables.

    I am using following query in my procedure:
    In 1st Query I am getting the result.
    And in 2nd Query when i am using bind variable i got error that " Table or View Does not Exist"
    ---------1st query
    OPEN p_document_details FOR
    SELECT ddd.document_code,
    ddd.document_description,
    ddd.document_level
    FROM dms_document_details ddd,
    dms_document_group_details ddgd
    WHERE UPPER(ddd.document_code) = UPPER(ddgd.document_code)
    AND UPPER(ddgd.document_group_code) = UPPER(p_doc_group_code)
    AND UPPER(ddgd.scheme_type) = UPPER(p_scheme_type)
    AND UPPER(ddgd.process_name) = UPPER(p_process_name) ;
    ---------2nd query
    v_search_sql :=
    ' SELECT ddd.document_code, '
    || ' ddd.document_description, '
    || ' ddd.document_level '
    || ' FROM dms_document_details ddd, dms_document_group_details ddgd '
    || ' WHERE UPPER(ddd.document_code) = UPPER(ddgd.document_code) '
    || ' AND UPPER(ddgd.document_group_code) = :a '
    || ' AND UPPER(ddgd.scheme_type) = :b '
    || ' AND UPPER(ddgd.process_name) = :c ' ;
    Please provide any solution.
    Thanks in advance.
    AgrawalV

    ---------2nd query
    v_search_sql :=
    ' SELECT ddd.document_code, '
    | ' ddd.document_description, '
    || ' ddd.document_level '
    || ' FROM dms_document_details ddd,
    dms_document_group_details ddgd '
    || ' WHERE UPPER(ddd.document_code) =
    UPPER(ddgd.document_code) '
    || ' AND UPPER(ddgd.document_group_code)
    = :a '
    || ' AND UPPER(ddgd.scheme_type) = :b '
    || ' AND UPPER(ddgd.process_name) = :c ' ;
    Hi!
    Try to use chr(10) before from clause. Hope this will solve your problem --
    v_search_sql :=
       ' SELECT ddd.document_code, '
    || ' ddd.document_description, '
    || ' ddd.document_level '
    ||chr(10)
    || ' FROM dms_document_details ddd, dms_document_group_details ddgd '
    ||chr(10)
    || ' WHERE UPPER(ddd.document_code) = UPPER(ddgd.document_code) '
    || ' AND UPPER(ddgd.document_group_code) = :a '
    || ' AND UPPER(ddgd.scheme_type) = :b '
    || ' AND UPPER(ddgd.process_name) = :c ' ;Regards.
    Satyaki De.

  • Query BI7: problem in using the variables of referenced caracteristics.

    Dear Experts,
    I have posted a question in "BI General" yesterday. Untill now, I haven't got any reply. So i decide to post it under this subject. And I hope somebody can help me.
    A query was created on the basis of an Infoset, in which there are many caracteristics created with reference to some existed caracteristics.
    However, in the new query, I was not able to use those variables which are already created and attached to the existed caracteristics. What's more, some variables are declared in the SAP exit, and they are compulsory in the new query.
    Given a very short delay in the project, it seems to me impossible to create all the variables for my new query.
    Is there anybody who has a solution or an idea for this problem?
    Thanks in advance!!!

    I was not able to use those variables which are already created and attached to the existed caracteristics.
    Ya,you cannot use the same variable to two(or more) infoobjects (though they use same reference) but what I observed in was eventhoug you get Error messaga when you do check in query designer.If you ignore and just execute the query it simply works.Just give it a try.
    Else you need to create new variables similar to existing one and use it.

  • How to use array variable in Business Rule

    Hi,
    I have read a lot about Array variable. But everywhere declaration of array variable in described. I can declare that. It works fine. But i can't implement that array variable.
    Can any one please provide me an example of implementation of array variable?
    Regards,
    Rubi
    Edited by: Rubi Banerjee on Mar 30, 2012 3:35 AM

    forget about all varible in essbase CSC
    it's bad practics.^^^Is it?
    Essbase cube are self big array )^^^That's what makes ARRAY so cool -- you can set up an array that encompasses a dimension.
    Example straight from a HBR:
    ARRAY SomeArray["Entity"] ;
    Regards,
    Cameron Lackpour

  • Problem in using 'Path Variable' in Linked resources in Eclipse

    Hi All
    Currently we are working on a J2EE project on which we have established the split-development environment. In this environment we have few UI web sub-projects. These projects are bundled as a one UI project at the time of deploying the application.
    For Example UI proj Structure is as below
    ../UI-Proj-Main/WebContent/sub
                        /jsp1
                        /jsp2
    ../UI-Proj-Sub1/WebContent/sub
                        /jsp1_sub1
                        /jsp2_sub1
    ../UI-Proj-Sub2/WebContent/sub
                        /jsp1_sub2
                        /jsp2_Sub2                    
    In the final ear project which got deployed on the server we have only on war file which have below structure
    ../UI-Proj-Main/sub
                        /jsp1
                        /jsp2
                        /jsp1_sub1
                        /jsp2_sub1
                        /jsp1_sub2
                        /jsp2_Sub2     
    To perform this we have created a linked-source of UI-Proj-Sub1 and UI-Proj-Sub2 in the project UI-Proj-Main. For this a an entry of '<linkedResources>' occured in the .project file of UI-Proj-Main . i.e.,
         <linkedResources>
              <link>
                   <name>UI-Proj-Sub1</name>
                   <type>2</type>
                   <location>C:/myProj/UI-Proj-Sub1/sub</location>
              </link>
              <link>
                   <name>UI-Proj-Sub2</name>
                   <type>2</type>
                   <location>C:/myProj/UI-Proj-Sub2/sub</location>
              </link>
         <linkedResources>
    My Problem:
    The '<location>' tag contains the explicit path of my workspace myProj. If I want to create a different workspace then I need to manually edit the .project file for relinking. If I use the Path variable in location i.e.,
    <linkedResources>
         <link>
              <name>UI-Proj-Sub1</name>
              <type>2</type>
              <location>WORKSPACE_LOCC/UI-Proj-Sub1/sub</location>
         </link>
         <link>
              <name>UI-Proj-Sub2</name>
              <type>2</type>
              <location>WORKSPACE_LOCC/UI-Proj-Sub2/sub</location>
         </link>
    <linkedResources>
    then I got following error at the time of deploying the application
    "Runtime exception occurred in publish task 'Split Source Mapping Generation Task'.Source should be absolute."
    Kindly let us know a way to avoid the absolute path in .project file. Our customer don't want us to change the project structure.

    Disabled where? Project or workspace? You should check both.
    And you must still go to an Eclipse forum and ask for help there, this is not an Eclipse support channel.

  • Problems with using a variable of type flash.filesystem.File

    I need to parse a file with my flex app.  I can import flash.filesystem.File with no problem but if I try to create a variable of that type, it does strange things at run time.  If the variable is defined inside a function, it's as if that function no longer exists.  The function doesn't get called and I can't step into it.  If I define a File variable at global scope, the swf simply won't do anything at all.
    I've added all the AIR libs to my project and don't know what else to try at this point.  Any ideas?
    This sample code shows the problem.  If I comment out the File in initData, initData doesn't get called and I can't step into it.  If I comment out the global File, then I get a blank swf.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application           
       xmlns:mx="http://www.adobe.com/2006/mxml" minWidth="955" minHeight="600"
       initialize="initData()">
        <mx:Script>
            <![CDATA[
                import flash.filesystem.File;
                //private var file:File;
                private function initData():void
                    //var file:File;  
                    testLabel.text = "test";   
            ]]>
        </mx:Script>
        <mx:TextArea y="200" id="testLabel" text="hello" />
    </mx:Application>

    sorry for my ignorance, I've only been using flex since 4.0
    shouldn't you be using WindowedApplication rather than Application for an AIR app?
    also there is no need to import File
    below is my code that work's fine
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
                                  layout="absolute"
                                  initialize="initData()">
         <mx:Script>
              <![CDATA[
                   private var file:File;
                   private function initData():void
                        var file:File;
                        testLabel.text = "test";
              ]]>
         </mx:Script>
         <mx:TextArea y="200" id="testLabel" text="hello" />
    </mx:WindowedApplication>

  • Problem is using collection variables in contracts

    Hi all
    I am trying to create a contract from master agreement that would pull in the line item information in master agreement in a tabular format in my MS Word based contract.
    For the same I have added contract gen variable  "Agreement Line Items (Table format)" in one of the clauses.I am used this clause in my contract generation template. When i create contract using this contract gen template valuse are not getting pulled.
    This is working fine for attribute variables like Title, company etc.
    Plz help if somebody has faced similar issues
    Regards
    Tripti
    Edited by: Tripti A on Mar 24, 2010 1:12 PM

    Hi
    Is the functionality working fine for everyone? Please let me know.
    Tripti

  • How to use the variables of Function exit in the include program

    i have a problem of using the variables of a function exit in the include program..
    If i use those variables there will be an error indicating 'Field FEBVW_IN is unknown. It is neither in one of the specified tables nor defined by a DATA statement'. Please help... Below is the code of the function exit:
    FUNCTION EXIT_SAPLIEDP_202.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IDOC_CONTROL_INDEX)
    *"     VALUE(IDOC_DATA_INDEX)
    *"     VALUE(FEBVW_IN) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_IN) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_IN) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_IN) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_IN) LIKE  FEBPI STRUCTURE  FEBPI
    *"  EXPORTING
    *"     VALUE(I_FIMSG) LIKE  FIMSG STRUCTURE  FIMSG
    *"     VALUE(FEBVW_OUT) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_OUT) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_OUT) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_OUT) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_OUT) LIKE  FEBPI STRUCTURE  FEBPI
    *"  TABLES
    *"      IDOC_CONTROL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_AVIP STRUCTURE  AVIP OPTIONAL
    *"      IDOC_AVIR STRUCTURE  AVIR OPTIONAL
    *"      IDOC_AVIT STRUCTURE  AVIT OPTIONAL
    *"  CHANGING
    *"     REFERENCE(IDOC_AVIK) TYPE  AVIK OPTIONAL
    *"  EXCEPTIONS
    *"      PROC_ERROR
      INCLUDE ZXF08U10.
    Here is the code for the include program.
      INCLUDE ZXF08U10
    MOVE febvw_in TO febvw_out.

    Sometimes you will get this error message when checking include code in exits even though there is really no error - it happens because the include does not realise it is in the function due to the navigation index being out of date.
    Try activating the code - it may work even though the check said there were errors.
    You can also get this issue when trying to drill down on the field in the include to view its structure.
    Andrew

  • Using arrays in a jsf page

    Hi guys,
    I'm developing an ADF application in JDev 11.1.1.6.0. I have problem about using arrays in jsp page. I have an iterator that brings me data from UCM. I just want to take every documents seperately and use in a Jquery division by division.
    Can i have chance to use an array tag in that page? Or how can i make it possible my work in a different way?
    Thank you so much,
    Erdo

    Hi Frank,
    I've already use an iterator. I just want to take datas and after close the af:iterator tag. Then i will use those datas in a different block.
    My code :
    <af:iterator var="node" value="#{nodes}" id="i1">
    <af:outputText value="#{node.propertyMap['CSGMNEWS_REGDEF:Desc'].asTextHtml}"
    id="ot1"/>
    </af:iterator>
    I want to take all informations from node.PropertyMap[] and then i will set the values of outputText with those informations. I hope I'm clear.
    Regards,
    Erdo
    Edited by: erdo on 20.Mar.2013 10:21

  • How do I use an array variable in the assignment target?

    Hi,
    I am creating a BPEL process in which I have to use an array variable. The array variable needs to be initialized based on some condition.
    The issue is I cannot find a way to set the value of the array variable. There are ways to GET the value of an array variable indexing into it.
    But how do I set the value by using the Array variable in the <to> tag?
    Any help is appreciated. I am using BPEL 10.1.2.0.2.
    Thanks.

    You can declare a variable of type integer which will server as your index. Figure out based on some condition in your process which index of array to update. Assign to your integer variable you created.
    And have Assign copy operation like this -
    <copy>
    <from variable="Var_Output_FetchDueDate"
    part="OutputParameters"
    query="/ns18:OutputParameters/ns18:DUEDATE"/>
    <to variable="outputVariable" part="payload"
    query="/client:GetCustomerAccountInformationProcessResponse/client:customer/client:accounts/client:account[$Var_Counter]/client:dueDate"/>
    </copy>
    I have been using this in my processes.

  • Using a variable to select array value

    Hey,
    Im fairly new to Java, and im doing a course in it at the moment. I have been set some homework to do, but ive got a little stuck ...what i have to do is create a program that randomly generates numbers between 1 and 10, and then i have made an array which has 10 values, and say number 1 comes up in the random number generation, i want array [1] to have the number of times 1 appears in it. Ive came up with the following, but i keep getting errors ...i think there is a problem with defineing the variable i as a long, then the array as an integer...
    int[] ar = {0,0,0,0,0,0,0,0,0,0};
    int a = 0;
    while (a<10)
    a++;
    long i = Math.round(Math.random()*10);
    ar[i] = i;
         System.out.println(ar);
    with that code i get these errors:
    found : long
    required: int
    ar[i] = i;
    ^
    C:\Website Projects\Java Work\test 1\Document.java:14: possible loss of precision
    found : long
    required: int
    ar[i] = i;
    if anyone could help me get this working i would be most greatful
    Thanks for your time,
    -Ross

    ah k thanks for the response :) ...ive managed to narrow it down to one error:
    public class random {
    public static void main(String[] args){
    int[] ar = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
    int i = 0;
    while (i < 10){
    int t = Math.round(Math.random()*10);
         int ar[t]++;}
         i++;
    System.out.println(ar);
    gives the error:
    C:\Website Projects\Java Work\test 1\random.java:8: ']' expected
         int ar[t]++;}
    ^
    1 error
    Tool completed with exit code 1
    Im pretty sure it just doesnt like the value of the Math.xxxx being int, i was told it requires long/double...i need to convert it somehow after its done the calculation, i think :-S
    Thanks,
    Ross

  • Problem using local variable in event loop

    I have a state machine from which I want to monitor various controls, including "Start" and "Stop" buttons.  Not every state needs to monitor the controls.  At present, most states run timed loops.  In the first state that reads the front panel, I have an Event structure (inside a While loop) that monitors the various controls' Change Value events.  For numeric controls, I update variables (in shift registers) as needed.  The "Start" button is used to end the While loop controlling the Event structure, allowing the State to exit to the next state.
    My problem comes in subsequent states that employ this same idea.  Here, I put a Local Variable bound to the Start button and use the same code, but it frequently happens that when I enter this particular state, I cannot "turn on" the control -- I push the button, but it stays off.  Curiously, if it was On when I enter, I can turn it off, but then I'm stuck not being able to turn it on.
    I mocked up a very simply routine that illustrates this.  There are two sequences (corresponding to the two states).  Both use an Event loop with a local variable bound to my Stop button (really this is an LED control with custom colors).  I've deliberately moved the "initialization" (the declaration of the control in the block diagram) out of the Event loops -- putting it inside the first loop modifies the behavior in another strange way.
    Here's my thinking on how I would expect this to work:  The code outside Event Loop 1 should have little effect.  Assume the Stop button is initially Off.  You will "sit" in Event Loop 1 until you push the Stop button, changing its value to True; this value will be passed out of the Event case and cause the first While loop to exit.  You now enter the second sequence.  As I understand the Exit tunnel, it defaults to "False", so I'd expect to stay in the second Event loop until I turn the Stop button from On to Off, which will pass out a False, and keep me in the While for one more button push.  However, this doesn't happen -- I immediately exit, as though the "True" value of the Stop local variable is being seen and recognized by the Event loop (even though it hasn't changed, at least not in the context of this second loop).
    An even more curious thing occurs if I start this routine with the Stop button turned on.  Now I start in my Event loop waiting for a change, but this time the change will be from On to Off, which won't cause an exit from the frame.  This will be reflected by having the While loop count increment.  We should now be in the state of the example above, i.e. in an Event loop waiting for the control to be pushed again, and turned On.  However, clicking the control has no effect -- I cannot get it to "turn on".
    Where am I going astray in my thinking?  What is it about this method of doing things that violates the Labview paradigm?  As far as I can tell, what I'm doing is "legal", and I don't see the flaw in my reasoning, above (of course not -- otherwise I'd have fixed it myself!).  Note that because I'm using local variables inside Event loops (and I'm doing this because there are two places in my code where I want to do such testing), the Stop control is not latching (as required).  Is there something that gets triggered/set when one reads a latched control?  Do I need to do this "manually" using my local variable?
    I'll try to attach the simple VI that illustrates this behavior.
    Bob Schor
    Attachments:
    Simple Stop Conundrum.vi ‏14 KB

    altenbach wrote:
    Ravens Fan wrote:
    NEVER have multiple event structures that share the same events. 
    Actually, that's OK.  NOT OK is having multiple event structures in the same sequence structure.
    See also: http://forums.ni.com/ni/board/message?board.id=170&message.id=278981#M278981
    That's interesting.  I had always thought I read more messages discouraging such a thing rather than saying it was okay.  Your link lead me to another thread with this message. http://forums.ni.com/ni/board/message?board.id=170&message.id=245793#M245793.  Now that thread was mainly concentrating on registered user events which would be a different, but related animal. 
    So if you have 2 event structures they each have their own event queue?  So if you have a common event, one structure pulls it off its event queue and it does not affect the other structure's event queue?  I guess the inherent problem with this particular VI was that the second event structure locked the front panel.  Since the code never got to that 2nd event structure because the  first loop never stopped because the change was from true to false.  After reading your post and the others, I did some experimentation and turned off the Lock front panel on the 2nd structure, and that prevented the lockup of the program.
    Overall, the example VI still shows problems with the architecture and I think your answer should put the original poster on the right track.  I think as a rule I would probably never put the same event in multiple structures, I feel there are better ways to communicate the same event between different parts of a program,  but I learned something by reading your reply and about how the event structures work in the background.  Thanks.

  • Problems using substitution variable in Web Analysis

    Dear all,
    I have a Web Analysis report that I need to show a raking table with the current month.
    For that I create a variable in Essbase that is updated with that date (E.g.: varCurrentMonth).
    After that I use it as my substitution variable to filter my date dimension in a report data source (E.g.: Scr5, row: product, column: date dimension & measure):
    2008 (current month)
    Product $ qty.
    AAA 100 10
    BBB 90 7
    CCC 80 5
    The problem is that in our cube we need to use an alias in every dimension not to have duplicate members (E.g.: DT.Date, MS.Measure, PD.Product, etc). And when we use it we need to set up the variable in Essbase using that alias (E.g.: DT.Feb/05/08). And if we use that variable as a substitution variable in the report data source the label displayed is the DT.2008 and not 2008 as expected.
    Does anybody have an idea how to solve that?
    Many thanks,
    Thiago Gabriel

    You usually get this error message if you are trying to assign a value from a sub var to a member that does not exist.
    e.g. trying to put FY08 which is a year member against a period dimension
    or trying to use a sub var of FY09 which does not yet exist in the essbase, so say you added a new year in planning FY09 and used the sub var in the form but have not refreshed the database then it would fail because the year would not have been pushed down to essbase yet.
    or the value of the subvar does not match a member name exactly
    or using a sub var name that does not exist in essbase, e.g. using &nextYear but the sub var has not been created in essbase.
    You can definitely use subsitution variables in columns in the version you are using and prior version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for