Save the data in another table

Hello, I would like someone to help me with a problem I have in my program.
What makes the program is, for each iteration, take the data in 'table iter' and recorded in "table of output." But in the second iteration instead of storing the results of the first iteration offer me '1' in the first five lines.

How can I solve this problem?

Thank you, Jaime

Hi pescajaime,

Please make the change mentioned in the attachments.

Thank you and best regards,

srikrishnaNF

Tags: NI Software

Similar Questions

  • Problem to save the data as a table

    Hello

    I'm in apex 4.2 and trying to save data through customized process. The process is something like

    BECAUSE me in 1... APEX_APPLICATION.g_f05. COUNTY

    LOOP

    insert into TEST_TABULAR(ID,SLCT,DATA,DESCRIP)

    values (TEST_TABULAR_SEQ. NEXTVAL, APEX_APPLICATION.g_f03 (i), APEX_APPLICATION.g_f04 (i), APEX_APPLICATION.g_f05 (i));

    END LOOP;

    It works fine but the problem occurs when some javascript (to activate deactivate field) is called by dynamic action.

    error report:

    ORA-01403: no data found

    ORA-06510: PL/SQL: not supported by the user-defined exception

    JavaScript is something like

    El var = this.triggeringElement.id;

    var line = el.split ("_") [1];

    If ($v (el) == "N") {}

    $x_disableItem ("f04_" + row, true);

    }

    else {}

    $x_disableItem ("f04_" + row, false);

    }

    Please take a look at here http://apex.oracle.com/pls/apex/f?p=1968:9

    user: suman

    password: suman1

    Any help will be appreciated

    Thank you

    Suman

    Create a dynamic action that triggers the event framework "before submitting the Page.

    The action type is "run the Code Javascript' with the following code:

    apex.jQuery('[name="f04"]').each(
          function(){
                $x_disableItem(this.id, false);
          }
    );
    

    Nicolette

  • update of column based on the sum of the data from another table

    I have two tables:

    Table1 (col1, col2, col3, col4, val1, status) Table2 (col1, col2, col3, col4, val2)

    For Table1 and Table2, column (col1, col2, col3, col4) are the primary key of composit.

    Table2 could have duplicated lines, that's why I want to group by (col1, col2, col3, col4) and sum (val2)

    After that, I want to update Table1.val1 with the value of sum (Table1.val2) where Table1.col1 = Table2.col1 and Table1.col2 = Table2.col2 and Table1.col3 = Table2.col3 and Table1.col4 = Table2.col4 and status = 'V '.

    I did something like this:

    UPDATE Table1 SET val1 = (

       

    WHERE Table1.col1 = t_sommevbrute.col1 and Table1.col2 = t_sommevbrute.col2 and Table1.col3 = t_sommevbrute.col3 and Table1.col4 = t_sommevbrute.col4)

    Could someone help me please? Thank you

    merge into table1 t1

    using (select col1, col2, col3, col4, sum (val2) val2

    from table2

    Group

    by col1, col2, col3, col4) t2

    on (t1.col1 = t2.col1 t1.col2 = t2.col2 and t1.col3 = t2.col3 and t1.col4 = t2.col4 and)

    When matched then

    update set t1.val1 = t2.val2;

  • Redirect data to another table using before insert trigger.

    Dear all,
    How can I redirect the data to another table in a before Insert trigger? My database is Oracle10g.
    I have a table EMP (EMP_ID, LAST_NAME, SALARY).
    I have another EMP_COPY table with the same structure. I also have a before Insert trigger on the EMP table.
    Based on a condition that I have to redirect the data in table EMP_COPY. Let's say the condition is EMP_ID = 100.
    I fire an insert on EMP table for example INSERT IN EMP(EMP_ID,LAST_NAME,SALARY) VALUES(100,'Dev',500).
    On the inside of the front Insert trigger on the EMP table, I have the code
    IF EMP_ID = 100 THEN
    INSERT INTO EMP_COPY (EMP_ID, LAST_NAME, SALARY)
    VALUES(:NEW.) EMP_ID,: NEW. LAST_NAME,: NEW. SALARY);
    COMMIT;
    ON THE OTHER
    NULL;
    END IF;
    But the problem here is that data goes to EMP table of origin also although I don't want. He should do an Insert into EMP table only if EMP_ID! = 100.

    One way has been to raise a user-defined exception inside the If statement and not handle it so that the original insert on table EMP fails but INSERT comes in the EMP_COPY table. But in this solution since the inside the trigger unhandled exception, it propagates to the calling environment. And I can't stand outside relaxation as the calling environment is a form of Oracle Apps standard that cannot be customized.

    Any kind of help will be highly appreciated that I am fighting for more than two weeks.

    Thanks in advance
    Dev

    Remove the autonomous transaction pragma... and then try again.

  • Save the data on the button and then save the data on a spreadsheet on another key.

    Hello

    I am a new user of Labview. I'm developing a Labview 7.1 program that will record data on the keys. Another button, he must stop recording, and then open a file dialog box to save the data stored on a worksheet. I read in this forum that I have run several loops in parallel but unfortunately I can't see the examples because I use an older version of Labview. I tried to do to pass the data in a table, once recording is started, and then I carry the data to write a function that spreadsheet inside an another case statement. However, once I put the writing on the spreadsheet for the case statement he cannot write. I tried to put out the statement box but it save only a single set of data. Sorry if I am not clear with my explanation. It will be greatly appreciated if someone can give me some advice on this.

    Thanks in advance for your information.

    See you soon,.

    Anson

    You want to build a table of data.
    If the Boolean value is true, you will add a data point in the table.

    If it's wrong, you do not add anything, and the loop will be re-iterate.

    In the example below, the same code appears twice.

    Half top shows the case of 'Real' and the bottom half shows the case of 'false '.

  • How to save the data in table 1 d to Excel in continuous

    Mr President.

    How to save the data in table 1 d to Excel at all times, so that all the data of the first scan must be placed first thought and all the data from the second analysis must be placed on the second Board and continue on the street...

    Sy@m...

    Hi Sy@m

    Here is a vi that might give you a few ideas to try:

  • Select the data in a table and update in another table

    Dear experts,

    create the table TB_ENCRYPT

    (

    Identification number,

    Varchar2 (200) KEY

    );

    INSERT INTO TB_ENCRYPT VALUES(1,'HJUVHDUIFBSDGVU');

    SELECT * FROM TB_ENCRYPT;

    1 HJUVHDUIFBSDGVU

    create TABLE users)

    username, NUMBER of

    password VARCHAR2 (200)

    );

    Insert users

    values (1, 123 # "")

    Insert users

    values (2, 456 #')

    Select * from users;

    1 123 #.

    # 2 456

    I want to select the data KEY for table TB_ENCRYPT column and update in the column of tables for the respective key user password

    TB_ENCRYPT table contains only a single key value. Comparing this key, I want to update the old value of the key to the new value.

    For encryption and decryption I followed the java class method.no is worried about that.

    create or replace

    PACKAGE PCK_ENC AUTHID CURRENT_USER AS

    FUNCTION DECRYPT (VARCHAR arg0, arg1 VARCHAR) AS VARCHAR BACK LANGUAGE JAVA NAME 'Encrclass.decrypt (java.lang.String, java.lang.String) return java.lang.String ';

    FUNCTION ENCRYPT (VARCHAR arg0, arg1 VARCHAR) AS VARCHAR BACK LANGUAGE JAVA NAME 'Encrclass.encrypt (java.lang.String, java.lang.String) return java.lang.String ';

    END;

    SELECT PCK_ENC. ENCRYPT('1234','HJUVHDUIFBSDGVU') FROM DUAL;

    HERE,

    1234 - is the password of the users table column data

    HJUVHDUIFBSDGVU - represents the key of table TB_ENCRYPT column data.

    Comparing this key, I want to update the old value of the key to the new value.

    I tried with this method

    declare

    cursor c1 is

    Select the key

    of TB_ENCRYPT

    where id = 1

    update the id;

    Start

    for c1_rec looping c1

    update users

    password is PCK_ENC. Encrypt (Password, Key)

    the location being c1;

    commit;

    end loop;

    end;

    /

    Help, please

    You can use the MERGE statement.

    merge into users
    using tb_encrypt
       on (id = userid)
      when matched then
          update set password = PCK_ENC.ENCRYPT(password,key);
    

    And why you encrypt your password. This isn't a good idea. Just password hash.

  • How to save the data of different rates in a single VI?

    Hello

    I tried to acquire 2-channel measurement of voltage at 10 kHz and analyze data, finally to save the data to both 1 kHz and 1 Hz. What I did is this loop of producer/consumer use to do the work of recording at different rates. I have queued all the data in the main loop, and then removed the data and write it to the file in other loops. I added "wait = 1 ms' a consumer loop for recording data at 1 kHz (loop of fast logging) and added" wait = 1000ms' in another loop to get the slow 1 Hz (logging loop) data record.

    My problem is that the data record works fine in the case of 1 Hz, but it does not work for the case of 1 kHz. Although the time-out period defined as 1ms, the interval between two samples in the loop of fast data recording is about 100ms.  Subsequently, 1ms, 10ms, 100ms, 150ms tried in this loop to see what intervals are in these cases. I found that the intervals are same as assigned in the timeout greater than 100 ms, but if the time-out is set to 1ms or 10ms, the intervals are again around 100ms.

    My question is - why I can't reach data record 1 kHz using loop of consumers/producers, while the same way works for the case of 1 Hz?

    Thank you very much

    Hao

    You are sampling at 10 kHz and you want to back up your data "as if you sampled at 1 kHz and 1 Hz", if I understand correctly.  I also understand that you use the design of producer/consumer model to help with this (a good idea).

    I'm assuming that the producer 'product' a segment of data at a time, to say the value of a second of data or a 2 x 10000 I16 (assuming a 16-bit integer A/D) table you put into a queue and wait for the consumer.

    If you have data at 10 kHz, how do you get representations to 1 kHz or 1 Hz?  There are (at least) two possibilities - average data over the interval of proper time, or (re) sample data.  The good thing is that you can handle the situation 1 kHz and 1 Hz, essentially at the same time and in the same processing loop.  I'll discuss the case 1 kHz - with the assumptions I made, the case of 1 Hz becomes almost trivial.  I'll discuss treatment also just one channel, as it is similarly almost trivial to go from 1 to N-channel.

    If you have 1 second of data sampled at 10 kHz, and will "reduce" 1 second of data sampled at 1 kHz.  Note that you have 10 samples for each data point that you want in the end.  The "Averaging" method said "Replace all 10 points in the average of these 10 points", while "resampling" method said "replace 10 points with, say, the first point, ignoring the others.  An easy way to do this is to use the Reshape feature to transform an array of 10 x 1000 elements of your array of 10000 items 1-D 2D.  Now, you can use a loop FOR an average of 10 items or simply extract the first.  [This is where almost everyone, including me, a mistake - when you put a 10 x 1000 2D array in a loop, you get 10 iterations of 1000 items and we want 1000 iterations of 10 items.]  Oops, what to do?  [Simple - converts 2D array before sending in the loop FOR.]

    So when you have processed your 10,000 points and got both 1000 samples "1 kHz" and 1 "1 Hz" sample, you write each of them in their respective folder and wait for the next item in the queue of the consumer.  Consumer focus on the queue loop, it will automatically 'block', waiting for the producer of the 'feed' some data.  Note that the producer generates data once per second, producing 10000 points for the consumer in the process, but the time to deal with these points and perform the required disk i/o should take only a few milliseconds (certainly not more than 100, even if writing to a floppy!), so you don't have much time to do other interesting things (such as display data).

    Bob Schor

  • Save the data in a horizentall

    Hello

    Any that offered little help on how to save the data in a portrait. As a result of my attachment all my datas saved az a tables!

    And also, I'll be glad if you told me that I can add text in front of my data as an outamaticlly to explain?

    Any suggestions would be greatly appreciated! Thank you very much!

    Sincerely,

    First convert your string numbers using decimal channel number.  Once your numbers have the appearance of a string, you can format the text with them.  If finally, you can use concatenate strings to concatenate (add all channels) your number in the string with another text format:

    This code would create the following string:

    Then, you can save your all channels on a line using the same method as above.

  • Save the data to the excel file

    Hello

    I make a program reads the value of the probe via serial port... but I don't know how I can record this data in excel file... I open the example in the labview example, but I don't want to like this... becaue I use a while loop in my program that cause opened "multi" excel file... . How can I solve this problem?

    You need to think about what you want to do, not how you want to do.  I'll make a few assumptions here - adopt to your notebook loads "real."

    I guess you want to take a series of readings from a device (sensor, serial port).  I suppose you take multiple readings, perhaps their display on a table or chart, for a certain period of time.  Once you have a set of data, you want to save all the data in an Excel file.

    If this scenario is correct, there are three distinct phases to this task - implemented the data collection (open the serial port, manage the interactions of the user according to the needs), data collection (and potentially produce tables or graphs) and save the data.  Note that only step 2, collect data, involves a repetitive action appropriate for a while loop.  Once you have all the data, you can then open an Excel report, use something like Excel table easy to put the Table in the report or chart Excel easy to put a chart in the report and save the report in evidence, save the report.

    If you are using a relatively recent version of LabVIEW (2010 or later), the new generation Excel report screws are pretty easy to use.

  • form created in the ES4 will not save the data entered in acrobat readerXI

    I created a big form in Live Cycle Designer ES4. If I save the form in pdf format and open it in Acrobat Reader XI I get the message that I can't save the data entered in the form only print it. All I want to do is to put the form on our web site for people to download, fill out, save, and send it to me. I consider another method that is if I distribute the form and take the distributed pdf and save it locally, when it is open in the player you get the Send button on the purple bar on the right side. This will confuse many of our users, so if there's a way to not have the submit button so that work, but how do I stop the send on the purple bar button?

    You must activate the reader of the form. You can do this in Acrobat 11 open the form in Acrobat and select: file > save as other > Reader Extended PDF > activate tools more

    11 reader can save non-active AcroForms (created in Acrobat Forms), but not the forms enabled for the XFA (forms created in LiveCycle Designer).

  • Cannot save the data

    I get the message "Cannot save the data" every time I try to open a single file CPTX. other files work fine. When I open the file, it gives me that message box, I click ok and another box says "a fatal error has occurred and the application is being completed. "and Captivate closes.

    I cleared the cache. I also tried to find and rename the Preferences folder, but I don't see any preferences folder or file in the \AppData\Local\Adobe\Captivate 5.5\ folder. Any ideas on what I need to do to fix this?

    The preferences folder is the folder "Captivate 5.5' in your profile (users\\AppData\Local\Adobe directory.

    Lilybiri

  • How can I insert data from another table into a table containing a timestamp column

    How you insert data from another table in a table if the target table contains a timestamp column. I tried to set the default value of GETDATE() column in the target table, but it does not work.


    I use MS SQL

    Sorry, I managed to get around this by inserting null as the value

  • How can I control the writing-data-to - spreadsheet.vi to save the data?

    Hi all

    I tried to draw a wave and save the data to excel. Now, I want to control the writing-data-to - spreadsheet.vi to save data when I want which means that the vi records nothing until I have send a command to it. How can I make this happen or do I need any other screws?

    Nicky

    Hello

    Maybe this wat you are trying to do... Let me know if it helps...

    Kind regards

    amine31

    (Kudos are always welcome)

  • HP 54602 B oscilloscope to view 2 channels and save the data to a file

    Hello

    I use a HP Oscilloscope 54602 B to plot the voltage and current in a circuit. So I need LabVIEW to save the data of the two strings in a file or to have the plot of both channels. I used the "get started" VI with the driver and I am able to get the trace of the 1 channel. I'm not familiar with programming in labview so y at - it someone who has a VI near the VI that I need?

    Thank you.

    Try these.

Maybe you are looking for

  • Pavilion a6220n: updated my BIOS after Windows 7 is already installed

    Hello. I bought an a6220n Pavilion in 2008 because he was very progressive.  In 2010, I updated the video card with an ATI Radeon 4770 and upgraded to 4 GB of RAM. Recently, I backed up all my stuff and restored the computer to factory settings.  I i

  • 4.0.22.33382 required ASAP issue date

    I need to present the notes as part of the internal change management upgrade to 4.0.22.33382 ticket. It's on an ix12-300r. Thank you.

  • Event navigation response is Slow

    Hello I have download a demo interface to illustrate a problem I encounter. I use a control tab and 'Buttons OK' to change the tabs. The appearance of the 'OK' button is changed by pasting images of Microsoft Visio, through the button right click-> A

  • Far Cry installation on 64 bit Vista machine problems

    I have a 64 bit vista (SP1) computer.  I have "Far Cry". I have a lot of speed, memory, and all that. When I start the installation process, I get the error "run setup32.exe on windows 32-bit or setup64.exe on 64-bit windows!". There is no "setup64.e

  • Xperia Z2 e-mail client

    I use the default email application to access my emails to Gmail (IMAP) and I find that when I delete e-mails via IMAP are remaining / reappear in the trash / Bin. Any ideas? Thank you very much.