Repeat the extensible data from a table in a new
Hello
I managed to create a table in LC designer4 growing - IE. It is a four-column table with a header line followed by a line where I can add information in three table cells. If I need to have another line I click on the line button Add (placed in the header row), and a new appears. There is also a button that can systematically remove deleted a row. I'll call this my parent table.
So far so good.
Maybe it's better to explain exactly what I'm doing here...
My parent table is a kind of to-do list he calls table X. Each column is as such: 1. what to do 2. who will do 3. When she will be
It is extensible, so if there is more than one action to be carried out it will add extra lines.
I also want to create a new table that is an update on the list to call this table Y:
column a. what needed to be done (these data are extracted directly from column 1 on the to-do list) column B: at - it to happen? column C: if not, why - columns B and C are new and do not pull the data from the to do list.
The problem is twofold: how repeat the data in the column 1 (given the fact that I can't use global data binding as column 1 can have several different entries), and if I can get past this first hurdle, how can I make automaticall table expand to the same amount of lines in table X?
I should mention that I'm a designer so my programming expertise is severely limited. I managed to create the first table by watching the tutorials rather than find out myself. As far as I know the first table is done in javascript.
Any help would be greatly appreciated!
You need to loop through the tables and copies the data from the field.
You have to adapt the example below for your table names and the reference field.
Table1 = table to copy from
Table2 = table to copy to
Row1 = name of the rank that the fields are
ColumnA = the name of the field being copied
Here is the script (put it on the Click event of a button):
Table2._Row1.count = Table1._Row1.count; var vCol1 = this.resolveNodes("Table1.Row1[*].ColumnA"); var vCol2 = this.resolveNodes("Table2.Row1[*].ColumnA"); for (var i = 0; i < vCol1.length; i ++) { vCol2.item(i).rawValue = vCol1.item(i).rawValue; }
Tags: Adobe LiveCycle
Similar Questions
-
transfer data from a table to a new table
Hello all;
I have a table called infosight and I would like to create a new table called wall. I have in my infosight table, the columns and the following data
Now I want to insert only the following fields, * ID *, * place *, * price * in the new table called workzone until bookid value does not already exist in the wall table. Thank you. I would be grateful for all the help I can get. Thank you.bookid place author price 123 NewYork James $320.20 124 London John $356.56 125 Tokyo Hui $456.0
Try PLS,
insert into workzone (bookid, place , price) select bookid, place , price from infosight where bookid not in (select book_id from workzone)
or some other way,
Insert into the wall (bookid, place, price)
values
Select bookid, place, price of infosight where ID in
(select bookid infosight less
Select wall book_id)Published by: sree on July 25, 2010 06:59
-
Export data from Oracle table to a .csv file by putting a condition on the value of a column
Hello gurus,
I have the following data in my table
ROWID name version date
1 oracle 11.1 20/12/2013
Java 2 7 12/10/2011
1 oracle 12.1 28/12/2013
1 oracle 10.2 12/06/2010
Now I need a general sql/plsql code who wrote the columns with a specific value to the rowid.
My output should look like
1,Oracle,11.1,12/20/2013
1,Oracle,12.1,12/28/2013
1,Oracle,10.2,06/12/2010
Here, I want to pass the value as a parameter dynamically
Can someone help me with the sql/plsql.
Hello
If you use the IN operator:
Select rowid_col
|| ',' || name_col
|| ',' || version_col
|| ',' || To_char (date_col, 'HH24:MI:SS of Mon-DD-YYYY') AS csv_text
from your_table
where rowid_col IN (& input_values);
then & input_values can be a unique number (e.g. 1) or a list separated by commas (for example, 1,2,3) numbers. Don't put NO space around the comma.
-
How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?
Make sure that you dragged the VO based EO.
Also make sure that the VO attributes based EO Updatable property.
The query according to VO is used only to add LOV to the column of the original VO ModelId.
See you soon
AJ
-
Inserting data from one table to another table
Hello
I have the following SQL where I am updating a table by adding new data from another table, but without success.
INSERT INTO
() TOP_PROSPECTS
COMMON_ID
DATE_ADDED
REVIEW_RANK
EVAL_DATE
PM_ASSIGN
WHY_NOTES)
SELECT
t.COMMON_ID
t.DATE_ADDED
t.REVIEW_RANK
t.EVAL_DATE
t.PM_ASSIGN
t.WHY_NOTES
Of
TEMP_IVAN_MARY t
WHERE
COMMON_ID <>t.COMMON_ID
Any suggestions?
Thank you.
Published by: user13822709 on August 14, 2012 09:14
Published by: user13822709 on August 14, 2012 09:15Is that what you're trying to do with the insert. I think there may be a sign {noformat}<{noformat}{noformat}>{noformat} missing in the where clause. This site eat those, so you need to use the equivalent! = post here.
If I'm wrong about the missing trader, then it looks like you want to insert rows in temp_ivan_mary that are not already in top_prospects. If Yes, then you need something like:
insert into top_prospects (common_id, date_added, review_rank, eval_date, pm_assign, why_notes) select t.common_id, t.date_added, t.review_rank, t.eval_date, t.pm_assign, t.why_notes from temp_ivan_mary t where t.common_id not in (select common_id from top_prospects where common_id is not null)
Function index and data available volumnes etc. then a mergr can be more effective. Something like:
merge into top_prospects p using (select common_id, date_added, review_rank, eval_date, pm_assign, why_notes from temp_ivan_mary) t on (p.common_id = t.common_id) when not matched then insert (common_id, date_added, review_rank, eval_date, pm_assign, why_notes) values (t.common_id, t.date_added, t.review_rank, t.eval_date, t.pm_assign, t.why_notes) from temp_ivan_mary t
John
{noformat}{noformat}> -
extract data from a table to a text file
I need to extract data from a table to a text file, I twist my output is the following...
bash-3. $00 vi tap3roamercosts_20110915144318.txt
lines of 'tap3roamercosts_20110915144318.txt' 393948, 23464348 characters
^ LAFGTD | N | 2011090203000001 | 13242514000064 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
755. 64. 70. 0093794428588 | 0093796234547 | 0 | S2 | E | 412200306902634 | 8. 1. 61500 | 16081 |
| HW | Call to the Roamer. 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | LKA | N_I_Independent
the time of day. Rate of Roamer SMST systems | AFGTD20110902030000010001013242514000064 |
|||||||||||||||||||||
AFGTD | N | 2011090203000001 | 13242612000044 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
853. 44. 70. 234. 0093793252818 | 0 | S2 | E | 412200303198150 | 8. 1. 61000 | 12403 | HW | -Ro
bitter call | 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | N_I_Independent time of Da
There | Rate of Roamer SMST systems | AFGTD20110902030000010001013242612000044 |
||||||||
AFGTD | N | 2011090203000001 | 13242612000047 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
853. 47. 70. 234. 0093793252818 | 0 | S2 | E | 412200303198150 | 8. 1. 61000 | 12403 | HW | -Ro
bitter call | 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | N_I_Independent time of Da
There | Rate of Roamer SMST systems | AFGTD20110902030000010001013242612000047 |
||||||||
.
.
.
.
.
Please help me how to format my output each record in simple lines in oracle sqlplus. Here are the settings I used...
TERMOUT OFF SET;
SET ECHO OFF;
SET LINESIZE 100000;
THE VALUE OF NEWPAGE 0;
SET SPACE 0;
SET PAGESIZE 50000;
SET FEEDBACK OFF;
SET THE OFF POSITION;
SET TRIMSPOOL
SET THE TABAnd what was wrong with the answers that you have on your previous thread?
How to extract data in a text file
Please do not ask the same question again. If there is a problem with the answers provided, then continue on the same thread that tell people what is the problem.
Saying that, this is another possibility for you...
As user sys:
CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles' / GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser /
As myuser:
CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2 ,p_dir IN VARCHAR2 ,p_header_file IN VARCHAR2 ,p_data_file IN VARCHAR2 := NULL) IS v_finaltxt VARCHAR2(4000); v_v_val VARCHAR2(4000); v_n_val NUMBER; v_d_val DATE; v_ret NUMBER; c NUMBER; d NUMBER; col_cnt INTEGER; f BOOLEAN; rec_tab DBMS_SQL.DESC_TAB; col_num NUMBER; v_fh UTL_FILE.FILE_TYPE; v_samefile BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file); BEGIN c := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE); d := DBMS_SQL.EXECUTE(c); DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab); FOR j in 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val); WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val); ELSE DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); END CASE; END LOOP; -- This part outputs the HEADER v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767); FOR j in 1..col_cnt LOOP v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),','); END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); IF NOT v_samefile THEN UTL_FILE.FCLOSE(v_fh); END IF; -- -- This part outputs the DATA IF NOT v_samefile THEN v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767); END IF; LOOP v_ret := DBMS_SQL.FETCH_ROWS(c); EXIT WHEN v_ret = 0; v_finaltxt := NULL; FOR j in 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val); v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val); v_finaltxt := ltrim(v_finaltxt||','||v_n_val,','); WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val); v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),','); ELSE v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); END CASE; END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); END LOOP; UTL_FILE.FCLOSE(v_fh); DBMS_SQL.CLOSE_CURSOR(c); END;
This allows the header line and the data to write into files separate if necessary.
for example
SQL> exec run_query('select * from emp','TEST_DIR','output.txt'); PL/SQL procedure successfully completed.
Output.txt file contains:
empno,ename,job,mgr,hiredate,sal,comm,deptno 7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20 7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30 7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30 7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20 7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30 7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30 7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10 7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20 7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10 7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30 7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20 7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30 7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20 7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.
Adapt to the exit of styles and different types of data are needed.
-
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 SQLSorry, I managed to get around this by inserting null as the value
-
Migration of data from a table to another table
have a table1 that includes the existing data in the format.
~@!%~X1~@!%~Y1 in three different coulmns
creates a new empty table and the need to migrate the data above, which is present in 3 different columns in a column in the new table, as shown in the example below.
table 1 existing data (| separator of columns for formatting)
------------------------------------------------------------------------------------------------------------------------------------
ID name1 | Name2. Name3
123 ~@!%~X1~@!%~Y1 | ~@!%~X2~@!%~Y2 | ~@!%~X3~@!%~Y3
234 ~@!%~X4~@!%~Y4 | ~@!%~X5~@!%~Y5 | ~@!%~X6~@!%~Y6
456 ~@!%~X7~@!%~Y7 | ~@!%~X8~@!%~Y8 | ~@!%~X9~@!%~Y9
Table 2, which will initially be empty and after migration, it should look as follows.
ID name1
----------------------------------------------------------------------------------------------------------------------------
123 ~@!%~X1~@!%~Y1 & & ~@!%~X2~@!%~Y2 & & ~@!%~X2~@!%~Y2
234 ~@!%~X4~@!%~Y4 & & ~@!%~X5~@!%~Y5 & & ~@!%~X6~@!%~Y6
456 ~@!%~X7~@!%~Y7 & & ~@!%~X7~@!%~Y7 & & ~@!%~X7~@!%~Y7
as shown in the example above
Name1 column has ~@!%~X1~@!%~Y1
Column name2 has ~@!%~X2~@!%~Y2
Name3 column has ~@!%~X3~@!%~Y3
Once the data is migrating from table 1 for id - 123 looks like below, before joining data from 3 tables, I need apopend & & for each for the token I read of the tabl1 of name1 to end ii should be added "& &" also when I read the name2 I add "& &" at the end of the string before the concatination.
Here's the sample that deals with data for id - 123 with & & (only & & other symbols are part of the data)
~@!%~X1~@!%~Y1 & & ~@!%~X2~@!%~Y2 & & ~@!%~X2~@!%~Y2
need help in writing a note of migate
Published by: [email protected] on April 2, 2010 15:42Hello
You are looking for something like this
CREATE TABLE table_new AS (SELECT id, name1 || '&&' || name2 || '&&' || name3 name1 FROM table1);
or if you have the table ready
INSERT INTO table_new (SELECT id, name1 || '&&' || name2 || '&&' || name3 name1 FROM table1);
Thank you
Alen
-
data from 3 tables with later dates
Hello
Need help with the PL/SQL code, I need to write a code that will get the data from 3 tables with the most recent date.
For an individual ACT_CODE the output of the SQL query should display the data including the last dates back to 3 tables, if there is no
Date of the table, it should show the remaining data (think that the left join will do here)
Names of tables:
Institution_UPDT aiu
AC ASQ_CONTACT
GR_AUTHORIZE gr
All 3 tables have ACT_Code in common
Column names
INSTITUTION_UPDT IAU - IAU. ACT_CODE, AIU.project_id as proj, IAU. UPDT_TYPE_ID, IAU. User_id, IAU. UPDT_DATE
ASQ_CONTACT ac - ac. ACT_CODE as contact_code, ac.project_id, ac.first_name, ac.middle_initial, ac.last_
Name, AC.title, AC. Status, AC.status_date
GR_AUTHORIZE gr - GR ACT_CODE as grad_code, gr.name, gr.title AS grad_title, gr.submit_date
Are the names of the columns date
AC.status_date,
IAU. UPDT_DATE and
Gr.submit_date
Thanks to you all
appreciate your help
JeshHi, Ngoumba,
If a given ACT_Code couldn't miss from any of the tables, then you will use better full outer joins, not a join left outer.
Perhaps it would be more effective to make a UNION of the three tables, then rotate the results in three datecolumns.
You can use the GROUP BY aggregation to get the last date for each ACT_Code in each table.
If you need other columns in the row which is the last date, you can use the ROW_NUMBER analytic function, like this:SELECT ACT_Code , updt_date , ROW_NUMBER () OVER ( PARTITION BY ACT_Code ORDER BY updt_date DESC ) AS r_num FROM institution_updt
The lines with r_num = 1 are the most recent
This is a technique of ot the UNION-PIVOT example:
WITH union_data AS ( SELECT ACT_Code , MAX (updt_date) AS last_date , 1 AS table_id FROM institution_updt GROUP BY ACT_Code UNION ALL SELECT ACT_Code , MAX (status_date) AS last_date , 2 AS table_id FROM ASQ_Contact GROUP BY ACT_Code UNION ALL SELECT ACT_Code , MAX (submit_date) AS last_date , 3 AS table_id FROM GR_Authorize GROUP BY ACT_Code ) SELECT ACT_Code , MAX (CASE WHEN table_id = 1 THEN last_date END) AS aiu_updt_date , MAX (CASE WHEN table_id = 2 THEN last_date END) AS ac_status_date , MAX (CASE WHEN table_id = 3 THEN last_date END) AS gr_submit_date FROM union_data GROUP BY ACT_Code ORDER BY ACT_Code ;
Published by: Frank Kulash, on September 16, 2009 15:02
Added UNION-pivot example -
Extraction of data from two tables without discounting
Hi friends,
I have a problem I want to extract data from two tables without discount in the text field when I will enter any value in a text field, then the value of corressponding must come to textfield corressponding.
for example. There are two table A and B.
Table A has Colunm
S_ID number;
C_ID Varchar2 (30);
VARCHAR2 (4) s;
Second table B Colunm name
S_ID number;
What varchar (30);
L_Name varchar (20);
When I enter in a text field then the c_id 101 s_id, dry, first_name and last_name should come to corressponding text without refresh fields.
How can I do that.
Thank you
MauryYou can use Ajax and there are tons of good examples out there for this purpose;
For example [http://apex.oracle.com/pls/otn/f?p=31517:236:1876567353842241] -
original title: robocopy
I'm trying to migrate data from a server to a new one with the file permissions of the files of users and records lost. So far, that's what I did, I used \\server1\share \\server2\share/sec /mir robocopy and robocopy \\server1\share \\serve2\share/e/s /copyall. It seams like they copied all files with the permissions of the user for the files, but not files. For example, if a user makes a folder with the files in the folder appear them have permissions appropriate for them but not the root folder or subfolders, they did... How can I fix this and what is the difference between / s /mir and/e/s /copyall?
Hello
You can find the Server forums on TechNet support, please create a new post at the following link:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
Anyone know how to recover the deleted data from CRM?
I have a site that I've cleaned cases - only to find out that deletion case deleted the actual data. I always thought of the case as a 'Notification' Center of sorts and didn't delete the case removed all the actual data from the database. I need to get that data recovered - I searced every forum and the Help Center and I have sent BC Support, but I just wanted to check to see if anyone has come across this problem before.
Hey there. No, cases are an essential part of the CRM, of forms for example are stored even in the case. Workflow notification emails are simply the notification.
Just, you see what said support BC but do not expect that you will get the return data.
-
a patch can change the release date and time table psrelease?
a patch can change the release date and time table psrelease?
Thank you.What kind of patch? A bundle? A maintenance plan? An upgrade of the application?
In any case, I'm sure that it does not change any date, but he has a line in this table.Nicolas.
-
How can I get the filtered data from the first form
How can I get the filtered data from the first form in a second form to make an update of the multi.
Thank you very muchWilliam,
I would use for this collections. A link is good if you need to pass a single value.
1. create a collection
2 fill the collection with your result set
3. go in the page target and uses a method of a query in your link to this page
4. your target page receives a request and allows you to edit documents.Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
I am a member creative cloud. I want to install the same applications from my laptop to my new desktop computer. I need to purchase another license? otherwise how do the same thing for my new desktop computer
I have it! Thank you
Maybe you are looking for
-
SD-C2612 IDE #1 error after wrong firmware update - Satellite Pro A10
HelloI have a Toshiba Satellite Pro A10, which was flashed with wrong firmware (I don't know which because I don't). I tried flashing with the right firmware (1315) but get the message to the Primary Master and Slave as "Not ATAPI Device" and "drive
-
Hello I want a clean reinstall on my HP Mini 210. How can I reinstall the operating system and drivers only from the recovery partition? I don't want any other software and tools HP... P.S. I've done a reinstall from the recovery partition and then s
-
I opened the file of the sandisk cruzer, it has a message that says cannot work due to the I/o device error.
-
We have added a Netgear storage device to our home network and I am connected via Ethernet. We have two computers using the storage, a desktop running XP and a laptop running Vista. The XP computer can write, delete, update and rename the files. The
-
Lost blackBerry Z10, error blackberry phone
Hello I am writing to you, because I lost my phone a week ago, but my friend find it. After I lost him, I turned on the bb id protect the phone option lost, and now I can't do anything on my phone. To the bb ID protect I can't do anythin no more. I g