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
Tags: Database
Similar Questions
-
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
-
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:
-
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 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.
-
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 '.
-
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.
-
How to save the data in a form called?
Hi all.
I have two froms.like FORM A and FORM b.
I have a button on the FORM B.
When I click on this button, FORM B and FORM data should be store in the database...
I wrote something like this in the form B
when_button_pressed->
commit_form;
go_form ("c\user\babu\FORM A.fmx");
commit;
Here, my problem is when I click on save button only saved FORM B, FORM A not memorizing the data in the database.
Please help me and tell me where the error...
Post edited by: N.B.Babu
I guess that the modules form a calls B with OPEN_FORM module (..., SESSION), IE. Module B works in the new session of database
(by the way, the database connection is the same, because the connection to a database can go several database sessions).
Your code cannot save the data in the two sessions of database:
commit_form; -This saves the data only from module B (because A module work in diferent database session).
go_form ("c\user\babu\FORM A.fmx"); -Now you in module A.
commit; -This has no effect, you are now on the module to a.
Kind regards
Zlatko
-
"shuffle" the data in a table...
Hello world...
Pleade help me solve this problem.
Is it possible to combine the data in a table?
Let say if i have a table with following data.. PERSON_ID PERSON_LAST_NAME PERSON_FIRST_NAME DOB 1 Test1 Test1 01/01/1970 2 Test2 Test2 01/01/1971 3 Test3 Test3 01/01/1972 4 Test4 Test4 01/01/1973 5 Test5 Test5 01/01/1974 I am trying to shuffle the above data so that no person will have their "real last,first and dob match". I need the output like this or in any combinations so that no one can identify a person actual "last name,first name and dob" PERSON_ID PERSON_LAST_NAME PERSON_FIRST_NAME DOB 1 Test1 Test2 01/01/1974 2 Test2 Test4 01/01/1975 3 Test3 Test5 01/01/1971 4 Test4 Test3 01/01/1972 5 Test5 Test1 01/01/1973 please help me to solve this issue. Thanks in advance
Hello
You can do something like this:
WITH got_nums AS ( SELECT person_id , ROW_NUMBER () OVER (ORDER BY dbms_random.value) AS person_id_num , person_last_name , ROW_NUMBER () OVER (ORDER BY dbms_random.value) AS person_last_name_num , person_first_name , ROW_NUMBER () OVER (ORDER BY dbms_random.value) AS person_first_name_num , dob , ROW_NUMBER () OVER (ORDER BY dbms_random.value) AS dob_num FROM table_x -- WHERE ... -- Any filtering goes here ) SELECT id.person_id , ln.person_last_name , fn.person_first_name , db.dob FROM got_nums id JOIN got_nums ln ON id.person_id_num = ln.person_last_name_num JOIN got_nums fn ON id.person_id_num = fn.person_first_name_num JOIN got_nums db ON id.person_id_num = db.dob_num ;
This does not guarantee that no column of the same original line will be on the same line of output. I don't think that you really want it.
-
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.
-
concatenate the data in 2 tables in a third table as well as in CONCATENATE strings
Hello. as the title says, I wish to only concatenate the data in 2 tables in a similar third table that concatenate strings don't. All tables should be 1 d. For example, suppose that there is 1 table with the following: 1. 2; 3; 4 and table 2 with:; b; c; d. I would like a table 3 either 1 a, 2 b, 3 c, 4 d. Now this could be done easily with above mentioned concatenate strings, then table construction. but table 1 and 2 have something like 150 items. Rather painful. Any ideas?
Hold arrays of two strings in a loop for example, concatentate the strings inside the loop and run the result réécrirait array3.
Autoindexing manages table manipulations.
MIke...
-
How to use "Write to the spreadsheet" to save the data when I want?
When I use write on worksheet to record data, I must determine whether to save data or not before running the program, is there a way I can run the program and then decide whether to save the data, which means I can have a 'save' botton After runing the program, when I shoot, I can record data, otherwise, it is not. Thank you.
-
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.
-
Delete the data in partitioned tables
Hello
Oracle 11.2.0.3.0 version, running on Linux Enterprise.
I need to remove all the data from two tables (several 100 million lines each) that are partitioned.
(1) table 1 is a partition table have varied to a DATE column
(2) Table2 is a partition of reference table; partitioning is referenced on a relationship of foreign key to Table1 (column: key Table1.Primary)
As I have no need for data, but want to keep the structure of the table, I would ideally like to delete partitions at the same time that the deletion of the data, so that the 2 tables partitioned and empty.
Additionally, Table1 has some partitioned index I would be rebuilt as an index unpartitioned (given that Table1 will be empty).
I thought I would start by removing all partitions of Table1 (via "ALTER TABLE DROP PARTITION nom_partition Table1"), but when the script came to the last partition, I got this error message:
ORA-14083: cannot delete the only one partition of a partitioned table
ORA-06512: at "SYS." DROP_PARTITIONS', line 46
If someone could advise as to the best approach to what I want to achieve with regard to the two tables? Two tables down and recreate them then without partitions would be the easiest way?
Thanks in advance for any guidance.
If someone could advise as to the best approach to what I want to achieve with regard to the two tables? Two tables down and recreate them then without partitions would be the easiest way?
Yes - delete the tables and re-create them.
As says the exception that you cannot delete the last partition. A table is partitioned either or it is not.
There was no interest at all to use DBMS_REDEFINITION to redefine tables because you do not want the data anyway.
Maybe you are looking for
-
How can I disable (remove) Chat?
Not using this feature and want to remove Chat from my Thunderbird completely. Thanks for helping!
-
Need help with a program of closing
I'm trying to update Macromedia Flash. He tells me to close a program (aloha solitaire) but I'm not running. It does not appear when I opened the Erzberg task? Anyone know what I need to do?
-
Error of 1.0 BBM SDK Simulator
I start gettg this error and have tried everything to get the simulators to talk with each other again without success. Running on XP, with Java SDK 6.0.20 and new MDS runs. Another Simulator works ok. Has anyone seen this? «Port - BlackBerry 980
-
Im having the error above, I know that some paper was taken here today but can't find or see... I get the same error above and I went though all the measures that have been in the article... Unplug, reset, exit cartages...
-
Is an Oracle Instance a Cluster resource
HelloI try to understand what is considered to be a cluster resource - the Oracle Instance, Oracle Database or both?When I use "crsctl resource" the Oracle Instance doesn't seem to be a kind of resourceTo my knowledge, a cluster resource is something