Array of events as an input

Hi,
My JSON input can be either a single event or an array of events.
I can handle a single event easily, but how do I handle an array of events as input to the query?
Thanks,
Janiv. 
Janiv Ratson. Technology and Development Expert. | BL: http://blogs.microsoft.co.il/blogs/janiv/ | LI: http://www.linkedin.com/in/janiv | TW: http://twitter.com/janiv http://about.me/janiv

An event can be:
{"id":10,"name":"Light","value":"0.0298887"}
Can I work with an array of events?
[{"id":10,"name":"Light","value":"0.0298887"},{"id":11,"name":"Sound","value":"0.1272064"}]
Thanks,
Janiv.
Janiv Ratson. Technology and Development Expert. | BL: http://blogs.microsoft.co.il/blogs/janiv/ | LI: http://www.linkedin.com/in/janiv | TW: http://twitter.com/janiv http://about.me/janiv

Similar Messages

  • Enter-Event on an "Input Field"

    Hello Community...
    i would like to trigger an event on an Input-Field in my Form. When I enter a value and press "Enter" the value should be given via an output signal to another iView. What kind of event do I have to choose to achieve that? I chose a Custom Action, but the value was passed to the output signal when I left the field.
    Greetz, Jochen

    Hi Jochen,
    As per your requirement:
    " When I enter a value and press "Enter" the value should be given via an output signal to another iView"
    press Enter means u want to have a button in the form along with the input field. Am I correct?
    If so then why to give action in the input field.
    "I chose a Custom Action, but the value was passed to the output signal when I left the field"
    Beacuse If you will give the event in input field then when you will fill the value in the input field that action will be triggered.
    Better to give the action in the button if you want to press and then event has to be triggered.
    Go to the Button property--give system action--as submit.
    Then to pass data between the iviews you must have used signal out and signal in.
    Regards,
    Nutan

  • Events, Variables and Input Text

    Hi,
    I'm not new to Flash or AS3 but I've never really made anything too complex. I'm making a Flash game and getting to know Variables for the first time. The tutorials online confuse me because they're mostly geared towards AS2 and I bought this book (which is awesome) Game Design with Flash, but it only covers variables involving numbers and a guessing game.
    All I want right now is a field to enter your name and below, whatever the user has entered, will show up in a Dynamic text field that will go, "Oh, so your name is (whatever)?" I understand that the information that the user types into the Input Text Field has to be entered in somehow, so do I need to make a function to make it work with a button? Right now I can type in the Input but nothing shows up in the Dynamic text field.
    I borrowed an AS3 example from elsewhere on this forum and added my own Instance names. I also wanted to know, how can I call up the user's name throughout the game? Just calling that same variable up?
    Here is what I have:
    stop();
    var myName:String;
    myName = userName.text;
    confirm_txt.text = "So your name is "+ myName;
    I get no errors but the Dynamic text box isn't showing what I'm typing... How do I go about "entering" the name so it shows up and I can call it up anytime throughout the game?
    Thank you so much in advance for any help offered!

    "It sounds like the same concept of a class, so if a class is a pot, everything in it can be what pertains to the pot."
    Well, there one important thing you need to keep in mind when dealing with Flash. There are classes and display lists. Classes have properties and methods and display lists have children.
    For example,
    var myClip:MovieClip = new MovieClip();
    var mySprite:Sprite = new Sprite();
    myClip.addChild(mySprite);
    Now, this is important:
    you can
    trace(myClip.x) - because is x a documented property of MovieClip class
    BUT
    you cannot
    trace(myClip.mySprite) because although mySprite is a child of myClip, IT IS NOT A PROPERTY of myClip as it is not a property of MovieClip class.
    In other words, display list of a DisplayObjectContainer is sort of independent property/feature that doesn't fall into conventional realm of class capabilties. This special feature is addressed and children are manipulated in a special, peculiar to Flash manner only.
    Using pot analogy, display list is a space where you can put DisplayObjects. Objects that are put into this space do not belong to the instnace but just temporarily occupy it.
    Here is a little game (let's name it "move vegies between pots") that may help you to get feel of parent/child relationships. Click on vegies and observe how they behave relative to their parents:
    import flash.display.Graphics;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    var apple:MovieClip = vegie("apple");
    var beet:MovieClip = vegie("beet");
    var onion:MovieClip = vegie("onion");
    var pear:MovieClip = vegie("pear");
    var bigPot:Sprite = makePot(250, 250);
    var mediumPot:Sprite = makePot(200, 200);
    var smallPot:Sprite = makePot(150, 150);
    addChild(bigPot);
    addChild(mediumPot);
    addChild(smallPot);
    bigPot.x = 20;
    bigPot.y = 20;
    mediumPot.x = bigPot.x + bigPot.width + 50;
    mediumPot.y = bigPot.y + bigPot.height - mediumPot.height;
    smallPot.x = mediumPot.x + mediumPot.width + 50;
    smallPot.y = bigPot.y + bigPot.height - smallPot.height;
    var vegies:Array = [apple, beet, onion, pear];
    var pots:Array = [bigPot, mediumPot, smallPot];
    putVegies();
    * Places vegies into big pot
    function putVegies():void {
         for each(var veg:MovieClip in  vegies) {
              bigPot.addChild(veg);
              // bigPot has index 0 in pots Array
              veg.parentIndex = 0;
              veg.mouseChildren = false;
              veg.buttonMode = veg.useHandCursor = true;
              veg.x = veg.width + Math.random() * (bigPot.width - veg.width * 3);
              veg.y = veg.height + Math.random() * (bigPot.height - veg.height * 3);
              veg.addEventListener(MouseEvent.CLICK, onClick);
    * listener to clicking on vegies
    * chooses a new random parent
    * @param     e
    function onClick(e:MouseEvent):void {
         var target:MovieClip = e.currentTarget as MovieClip;
         // new parent random index
         var parentIndex:int = Math.round(Math.random() * (pots.length - 1));
         var newParent:Sprite = pots[parentIndex];
         newParent.addChild(target);
         target.x = target.width + Math.random() * (newParent.width - target.width * 3);
         target.y = target.height + Math.random() * (newParent.height - target.height * 3);
    * Makes vegie
    * @param     text - vegie label
    * @return
    function vegie(text:String):MovieClip {
         var label:TextField = new TextField();
         label.autoSize = "left";
         label.text = text;
         label.x = - label.width / 2;
         label.y = - label.height / 2;
         var s:MovieClip = new MovieClip();
         var g:Graphics = s.graphics;
         g.beginFill(0xffffff * Math.random());
         g.drawCircle(0, 0, (label.width / 2) + 5);
         g.endFill();
         s.addChild(label);
         return s;
    * Draws pot outline
    * @param     w
    * @param     h
    * @return
    function makePot(w:Number, h:Number):Sprite {
         var edge:Number = 10;
         var s:Sprite = new Sprite();
         var g:Graphics = s.graphics;
         g.lineStyle(2, 0x000000);
         g.moveTo(0, 0);
         g.lineTo(w, 0);
         g.lineTo(w - edge, edge);
         g.lineTo(w - edge, h - edge);
         g.curveTo(w - edge, h, w - edge * 2, h);
         g.lineTo(edge * 2, h);
         g.curveTo(edge, h, edge, h - edge );
         g.lineTo(edge, edge);
         g.lineTo(0, 0);
         return s;

  • Determine index of array within event structure

    I am doing some testing with dynamically registered events.  For these testing purposes, I have 2 separate arrays of boolean references hooked up to the dynamic input terminal.  The event structure is executing like I expect it to.  The only problem is that I want to know the index within the array for the event that triggered the value change event.  I would have thought I could use the CtlRef node to determine this, but instead it returns a reference to the actual boolean control that triggered the event.
    I could write a subroutine that searches for the label of the boolean that triggered the event within the arrays, but that is not efficient or good practice.
    So for instance, if I click on Boolean 2, I'd want the event structure to know it was array #1, index 1.  If I click on Boolean 6, I'd want the event structure to know it was array #2, index 2.
    Is this possible?

    That is a very good idea.  The caption is good to use for the label you show to the user.  You can change it to show different things, even programmatically, such as if you need to make your application more international and have it display controls in different languages to different users.  It lets you use longer or more descriptive names, without having those long names eat up block diagram space.
    Another thing I've done is take the control reference and search for it among the array of control ireference.  Search 1-D array will give you the index of the control within the array.  Then I can use that index and apply it to a different array and index out a value from that.  It could be a name, or perhaps a numeric value I use as a multiplier or something like that.  Just make sure there is a one to one correlation between the references in the array and whatever is the other array you are getting additional data from.  For what you have drawn now, it could be a little bit complicated because you actually have two different 1-D arrays of references.  But if you concatenated those arrays together, you'd have a single 1-D array you can search.

  • Event Handling in labview with arrays as event data

    Hey folks,
    I have a Labview Application which uses a dll to read Ethernet data. The setup is such that, when the dll has fresh data it sends out an event to the Labview Application so that the fresh data can be displayed.
    However i have only managed to get this event based mechanism to send out a single structure at a time. Hence if there are 10 fresh data values, i need to send out 10 events (each event structure contains the parameter name, parameter value, unit and time stamp). It would be more efficient to send out an array of structures in a sigle shot.
    I have tried this but Labview keeps crashing saying that an error was encountered and Labview needs to close along with an access violation message. I did a lot of online searching and found some LV code for event handling but not come accross any implementation which uses arrays as evend data. Is this supoorted? And if so is there any example vi that can be shared so that i get some knowledge about this.
    Many Thanks in adavance,
    Abel. 

    I also gave a try by using a variant as the event data type instead of the cluster which contains the array of floats. I converted the cluster into a variant and used that to create the user event reference. Followed the same logic while decoding the dats.
    But still the crash.... Here is the windbg output...
    ModLoad: 07580000 075b7000 C:\Program Files\National Instruments\LabVIEW 2012\resource\lvalarms.dll
    ModLoad: 0ca90000 0cb72000 C:\Program Files\National Instruments\LabVIEW 2012\resource\mesa.dll
    ModLoad: 0c7f0000 0c7f9000 C:\Program Files\National Instruments\LabVIEW 2012\resource\lvuste.dll
    ModLoad: 35000000 3509b000 C:\Program Files\National Instruments\Shared\TDMS\tdms.dll
    ModLoad: 0c860000 0c87c000 D:\SapphireViewer\dll\SapphireClientDll.dll
    ModLoad: 0e240000 0e2c7000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCP80.dll
    ModLoad: 0e2d0000 0e36b000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCR80.dll
    (1cb0.1a34): Access violation - code c0000005 (first chance)
    First chance exceptions are reported before any exception handling.
    This exception may be expected and handled.
    eax=0e47f8b4 ebx=051f0040 ecx=051f0040 edx=061e5764 esi=22820840 edi=07b10040
    eip=03c2050c esp=0e47f5cc ebp=0e47f810 iopl=0 nv up ei pl nz na po nc
    cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\National Instruments\LabVIEW 2012\resource\tdcore_12_0.dll -
    tdcore_12_0!LvVariant:etContents+0xac:
    03c2050c 837e3100 cmp dword ptr [esi+31h],0 ds:0023:22820871=????????
    I cannot really tell whats going on. Looking for some pointers.
    Regards,
    Abel.

  • Using array as a MATLAB script input in a subVI - labview crashes

    Hello
    I am having troubles in creating a subVI that includes a matlab file which has an array as an input.
    I have created a VI, that executes a simple matlab script, having an array as an input and an array as an output. This worked fine, untill i assigned the terminals in order to use it as a subVI.
    After the terminals have been assigned, labview instantly crashes when running the file.
    I also created a VI to test the subVI, but I couldn't get it to work at all, labview always crashed...
    Does anyone know a solution to my problem? They only thing i can think of is to not use it as a subVI, but then my main file will get huge, as all the matlab code would be included in there...
    attached are both files, so that you better understand my problem. (test_... is the main file)
    any help will be greatly appreciated!
    - Jarno
    edit: I'm using labview 2013 with windows 7 and matlab 2014
    Solved!
    Go to Solution.
    Attachments:
    test_subVI_array_into_script.vi ‏8 KB
    subVI_array_into_script.vi ‏8 KB

    Hey Jarno, 
    I did some playing around with this (sorry for the delay) and another workaround we can use is adding an Always Copy to the array before passing it into the Script Node. This will allow you to continue using Double precision arrays instead of going to Singles.
    It looks like there is an issue with the array copy that is passed into the SubVI through the terminal, but we can get around it by making a new copy that the Script Node can properly work with. 
    Tim A.
    National Instruments

  • ALV Event for data input

    I have an internal table . One of the fields can take input in the ALV grid using ABAP objects.
    When the user enters a value in this field , I would like to capture the values in all the cells of all the fields that are adjaccent to this editable field.
    I think I will have to use data_changed event . The SLIS examples are a bit complex, If there is a simpler example to show how this can be done , it will be great.

    That's right, that is the event that you want to use.  See example programs which start with BCALV_EDIT*
    Regards,
    Rich Heilman

  • Dynpro: event handling on input field in custom control?

    Hello,
    can I  put an input/output Field in Custom Control?
    I have seen this (DD_ADD_FORM_INPUT) but i dont need a Form.
    What i want to do is: Double Click Event handling on the input field in the custom control.
    Thank you?

    Hi Mohi,
    OK, you could reduce DD_ADD_FORM_INPUT to what you really need - but the DD elements (rarely if ever used in standard SAP) do not have a double-click event. Must stick to ENTER.
    An alternative is a text_edit or an editable grid_control with one line one field.
    The problem is: There is no way to put any selection-screen element on a control.
    I's go for the grid approach as you certainly may have some more fields of interest.
    Regards,
    Clemens.

  • Differences between Robot class generated events and real input events

    Hello everyone!
    I'm having a problem with the translation of the description of the awt.Robot class.
    - "This class is used to generate native system input events" -
    Does this mean there is no difference between real input events and generated events from the Robot class? Difference in reference to that the generated events can't be recognized as generated events by the os or programs.
    Thanks in advance.
    Chris B.

    The Robot class will use an interface provided by the operating system to inject events. Those are very close to 'real' input events, but not quite there. There are, for instance, several games out there which have a protection mechanism against Robot's events to prevent scripting/botting. However, any application that is not paying special attention to the event's source will assume that the input events generated by Robot are actually coming from the user, so you can 'control' any application with the exception of the beforementioned games.

  • Producer Consumer & User Events with user input windows

    Hello All,
    I am planning to build Labview code using the Producer Consumer & User events pattern, the application needs multiple user input windows for things like personal data, feature selection etc, there could be around 15 or 20 distincts screen/panels required.
    The main question from me is... Is there a best practive approach to navigating/loading from one window to another etc, and also providing a way to to retrun to the previous window.
    Also I may need need to be running some slow logging and control hardware in the background while navigating some of the screens, this seems like the producer consumer vi will be running in the background while the user input causes a load/display window event.
    A simple Producer Consumer multiple winjdoow example would be very welcome. Thanks.
    Regards Chris

    I will second Mike's suggestion to use a central VI with subpanel(s).  It is usually less confusing than multiple windows.  Typically, the selection/navigation mechanism is on the left of the main panel, global info (like help) on the right, and the subpanel(s) in the center.
    The advantage of subpanels/subVIs is that you can launch your subVIs and keep them active in the background, even though they are not being used.  This means they will keep their state information and load into the subpanel almost instantaneously the next time you need them.  For a short tutorial on subpanels, check out this link.  Scroll down to the fourth reply for working code.  The original code posted is broken.
    Communication between your VIs or loops is typically done with either queues or event structures.  State information in each should be shift registers in the respective VIs.  If you have the time, I would highly recommend you learn how to use LabVIEW classes.  The command pattern is tailor made for this kind of application.
    Finally, avoid global data if you can.  Global data is anything that you can get to from anywhere (globals, functional globals, etc.).  Use of these can speed your development, but can also lead to sloppy design which will cause you major problems later.  If you really need globally available data, use a data value reference.  It is unnamed and requires a reference, which tends to enforce better programming practice.  Yes, there are instances where you truly need globally available, named data, but they are fairly rare.  You should only use them if you are experienced and really know what you are doing.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Send a press key event without Batch Input?

    Hi.
    I need send a auto press key event (by example: press F8), by code.
    When I put a instruction in the report, the report simulate the key pressed.
    Exist some FM to do it? Is it posible?
    Thanks!

    Hi Marcos,
    you can use the method I recommended in an additional timer object method .
    Please adapt the below sample program I used to display the current time with auto update:
    *& Report  ZZCLOCK
    *& may be used to keep connection
    REPORT  zzclock.
    *       CLASS lcl_gui_timer DEFINITION
    class lcl_gui_timer definition inheriting from cl_gui_control.
      PUBLIC SECTION.
        CONSTANTS:  eventid_finished TYPE i VALUE 1 .
        CLASS-DATA: interval TYPE i VALUE '0'.
        EVENTS:     finished .
        METHODS:
                 cancel
                      EXCEPTIONS
                         error,
                 constructor
                     IMPORTING
                         lifetime TYPE i OPTIONAL
                         value(shellstyle) TYPE i OPTIONAL
                         value(parent) TYPE REF TO cl_gui_container OPTIONAL
                     EXCEPTIONS
                         error,
                 run
                     EXCEPTIONS
                         error,
                 dispatch REDEFINITION.
    ENDCLASS.                    "lcl_gui_timer DEFINITION
    *       CLASS lcl_event_handler DEFINITION
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
                    on_finished
                           FOR EVENT finished OF lcl_gui_timer.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    DATA: gui_timer TYPE REF TO lcl_gui_timer.
    DATA: event_handler TYPE REF TO lcl_event_handler.
    DATA: timeout_interval TYPE i VALUE '9'.
    PARAMETERS:
                p_datum TYPE sy-datum,
                p_uzeit TYPE sy-uzeit.
    AT SELECTION-SCREEN OUTPUT.
    * set to time rounded to 10 seconds
      p_datum = sy-datum.
      p_uzeit = sy-uzeit.
      CREATE OBJECT gui_timer.
      SET HANDLER event_handler->on_finished FOR gui_timer.
      gui_timer->interval = timeout_interval.
      CALL METHOD gui_timer->run.
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD on_finished.
    * Start Timer again
        gui_timer->interval = timeout_interval.
        CALL METHOD gui_timer->run.
    * cause PAI
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'REFR'.
      ENDMETHOD.                    "on_finished
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    *       CLASS lcl_gui_timer IMPLEMENTATION
    CLASS lcl_gui_timer IMPLEMENTATION.
      METHOD constructor.
        TYPE-POOLS: sfes.
        DATA clsid(80).
        DATA event_tab TYPE cntl_simple_events.
        DATA event_tab_line TYPE cntl_simple_event.
        IF clsid IS INITIAL.
          DATA: return,
                guitype TYPE i.
          guitype = 0.
          CALL FUNCTION 'GUI_HAS_OBJECTS'
            EXPORTING
              object_model = sfes_obj_activex
            IMPORTING
              return       = return
            EXCEPTIONS
              OTHERS       = 1.
          IF sy-subrc NE 0.
            RAISE error.
          ENDIF.
          IF return = 'X'.
            guitype = 1.
          ENDIF.
          IF guitype = 0.
            CALL FUNCTION 'GUI_HAS_OBJECTS'
              EXPORTING
                object_model = sfes_obj_javabeans
              IMPORTING
                return       = return
              EXCEPTIONS
                OTHERS       = 1.
            IF sy-subrc NE 0.
              RAISE error.
            ENDIF.
            IF return = 'X'.
              guitype = 2.
            ENDIF.
          ENDIF.
          CASE guitype.
            WHEN 1.
              clsid = 'Sapgui.InfoCtrl.1'.
            WHEN 2.
              clsid = 'com.sap.components.controls.sapImage.SapImage'.
          ENDCASE.
        ENDIF.
        CALL METHOD super->constructor
          EXPORTING
            clsid      = clsid
            shellstyle = 0
            parent     = cl_gui_container=>default_screen
            autoalign  = space
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
        CALL METHOD cl_gui_cfw=>subscribe
          EXPORTING
            shellid = h_control-shellid
            ref     = me
          EXCEPTIONS
            OTHERS  = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
    * Register the events
        event_tab_line-eventid = lcl_gui_timer=>eventid_finished.
        APPEND event_tab_line TO event_tab.
        CALL METHOD set_registered_events
          EXPORTING
            events = event_tab.
      ENDMETHOD.                    "constructor
      METHOD cancel.
        CALL METHOD call_method
          EXPORTING
            method     = 'SetTimer'
            p_count    = 1
            p1         = -1
            queue_only = 'X'
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
      ENDMETHOD.                    "cancel
      METHOD run.
        CALL METHOD call_method
          EXPORTING
            method     = 'SetTimer'
            p_count    = 1
            p1         = interval
            queue_only = 'X'
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
      ENDMETHOD.                    "run
      METHOD dispatch .
        CASE eventid.
          WHEN eventid_finished.
            RAISE EVENT finished.
        ENDCASE.
      ENDMETHOD.                    "dispatch
    ENDCLASS.                    "lcl_gui_timer IMPLEMENTATION
    Hope that's what you are looking for. I got the idea from a project where they used it to auto refresh an ALV grid...
    You may also search this forum for keywords timer or autorefresh. It has been discussed here earlier.
    Regards,
    Clemens

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • Input Field in table - I need a OnClick Event

    Hello everybody,
    I have the following problem:
    I have created a table in my view which is filled at runtime. The table has 3 different rows and every row has TableSingleMarkableCells, these cells further have a input field as their celleditor.
    I now want to know which cell the user is editing. I have a AttributePointer through which I know that at the time the user presses the enter key. But I need to know whether the focus has changed. Because there is the possibility that the user switches between the differnt cells with the arrow key or the tab key. But the AttributePointer only gives me the first selected cell.
    Have anybody a suggestion to solve this problem -  it seemed to be something like definingb a OnClick event for a input field (additionaly to the default OnEnter event...)
    Best regards,
    Sebastian

    Hi,
    You can find out at which row the editing goes, by using
    onLeadSelect action of TableUIElement.
    in onLeadSelect action you can find row number using this statement
    int rownumber= wdContext.node<TableNode>().getLeadSelection();
    Regards
    LakshmiNarayana

  • Adf input complex arrays error

    I have web service that contains array of complex type as input. I want to invoke web service from jspx page using adf. I have added web service data control and followed this guide [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/54-ws-complex-input-type-169197.pdf] to add input form into jspx page, But I have table for array input. In PageDef.xml page, I have updated NDValue according to the pdf tutorial, now it is
    <NamedData NDName="refSys"
    NDValue="#{bindings.theIterator.currentRow.dataProvider}"
    NDType="java.lang.Object[]"/>
    But, when ever I click on submit button it gives following error:
    Cannot create an object of type:[Ljava.lang.Object; from type:java.util.HashMap
    How can I cope with this problem?
    I am using JDeveloper 11gR1.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    with respect to my previously posted thread, its hard to understand that oracle does not support complex type arrays,
    let me rephrase the question again :
    I have a complex type as the following:
    <xs:complexType name="updateRefSys">
    <xs:sequence>
    <xs:element name="id" type="xs:string" minOccurs="0"/>
    <xs:element name="refSys" type="tns:refSys" minOccurs="0"
    maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="refSys">
    <xs:sequence>
    <xs:element name="pltfrm" type="xs:string" minOccurs="0"/>
    <xs:element name="custNo" type="xs:string" minOccurs="0"/>
    <xs:element name="ExtSys" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    It contains a refsys which is a complex type which may contain zero or many elements, this complex type is an input to my web service, what I need to know is that how can i copy rows from adf table into this complex type so that I may pass this parameter to the web service.

  • Invalid input event for numeric control

    Need to catch the event when invalid input being through out, customer doesn't like the notify.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

    I haven't had a big problem with this, and I plan to continue to use numeric controls instead of making everything strings, but it does seem strange that CVI doesn't catch this.  I like the automatic range checking options, the programmable increment/decrement buttons, and the ease of use.
    You can use a quirk in CVI to catch this: if you enter an invalid number like 1.2.3 or 3...14159 or 1-2, CVI triggers EVENT_VAL_CHANGED, but leaves the original number unchanged.  So you can create a case in the callback for the numeric control for EVENT_VAL_CHANGED, and in that case check to see if the value is the same as the previous value.  If it is, assume an invalid input.  EVENT_VAL_CHANGED does not get fired if you just press Enter without changing the value.
    There are a couple of limitations or drawbacks to this approach.  It doesn't save your invalid entry, so you have to enter the whole thing again instead of just correcting your mistake.  EVENT_VAL_CHANGED also gets fired if you use Delete or Backspace, even if the number you end up with is the same as the previous.  So this approach will flag that as an invalid entry.
    See the attached example.
    Attachments:
    TestInvalidInput.zip ‏6 KB

Maybe you are looking for

  • Background Job Schedule

    Hi, I have a requirement as below, We need to schedule a JOB using JOB_OPEN FM and SUBMIT the report and JOB_CLOSE. In this process, we want to run this job on a different user name other than SY-UNAME. How to schedule a JOB with some other user name

  • Movie Playback Buttons

    Hi. I am very unexperienced with this, so please bear with me...I'm trying to create a button that can skip my flash intro anytime I press it? I chose my button. It is in a "button" layer and it is called "btn_forward". Can someone please give me a c

  • Advanced signal processing toolkit

    Hi I am using LabView 7.1 on windows xp machine. I need to do wavelet analysis using LabView. However, I am not finding the advanced signal processing toolkit in this version.  Can anyone tell me how to locate it? Can I download it from NI website? 

  • The user does not see the whole absence infiormation on his page

    Hi experts I have applied for vacation, the approval status is "pending for approval", but i will not get the rest on my page (Start date, End Date, Absence type, Absence Cateogory, Absence Status are missing). But if i type on details, the sshr show

  • Posix test suite run on solaris?

    Has anyone run the posix test suite on solaris? or OpenSolaris? http://posixtest.sourceforge.net/