Store events in the various tables / AVG function error

Hello

I have a very newbie question that I can't solve.

I want to store events in a database, well, but if I set the events on the context like this file:

< wlevs:event - type-repository >
< wlevs:event - type the type name 'Averages' = >
< wlevs:properties >
< name wlevs:property = "average_Generator1_ActivePower" type = "float" / >
< name wlevs:property = "sum_Generator2_ActivePower" type = "int" / >
< name wlevs:property = "max_Substation_Active_Power" type = "int" / >
< name wlevs:property = "number_events" type = "int" / >
< / wlevs:properties >
< / wlevs:event - type >
< wlevs:event - type the type name = "WindEvent" >
< wlevs:properties >
< name wlevs:property = "generator1_ActivePower" type = "int" / >
< name wlevs:property = "generator2_ActivePower" type = "int" / >
< name wlevs:property = "substation_Active_Power" type = "int" / >
< / wlevs:properties >
< / wlevs:event - type >
< / wlevs:event - type-repository >

They will be stored at the same table, TupleValues table.

I'm trying to work around this situation by defining one of the events as a class, and in this case the CEP Oracle create another table to store the event. But with this Setup, I have an error on the processor node, more exactly, in the avg function that use a property of the created class. Below it is the context, the class of java and the query file in the processor

Class #Java

public class WindEvent {}

private Generator1_ActivePower entire;
private Generator1_AverageExpectedEnergy entire;
private Generator2_ActivePower entire;
private Generator2_AverageExpectedEnergy entire;
private Substation_Active_Power entire;
private Substation_AverageExpectedEnergy entire;


file #context

< wlevs:event - type-repository >
< wlevs:event - type the type name = "WindEvent" >
< wlevs: class > oracle.cep.demo.events.WindEvent < / wlevs: class >
< / wlevs:event - type >
< / wlevs:event - type-repository >

< wlevs: adapt id = "adapter" provider = "csvgen" >
< wlevs:listener ref = 'channel' / >
< wlevs:instance - name of the property = 'port' value = "9001" / >
< wlevs:instance - name of the property = "eventTypeName" value = "WindEvent" / >
< wlevs:instance - name of the property = "eventPropertyNames."
value = "generator1_ActivePower, generator1_AverageExpectedEnergy, generator2_ActivePower, generator2_AverageExpectedEnergy, substation_Active_Power, substation_AverageExpectedEnergy" / >

< / wlevs: adjust >

< wlevs: channel id = 'string' - type event = "WindEvent" >
< wlevs:listener ref = "processor" / >
< / wlevs: channel >

< wlevs:processor id = "processor" >
< / wlevs:processor >


#query

< processor >
processor < name > < / name >
< rules >
< request id = "ExampleQuery" >
<! [CDATA [select avg (substation_Active_Power) got max_Substation_Active_Power, count (*) as number_events of the channel [line 60]]] >
< / query >
< / rules >
< / processor >

If someone could help him in both questions, I'll be very grateful

Keep your definition of class as -

public class WindEvent {}

private Generator1_ActivePower entire;
private Generator1_AverageExpectedEnergy entire;
private Generator2_ActivePower entire;
private Generator2_AverageExpectedEnergy entire;
private Substation_Active_Power entire;
private Substation_AverageExpectedEnergy entire;

}

In other words, use integer instead of int.

Then, change the query for-

Select avg (* substation_Active_Power.intValue () *) as avg_Substation_Active_Power, count (*) as number_events of the channel [line 60]

Tags: Fusion Middleware

Similar Questions

  • Need some tips to merge the two table-manipulation functions

    Hi guys!

    Thanks to Johnsold, Helmut O'Brian and Jcarmody, who helped me through a string function complicated (for me, the noob of LV), I got away with my project and I'm very close to its end.

    As I've described it here I wanted to explore an array of words combined with-, i.e. C1 - C10. Help, when I arrived, I was able to do. I also learned a few things and was able to do the following:

    Original array: new table:

    R1                                                       R1

    R2                                                       R2

    C1-C3                                                  C1

    K1                                                       C2

    C3

    K1

    I have this:

    Original array: new table:

    R1                                                       R1

    R2,R4,R7                                             R2

    C1                                                       R4

    K1                                                       R7

    C1

    K1

    I was also able to combine these two functions

    Now, back to my problem.

    Until now, it was just a 1 d array that I worked with. In fact, it's a 2D array, I read a. CSV file:

    As you can see there are a few places where things is combined with either - or by commas. I need to widen the first column as described above and as resolved in the thread I mentioned. Fact! No problem. I extracted the first column in table 1 d. Then expand it. Now, I need to replace in the original array and also expand all.

    It should then look like this:

    Then I only need to copy the position of the R6 line and paste it in the empty fields:

    I enclose below two screws. Start by opening the main.vi. Then copy.vi. I tried to describe the problem here too. You can see what I've accomplished and what is missing.

    Tasks:

    1. replace the column expanded in the original array and expand all.

    2 copy the needed lines.

    In the main.vi, I do the 1 d expansion, but I have the problem with the expansion of table 2D. In copy.vi, I managed to copy the lines. If this part is done.

    Basically, I need some advice on enlargement that I do and how do I get the 2D table also expanded. Because I have not much experience, I feel more comfortable working with 1 d arrays. But I can't seem to get any further with this 1 d-> expansion 2D.

    I also really can't seem to find a smart way to implement my function of copy-line-in the main.vi.

    P.S the joint screws are manufactured in LV2010.

    Fortunately, I can attend some courses of basic home OR here in Norway, but so far, I'm still learning and I think that sometimes, I try to do things that are way out of my League

    I don't know what I did but it works now

    Thanks for the help, same!

    You are even welcome!

    Have attached the file if anyone wants to see what I did.

  • On LOV ValueChange event inside the af: table to get the data of the selected row

    Hello

    I LOV on one of the columns inside the af | table. I use createwithparams to create a new row in the table. Then I use the LOV to get the value of the column LOV. Then I need to set some additional attributes on the new line in the value change listener. I get null for all attributes with the following code in the valuechangelistener. If I select a new value by using the LOV, I get the previous values of the attributes. Y at - it an easy way to get all the attribute values for the line.

    I use a unique selection on the table. valueChangeEvent.getNewValue gives the value of the LOV column only.


    {} public void manualClassNumValueChangeListener (ValueChangeEvent valueChangeEvent)
    Add the code in the event here...
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) manualClassBusResults.getRowData ();
    Line = rowData.getCurrentRow ();
    System.out.println("ManualClassNum:"+row.) GetAttribute ("ManualClassNum"));
    System.out.println("CodeSubType:"+row.) GetAttribute ("CodeSubType"));
    System.out.println("seqnum:"+row.) GetAttribute ("seqnum"));
    Iterator DCIteratorBinding = ADFUtils.findIterator ("RenewalManualClassBusIterator");
    line = iterator.getViewObject () .getCurrentRow ();
    System.out.println("ManualClassNum:"+row.) GetAttribute ("ManualClassNum"));
    System.out.println("CodeSubType:"+row.) GetAttribute ("CodeSubType"));
    System.out.println("seqnum:"+row.) GetAttribute ("seqnum"));
    }


    Thank you and best regards,

    S R Prasad

    {} public void manualClassNumValueChangeListener (ValueChangeEvent valueChangeEvent)
    Add the code in the event here...
    ADD THIS LINE OF CODE AND SEE IF IT HELPS
    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) manualClassBusResults.getRowData ();
    Line = rowData.getCurrentRow ();
    System.out.println("ManualClassNum:"+row.) GetAttribute ("ManualClassNum"));
    System.out.println("CodeSubType:"+row.) GetAttribute ("CodeSubType"));
    System.out.println("seqnum:"+row.) GetAttribute ("seqnum"));
    Iterator DCIteratorBinding = ADFUtils.findIterator ("RenewalManualClassBusIterator");
    line = iterator.getViewObject () .getCurrentRow ();
    System.out.println("ManualClassNum:"+row.) GetAttribute ("ManualClassNum"));
    System.out.println("CodeSubType:"+row.) GetAttribute ("CodeSubType"));
    System.out.println("seqnum:"+row.) GetAttribute ("seqnum"));
    }

    Thank you
    Nini

  • Merger of the various tables in the form of a long table

    Hi there, I have a problem with the merger of the table.

    Due to the nature of my VI, I'll have to merged paintings together to form a single table.

    I designed a VI using the loop and switching of cases but the current table keep to overwrite the previous table. I had to activate auto-indexation on the loop, but it couldn't work.

    I am attaching two VI for illustration more far.

    Try to merge the tables togther.vi is the program that I'm trying.

    Desired output program.vi is the real thing, I want to get to the exit.

    Thanks for all the help.

    Keith Tan

    Hi Keith,

    It's the magic of the shift registers

    You should always note what LV version you are using!

  • The Oracle table object type - error

    Hello

    I created an oracle object as

    [CREATE or REPLACE TYPE t_test_obj () IS OBJECT
    TestId INTEGER,
    testdesc VARCHAR2 (64)
    );]

    Then created the type from above table

    [create or replace type t_table in table of the t_test_obj;]

    I want to create the table containing the type above as below

    create the table t_tab_test (test1 t_table); but I got the error as
    ERROR on line 1:
    ORA-22913: must specify the name of the table for the nested table column or attribute

    ---
    Requirement: As my function returns this object of type table and I want to insert these values in a table where I want this. All other pointers are also useful.


    Help, please.

    Kind regards
    Kapil

    and with a function

    create function f_test
    return t_table
    as
    begin
       return t_table (t_test_obj (1, 'first'), t_Test_obj (2, 'seconde'));
    end;
    /
    
    insert into t_tab_test values (10, f_test);
    
  • Disadvantages of the default tablespace using to store data from the partitioned table?

    Can someone tell me, are there disadvantages, performance problems using default storage in oracle?

    I not create any tablespace during the creation of the database, but all the data partitioned in a tablespace named 'USERS' default... I will continue using the same tablespce...? I'm storing the data in the table where the growth of the table will be great... it can contain millions of records...? It will produce no degradation of performance? Suggest me on this...

    Different storage areas for administration and easier maintenance. In some cases for performance reasons so different disks are representative to the database (fast and not so fast, different levels of raid...)
    For example if you have several diagrams of database for different applications, you may want to separate schema objects to different storage spaces.
    Or, for example, you want to keep in database read-write tablespaces and just only read. Read-write tablespaces with the data files will be on very fast disks, read only the cheaper and perhaps more slowly (not required). Again separate tablespaces makes this very easy thing to do.
    Or you would like to keep separate indexes from tables and keep them in a different tablespace on the different mountpoint (disc). In this case probably better is to use ASM, but it's more than a reason to separate.

    And in your case-, it may be easier to manage if you create a new storage space for these new objects.
    For example:
    1 storage space for small tables
    1 storage space for small index
    1 storage space for large tables
    1 storage space for large index
    and so on. All depends on your particular architecture and database data growth and what you do with these data after a year, two years, three...

  • The FG table storage: memory errors

    Hello everyone, this is my first post here, I hope it's in the right place :-)

    I was making mistakes of memory.  I am running LV 32-bit on a system with 24 GB of memory. I understand that LV may use only 2 GB of memory, even if I used the utility followed memory to trace a problem at one of my Subvi, in which I use a functional global to store arrays of data.

    My LV program periodically takes in an array of new data.  Whenever a new data table is received, I divided into its constituent parts and store these components in another series of paintings.  I use the USR to store the functional arrays as globals, since I heard that this tactic will improve performance.  However, using the utility followed memory, I find that the Subvi takes much more memory than indicated the amount of data stored.  So, I guess the Subvi has made multiple copies of data than expected.

    Could you please take a look at this VI someone and tell me what "rule" I am breaking what problems?  It is not too big, I think we should that the eyes of an expert.  I'm still a little new to LV :-)

    Thank you!

    Brian

    How much data are you trying to store in this functional overall?  How often is it updated, and how many times it is called between resets?  If you know the maximum size of the data you need to store, it may be better to have the case reset allocate arrays of this size (instead of empty tables) and then maintain an index indicating both the current size of the table and the position to insert the next piece of data.  It will be more effective than to build the table.

    Now, even if you have enough memory to store all the data, it can be too fragmented to be usable.  Whenever you use array of generation in the loop, LabVIEW will allocate a new array of the current size of + 1 and then copy data to it, after which it can make memory of the former small table available again.  The next time the loop for this once again, setting up small blocks of memory available which may not be contiguous and are too small for reuse when the berries then need to grow.  Pre-allocating berries to the maximum size and then replace the items one at a time (as new data arrives) will solve this problem.  In addition, it will be faster, because it takes less time to replace one does it to copy all of a table to a new location.

    In addition, there is no need of the loop for use replace table subset.  Delete the register shift and let the autoindexing to build the output array.  You actually produce an extra copy useless trying to reuse the table, instead of save memory (because there is a copy in the shift register and the other being used for autoindexing).  For loops are effective for the construction of the tables because their maximum size is known before the loop begins.  In addition, the table to initialize is unnecessary - you are initializing the values that will be immediately be replaced - and you don't even have the function of the size of the array.  I'd do it as shown below:

  • Introduction on the spatial Table had an error

    I am beginner in this forum, I would like to ask questions about SDO_ORDINATE_ARRAY.
    When I saw the discription of the SDO_ORDINATE_ARRAY on sqlPlus, it said that sdo_ordinate_array 1048576 array of numbers.

    But when I tried to insert my card details, it can receive only 499 coordinates (998 vertex) and it seems to be "ORA-00939: too many arguments to function ' when I inserted the 500th coordinates.

    When I tried to insert the coordinates (549 365) error message...
    but it works fine when I inserted prepares (548 365)


    Here is my code:

    SELECT * from user_sdo_geom_metadata;
    INSERT INTO user_sdo_geom_metadata
    (TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID)
    VALUES)
    "JawaTimur,"
    "contact information."
    SDO_DIM_ARRAY (-20 X 20 grid)
    SDO_DIM_ELEMENT ('X', 0, 2328, 30).
    SDO_DIM_ELEMENT ('Y', 0, 1628, 30)
    ),
    NULL - SRID VALUE
    );

    Buat - table untuk peta jawa timur
    CREATE TABLE JawaTimur)
    NamaPulau VARCHAR2 (20) PRIMARY KEY,.
    coordinates SDO_GEOMETRY);

    Buat - dbase index space di
    CREATE the INDEX JawaTimur_idx
    ON JAWATIMUR (ordinates)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX;

    INSERT INTO JawaTimur VALUES)
    "Jawa Timur."
    SDO_GEOMETRY)
    2003 - two-dimensional polygon
    NULL,
    NULL,
    SDO_ELEM_INFO_ARRAY (1,1003,1),-a polygon (ring outside polygon)
    SDO_ORDINATE_ARRAY (1 416 1 414, 3 414, 3 413, 23 413, 23 412, 25 412,
    26 411 28 411, 29 410, 31 410, 32 409, 36 409, 37 408, 49 408, 50 407.
    53 407, 53 406, 54 406, 54 405, 55 405, 55 404, 56 404, 56 402, 57 402.
    57 401, 58 401, 58 399, 59 399, 59 397, 60 397, 60 396, 61 396, 61 394.
    62 394, 62 393, 63 393, 63 392, 64 392, 64 391, 78 391, 78 390, 80 390.
    80 389 81 389, 81 387, 82 387, 82 386, 83 386, 83 385, 84 385, 84 383.
    85 383, 85 382, 86 382, 86 380, 88 380, 89 379, 91 379, 92 380, 94 380.
    94 381, 96 381, 96 382, 97 382, 98 383, 101 383, 102 384, 106 384, 107 385.
    111 385, 112 384, 132 384, 133 385, 135 385, 135 386, 136 386, 136 387, 137 388.
    138 388, 138 390, 139 390, 139 392, 140 393, 140 395, 141 395, 141 398, 142 398.
    142 399 143 399, 143 401, 144 401, 144 402, 147 402, 147 401, 148 401, 148 399.
    149 399, 149 397, 150 396, 150 392, 151 392, 151 391, 155 391, 156 390, 158 390.
    158 389, 160 389, 160 388, 161 388, 161 387, 163 387, 163 385, 164 385, 164 384.
    165 384, 165 383, 166 382, 166 381, 167 380, 167 376, 168 376, 168 375, 170 375.
    170 374, 172 374, 172 373, 174 373, 174 372, 175 372, 175 371, 177 371, 177 370.
    178 370, 178 369, 179 369, 179 367, 180 367, 180 366, 182 366, 182 365, 184 365.
    185 364, 198 364, 199 365, 202 365, 203 366, 205 366, 205 367, 207 367, 207 368.
    209 368, 209 369, 211 369, 211 370, 213 371, 215 371, 216 372, 218 372, 219 373.
    223 373, 224 374, 229 374, 230 375, 231 375, 232 374, 236 374, 237 373, 240 373.
    241 372, 248 372, 249 373, 251 373, 251 374, 255 374, 256 372, 256 370, 257 369.
    257 368, 258 368, 259 367, 267 367, 268 368, 276 368, 277 367, 278 367, 278 366.
    279 366, 279 365, 280 365, 280 364, 282 364, 282 363, 286 363, 286 364, 288 364.
    288 365, 289 365, 289 366, 290 366, 290 367, 291 367, 291 368, 292 368, 292 369.
    293 369, 293 370, 294 370, 294 371, 297 371, 297 370, 298 370, 298 369, 299 369.
    299 368 300 368, 300 367, 301 367, 301 366, 305 366, 305 367, 306 367, 306 369.
    307 369, 307 370, 308 370, 308 371, 312 371, 312 370, 313 370, 313 369, 314 369.
    314 367, 315 367, 315 366, 316 366, 316 365, 317 365, 317 364, 318 364, 318 363.
    321 363, 322 362, 327 362, 328 363, 333 363, 334 364, 336 364, 337 365, 339 365.
    339 366, 341 366, 341 367, 343 367, 343 368, 349 368, 349 367, 351 367, 351 366.
    352 366, 352 364, 353 364, 353 362, 354 362, 354 360, 355 359, 355 356, 356 355.
    356 353, 357 353, 357 352, 358 352, 358 350, 359 350, 359 349, 360 349, 360 348.
    361 348 361 347, 362 347, 362 346, 363 346, 363 345, 365 345, 365 344, 366 344.
    366 343, 367 343, 368 342, 369 342, 370 343, 370 344, 371 344, 371 345, 373 345.
    373 346, 373 346, 374 347, 376 347, 376 348, 378 348, 379 349, 386 349, 387 348.
    389 348, 389 347, 391 347, 391 346, 392 346, 392 345, 394 345, 394 343, 395 343.
    395 342, 396 342, 396 341, 397 340, 397 339, 398 338, 398 333, 402 333, 403 334.
    405 334, 405 335, 407 335, 408 336, 410 336, 410 337, 413 337, 413 338, 414 338.
    415 339 417 339, 417 340, 419 340, 419 341, 421 341, 421 342, 422 342, 423 343.
    425 343, 425 344, 426 344, 426 346, 427 346, 427 347, 428 347, 428 349, 430 349.
    430 350, 431 350, 431 351, 433 351, 433 352, 435 352, 436 353, 443 353, 444 352.
    446 352 446 351, 448 351, 448 350, 449 350, 449 349, 451 349, 451 347, 452 347.
    452 346, 453 346, 453 344, 454 344, 454 342, 455 341, 455 333, 461 333, 461 330.
    462 329, 462 326, 463 326, 463 324, 464 324, 464 323, 465 323, 465 322, 466 322.
    466 321, 468 321, 468 320, 470 320, 470 319, 475 319, 476 320, 481 320, 482 319.
    487 319 488 318, 494 318, 495 319, 500 319, 501 320, 506 320, 507 319, 512 319.
    513 318, 519 318, 519 319, 520 319, 520 321, 519 321, 519 322, 518 322, 518 323.
    516 323, 516 324, 515 324, 515 325, 514 325, 514 326, 512 326, 512 327, 511 327.
    511 328 510 328, 510 330, 509 330, 509 335, 510 335, 511 336, 513 336, 513 337.
    515 337, 515 339, 516 339, 516 341, 517 341, 517 350, 518 350, 518 351, 519 351.
    519 352, 520 352, 520 353, 525 353, 525 351, 526 351, 526 350, 527 350, 527 348.
    528 348, 528 347, 529 347, 529 344, 530 344, 530 341, 531 340, 531 327, 539 327.
    539 328, 541 328, 541 329, 542 329, 542 330, 543 330, 543 331, 544 331, 554 332.
    545 332, 545 334, 547 334, 547 335, 549 335, 549 336, 551 336, 552 337, 554 337.
    554 338 556 338, 556 341, 555 341, 555 343, 554 343, 554 344, 552 344, 552 345.
    551 345, 551 346, 550 346, 550 352, 551 352, 551 357, 550 357, 550 359, 549 359.
    (549 360 548 360, 548 361, 547 362, 548 363, 548 365, 549 365)
    )
    );

    Published by: user12078052 on March 14, 2010 09:37

    Gero_Gero wrote:
    I am beginner in this forum, I would like to ask questions about SDO_ORDINATE_ARRAY.
    When I saw the discription of the SDO_ORDINATE_ARRAY on sqlPlus, it said that sdo_ordinate_array 1048576 array of numbers.

    But when I tried to insert my card details, it can receive only 499 coordinates (998 vertex) and it seems to be "ORA-00939: too many arguments to function ' when I inserted the 500th coordinates.

    You hit a limitation of SQL "Insert command", not a space limitation. The Insert command is unable to manage more than 999 settings and you exceed that once you get the 500th coordinate pair. (Tried 3-d you would have hit earlier.)

    See

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14255/sdo_objload.htm

    and search for "3.2 Insert SQL to support transactional operations" to see an example of the workaround.

    (And, as Werner says you would have received this faster response by checking in the forum space. While a general problem of SQL, it is encountered more frequently in space).

  • Generation of the user interface of function error

    Hello

    just one tiny problem: on a Panel, I have a progress bar. Now, if I go to the user interface to use in the user interface editor, the UI must be saved, compiled and linked and results in some errors, see below. Not a real question that I can test all events/ToolTips in the user interface editor, but mistakes are always a little unnerving .

    Hi Wolfgang,.

    This is a bug confirmed in 2013: #424745.

    It is expected that the code for the custom control must be compiled and linked (unregistered, however). However, the link must succeed, and you should be able to interact with the custom controls everything in operation. This was the behavior in 2012. Certainly, it is not a good way to interact with a progress bar in the user interface editor. But for other custom controls (control password, for example) it makes more sense.

  • Trying to create a bootable Windows 7 x 64 Flash drive. Get the "invalid MS-DOS function" error message when you try to copy the file 'bootsect.exe.mui' of the Windows ISO on Flash drive

    The title pretty much everything said.  I have an installer the ISO of Windows 7 Professional x 64.  I am trying to create a bootable flash drive using these instructions:

    http://www.OSNews.com/story/20795/Installing_Windows_7_on_the_Aspire_One_or_Any_Other_Netbook

    I followed all the steps in the guide without problem.  Windows Explorer shows the drive is NTFS.  I can copy all other files of ISO on the FlashDrive without problem.  Only, I can't copy this file.  I tried to copy it to my hard drive rather than on the flash drive, and it still does not work.

    I tried to create a file with the same name by using Notepad to see if there was a problem with the file name.  I can copy this file on my hard drive flash drive, but I can't always copy the ISO file.

    I am running Windows 7 Home Premium x 64 edition and using a Corsair Flash Voyager 16 GB flash drive.

    Help, please!

    Download Windows 7 USB/DVD tool
    http://store.Microsoft.com/help/ISO-tool

    Create a bootable USB:
    http://www.victorchen.info/create-a-bootable-USB-memory-stick/

    Install Windows 7 from USB drive/key
    http://www.MaximumPC.com/article/HOWTOs/how_to_install_windows_7_beta_a_usb_key
    http://www.windowsvalley.com/blog/install-Windows-Vista-and-Windows-7-using-bootable-USB-storage-device/
    http://www.intowindows.com/how-to-install-Windows-7vista-from-USB-drive-detailed-100-working-Guide/
    http://TechNet.Microsoft.com/en-us/magazine/dd535816.aspx

    How to install Windows 7 from a USB drive without Windows 7 ISO DVD
    http://www.Blogsdna.com/2016/how-to-install-Windows-7-from-USB-drive-without-Windows-7-ISO-DVD.htm

    How to install Windows 7 from a Flash drive with XP or Vista:
    http://www.legitreviews.com/article/1031/2/

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • A different function is created instead of the expected (table Index instead of initialize array) Labview - a 8.5

    Hey all,.

    I have a really strange behavior here. I'm using LabView 8.5. I open a white VI and try to use the function "initialize the array.

    No matter where and how I find (using search functions, or by accessing the 7.x-> table-> table initialize function), when I drag and drop it off at my VI, what I get is "Array Index" instead!

    Even when I hover over the icon table inside the palette is initialized, with aid switched on (Ctrl + H), what I see is the help page for table of Index. It's as if somehow the index table replaced function Initialize array entirely, with the exception of the simple icon in the palette...

    I tried to restart Labview and my computer nothing works.

    Someone at - he never experience a similar problem? that means, one different function other than for being created. I have attached a screenshot.

    Thank you

    -Anne Marie

    Thanks for your replies.

    My palette is screwed a bit isn't it? Most likely because the installation I chose a bunch of older versions in favor... and I regret it now.

    Funny enough, during the search in the functions that it only brings me version 7.x of functions of table etc... but I can manually find the standard in my palette, and of course, version 8.5 standard functions seem to work...

    I need to finally do an install of cean, but for now, it's all good!

    Thank you

    Anne Marie

  • How to store events and play back them later?

    Hello

    I will store the events sent by the clicks of button and then play back them later. Reason for this is to help test. My plan is to have a selected scenarios that I can record and playback in the trials of the system. As automated functional tests.

    What I've done so far, is that I can store event objects in a table, but do not know how to "playback". I tried the dispatchEvent method and the EventDispatcher class, but without success.

    Another use for this would be to store all the events, a user made, incase if it manages to crash or otherwise put the system in an undesirable state, it would be easier to debug using the list of events and a possibility to put the system in a State even step by step.

    Joint are a few code snippets, just to make the idea more clear

    Any help on how to do this is highly appreciated.

    Thank you.

    Crazy idea: it is perhaps interesting to try to call the expedition on the object that is native to event?
    Something like event.target.dispatchEvent (event)?

  • Stats not registered in the stat table use with gather_table_stats

    During the collection of statistics with DBMS_STATS. GATHER_TABLE_STATS and passing stattab parameter partitioned table, his stats are not saved for this partition in the table user stat unless it is executed twice. Here's the statement that I'm running. If I add a new partition and try to collect statistics for it and store it in the user table stats, it is not be stored even if his dictionary stats are updated. If I run the second time, it will update the entries in the user table stat.

    Start
    DBMS_STATS.gather_table_stats ("OWNER",
    tabname = > 'table_name ',.
    partName = > "P20090824"
    estimate_percent = > 2,
    method_opt = > 'for all THE COLUMNS of SIZE AUTO. "
    stattab = > "DICTSTATTAB"
    granularity = > "ALL."
    degree = > 8,
    Cascade = > true
    );
    end;
    /

    I used similar options and it worked all the time. Only difference is I used the granularity-online 'PARTITION Maybe you give him a try.
    Also try the stat of gathering and export to stat table separately.

  • Store XML in the schema issue generated tables and XML Validation against the schema.

    Hello friends,

    I am facing a problem where to store xml in a saved schema generated from tables.

    It's my diagram

    --

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < xs: schema xmlns:ds = ' http://www.w3.org/2000/09/xmldsig# "" xmlns: XS = " " http://www.w3.org/2001/XMLSchema "xmlns =" " http://www.ABC.inf.in/test "targetNamespace =" " http://www.abc.inf.in/test" elementFormDefault = "qualified" attributeFormDefault = "unqualified" > "

    < xs: include schemaLocation = "abc.xsd" / >

    < xs: element name = "project" type = 'student' >

    < xs: annotation >

    < Intention > it is a Documentation < / intention >

    < / xs: annotation >

    < / xs: element >

    < / xs: Schema >

    -This is my xml document

    "< project versão ="2.00"xmlns ="http://www.abc.inf.in/test">."

    "< test xmlns ="http://www.abc.inf.in/test">."

    " < intest version ="2.00"Id ="testabc"xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "  >

    < ide >

    < cUF > 35 < / cUF >

    < cNF > 59386422 < / cNF >

    < natOp > This is post < / natOp >

    < indPag > 1 < / indPag >

    < mod > 55 < / mod >

    < set > 1 < / series >

    < / ide >...

    .....................

    Giving not complete because it is too long.

    1. I registered successfully of the schemas in the database

    2. then I generate the saved schema table

    2. in my java code I have validated the document XML schema compared and it's valid successfully.

    3 but when I recorded this XML file in the generated table there me gives error

    As:

    INSERT INTO XMLTABLE

    VALUES

    (XMLTYPE (bfilename('MYDIR','testabc.xml'), NLS_CHARSET_ID ('AL32UTF8')))

    Error report:

    SQL error: ORA-31061: error XDB: XML error event

    ORA-19202: an error has occurred in the processing of XML

    LSX-00333: literal '94032000' is not valid with regard to the model

    And I have to store this xml in tables of this so what I have to do?

    Thanks for your reply odie_63.

    I got this my solution for the error. My XML document is not well structured based on my registered XML schema.

    Average in My XML Document is an invalid value and which do not match my schema model so it gives this error

    SQL error: ORA-31061: error XDB: XML error event

    ORA-19202: an error has occurred in the processing of XML

    LSX-00333: literal '94032000' is not valid with regard to the model

    For the Solution, we have two ways

    1. I changed this literal value "94032000" in my xml file, then save it.

    2.

    -To delete this schema can

    -We need to change the schema for the particular element model

    like: -.

    -then to store xml in the database, it works...

    Thank you.

  • By using the impl class for functions on a table

    I'm looking for a bit of advice on best practices.

    I have an app with 35 paintings.  I need to have a button "reset comes out" on each table.

    Each resetSort method should specify the table and the specific iterator.

    I tried to not having all the functions of 35 in the bean to support (1 for each table).

    Can I bind each table has associated feature class impl and each resetSort button call a method in this class?

    I use jdev 11.1.1.6.

    Any advice would be appreciated.

    Ray

    Then your real mission is to find the table for which the use wants to put sorting by pressing a button?

    This should be doable with the bean and a function that you bind to each of the reset buttons that you use for your tables.

    If your presentation is for the tables and the button to reset sorting, you can use an actionListener to the button. In the event of action, with the knowledge of the layout, it is easy to get to the table and once you have the table that you get the iterator from the table.

    Assuming that your tables are always surrounded by a panelCollection, who owns a toolbar now your reset button

    emptyText = "#{bindings." EmployeesView.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmployeesView.rangeSize}' rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " EmployeesView.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection EmployeesView.collectionModel.makeCurrent}"="single"id ="t1">

    You can use this code actionListener

    {} public void resetSort (ActionEvent actionEvent)

    get the link container

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    DCBindingContainer dcBindings = (DCBindingContainer) links;

    UIComponent toolbar (UIComponent) = actionEvent.getSource ();

    Try to get the source of the event table

    assuming that the button is in a toolbar of a panelCollection we get using parent.parent.children

    List of children of = toolbar.getParent () .getParent () .getChildren ();

    Table richeTableau = null;

    for (UIComponent uic: children) {}

    If (uic instanceof richeTableau) {}

    table = uic (richeTableau);

    break;

    }

    }

    If (table! = null) {}

    the model in the Collection is the object that provides the

    structured data

    for the table to render

    CollectionModel tableModel = (CollectionModel) table.getValue ();

    the purpose of the ADF that implements the CollectionModel is

    JUCtrlHierBinding. It is surrounded by the CollectionModel API

    JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding) tableModel.getWrappedData ();

    Acess the ADF, which is used with iterator

    ADF table binding

    DCIteratorBinding iterBind = adfTableBinding.getDCIteratorBinding ();

    table.queueEvent (new SortEvent (table, new ArrayList()));

    CurrentRow key = null;

    Line = iterBind.getCurrentRow ();

    If (line! = null)

    currentRow = row.getKey ();

    SC SortCriteria [] = new SortCriteria [0];

    iterBind.applySortCriteria (sc); iterBind is that the table iterator use

    iterBind.executeQuery ();

    If (currentRow! = null)

    iterBind.setCurrentRowWithKey (currentRow.toStringFormat (true));

    }

    }

    This code looks for the table of the source of the action, which is the button in the toolbar, get the tabel. Once you have the table you get the iterator from the table and reset the sort. This works as long as we find the source of the action table. If you always use the same layout for tables (for example. panelCollection > table), which is a practice of good uix, you have need of a bean to reset all tables. Simply link the toolbar button actionListner to the listener in the bean.

    Timo

Maybe you are looking for