How to Insert more than one record at a time
How to insert multiple records at a time?
If someone can advise on this, then the actual problem is described below:
I have a MS access database with one table. The table has three fields. The
first field is an autonumber field for ID number.
The second field contains string values- One out of 7 predefined values. One
set of records consists of 7 records containing all the seven types of
predefined values in fields no 1.
The third field is a numeric field and can contain integers.
I want that the user can enter data for the table using an ASP form in such
a way that he enters one set of records at a time in one single screen. This
way he will not have to remember that he has /has not entered all the seven
set of values for the field no 1.
I am not creating fields with the 7 types of field1value as their names as
it will increase the number of fields drastically.
Please help with inserting multiple records at a time.
I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
Please help.
Also advise if there are any free dreamweaver server side validation extensions available.
Similar Messages
-
How to Insert more than one record at a time- with fixed set of values in one field
Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
If someone can guide then the exact problem is given below.
I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
The third field is a numeric field and can contain integers.
I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
Please help for dreamweaver ASP VBScript.I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
Please help.
Also advise if there are any free dreamweaver server side validation extensions available. -
How to show more than one record at a form-like style report?
Hi All,
I developed a form-like style report
I want it to show more than one record at once (At the same page)
I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
but when I close the property palete and open it agian the value is returned to 1 !!!
how to show more than one record at the same page?????
Thank uHi,
there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
Regards
Rainer -
Master_detail for more than one record at a time
Hi,
How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
Thanks for your help.BcjThanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
data in table A,
username role
AAA R1
BBB R2
CCC R3
data in table B,
username profile
AAA P1
BBB P2
CCC P3
i wanted to display it on form like below,
username role profile
AAA R1 P1
BBB R2 P2
CCC R3 P3
Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
Thanks Again, Bcj -
How to make more than one partition on Airport Time Capsule?
how to make more than one partition on Airport Time Capsule?
Only for the very brave......
Open up the Time Capsule (voids the warranty)
Pull the hard drive
Place the hard drive in a separate enclosure
Connect the enclosure directly to your Mac
Use Disk Utility to partition the hard drive
Reinstall the hard drive back in the Time Capsule
For the rest of us.....
The next best thing might be to set up one or more disk images on the Time Capsule, which will allow you reserve a given amount of space for each disk image.
Open up Macintosh HD > Applications > Utilities > Disk Utility
Click on the New Image tab
Navigate to the Time Capsule
Set up the disk image by naming it and specifying how much space you want to reserve -
How can i insert more than one record a time in a JSP page?
Hi experts,
I'm working with JDeveloper version 3.2 application server 9i.
I want to insert more than 1 record using a jsp page and then perform a commit at the end.
do you can help me with this problem/challenge?
Thank you,
Regards,
Mariostatement.executeBatch() maybe?
-
How to return more than one record through OUT parameter in procedure
Hi,
I want to create a procedure which accepts one input and returns more than one record as output.
example:
Input = DeptNo
Output= Empno,ename,sal,comm,job
Scenario:
There can be more than one employee in department we pass as the IN parameter. OUT parameter has to return all the records of the corresponding employee details in that department.
Thanks in advance for your help
Regards,
K.Vijay-- I think you can try something like this using ref cursor:
-- create a package for the type ref cursor and execute
CREATE OR REPLACE PACKAGE PACK_REFCURSOR_FOR_TABLES AS
TYPE DATA_TableRows IS REF CURSOR;
END;
-- after executing the package above, create your procedure:
CREATE OR REPLACE PROCEDURE GET_EMP (
IN_nDeptNo IN number,
OUT_Emp OUT PACK_REFCURSOR_FOR_TABLES.DATA_TableRows)
IS
BEGIN
-- leave query open (implicit) as this will return data
OPEN OUT_Emp FOR
SELECT *
FROM tblEmp
WHERE DeptNo = IN_nDeptNo;
END;
--execute the procedure and you're done -
How to save more than 2 records at a time in tabular form?
I have a table name SAMPLE_TABLE, which has SNO,NAME items and one sequence name is SEQ_SAMPLE.
i have one form based on SAMPLE_TABLE. my form is in tabular format, which has 5 records.
in the layout wizard only NAME is displayed. SNO doesnot displayed.
in the layout wizard, there is one push button named as SAVE.
the code of SAVE button(When_Button_Pressed) is
insert into sample_table values(seq_sample.nextval,:sample_table.name);
clear_record;
commit;
my problem is :
when ever i want to save one record at a time there is no problem.
if i want to save more than 2 records at a time then sequence number is alloted for last record. other records have no sequence numbers.
for example i want to insert 2 names as XYZ,PQR then
the table look like this:
sno name
1 PQR
XYZ
if SNO is primary key then it doesnot work because of null value.
can any one solve my problem?
Thanks
MeegadaIs the block a database block or a control block,
1. if database block, assign the primary key on a
trigger like new record instance for each record
enteredour's is a control block, ididnt get your point clearly
could you make it clear how to assign a primary key on a trigger
our criteria is we are having two block as lov_values and lov_name
lov_values:
lov_values_id (sequence generated)
lov_id will be same for the all the values for a particular lov_name
lov_values will be which we enter in the form which will be the only visuble colums on the form
lov_name block:
lov_name
lov_id(sequence generated)
could you help me with the code
thanks
prasad -
I have an HP Photosmart C4180 all-in-one, printer, scanner and copier. I can't figure out how to scan more than one page? It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement. Any ideas??
Thank you, JetteskiHello Jetteski,
Hello Jetteski, Thanks for the post.
Since you are running a MAC, check the below links for some excellent information on scanning. Good Luck!
http://goo.gl/M8Cl2
http://goo.gl/cufK6
http://goo.gl/OTQoR
I work for HP but my posts and replies are my own....Thank you! -
How to delete more than one photo at a time
Apparently there is no longer an iPhoto trash. So you don't drag photos to the trash. Instead you hit the delete key and then a second click on delete when you get the message "Are you sure you want to delete this photo." Has anyone found a way to delete more than one photo at a time, though? This is really a hassle if you have just imported 500 photos and are going to end up deleting 450 of them.
I didn't say use the command key and delete. I use the command key for selecting random photos. Then I right click and choose delete from the contextual menu.
I always use right click, but the command-delete does work also in that album.
Depending on what album you are in, there are different menus. In a user created album, the right click would show "Remove from Album" & "Delete Photo". I noticed that was the same for Last Import Album. But at the same time, under image, you will only have Remove from Album. If it is a system album, you will only get the delete menu from either the right click or from the menu under Image.
What you have to remember is if it days delete the photo, it will completely delete it from the library and all albums. If the menu says Remove From Album, then it will only be removed from the album you are in.
In PhotoStream Album, you get only Delete Photo from the right click menu, but under image, you get only remove from album. So if you want to remove an image from PhotoStream, you have to use the top menu so it won't get deleted from the library. If you want to remove a photo completely, you would use delete and it will be removed from the library and photo stream.
So, there are different processes for the different albums. I don't know if that is intentional or just oversight. That may change in the future. -
How to update more than one records at one time
hello guys..
how to update a few records (more than one) with different
IDs at the same time? i tried to make a query like this (see
below), but only one record (more than one data in the same
field)has been updated.
<cfquery name="rec" datasource="DatKoku">
select *
from tbl_pilih
where id_pel = '#form.idpel#'
</cfquery>
<cfquery name="updtrecord" datasource="DatKoku">
update tbl_pilih
set
kptsn = '#form.suk_pil#',
trkh_kptsn =
'#Dateformat(TodayDate,"dd/mm/yy")#|#TimeFormat(Now(),"hh:mm:ss
tt")#'
where id_pel = '#rec.id_pel#'
</cfquery>
<cfquery name="outputrecord" datasource="DatKoku">
select *
from tbl_pilih
where id_pel = '#form.idpel#'
</cfquery>Take the query,
<cfquery name="rec" datasource="DatKoku">
select *
from tbl_pilih
where id_pel = '#form.idpel#'
</cfquery>
If every row in the table has a distinct id_pel, then what
you ask is actually an impossible question. It will have no answer.
Distinct IDs imply that the resultset will contain
at most one distinct value of id_pel. That means, there can
be at most one row that satisfies the condition,
where id_pel = '#rec.id_pel#' in the update query. That in
turn means the update query can update at most one row at a time.
If, however, the resultset of
rec consists of multiple rows, it will mean that there are
multiple rows in the table that have the same
id_pel . Then, your update query,
updtrecord, should update all the rows that share that value
of id_pel. -
How to display more than one Record in a Loop
Hi ,
This procedure will return more than one data .
so please tell me how can i write a loop to display all the records of a Table .
This is my procedure :
create or replace procedure getEmpName
V_EMPID IN employee.EMPID%TYPE,
V_EMPNAME OUT employee.EMPNAME%TYPE
is
begin
select empname into V_EMPNAME from employee where empid='2';
end ;
This is my block : How to write a loop here to display all records of my Table
declare
v_EMPNAME EMPLOYEE.EMPNAME%TYPE;
begin
getEmpName(2, v_EMPNAME);
dbms_output.put_line(v_EMPNAME);
enduser10503747 wrote:
so please tell me how can i write a loop to display all the records of a Table .hi,
given procedure will display all records of emp table...
CREATE OR REPLACE PROCEDURE Testloop
AS
CURSOR test1
IS
SELECT EMPNO, ENAME FROM EMP;
BEGIN
FOR i IN test1
LOOP
DBMS_OUTPUT.PUT_LINE ( 'Emp - '||i.empno ||'-'||i.ename );
END LOOP;
END;
Thnx
MB -
How to insert more than one row in an Oracle table in one go
Hi All,
I am working on a file-XI(BPM)-Oracle scenario.
I am sending an xml file to XI via a file adapter. On the receiver end i am using a jdbc adapter to insert the row in the database. There is a transformation step within the BPM which is converting the file to a format understood by the JDBC adapter.
The problem i am facing is that, even if my input xml file contains more than one recordset, only one row is created in the database with the first recordset.
How can i insert all the other recordsets in the database at the same time.
Pls guide
Thanks in advance.
Regards
NeetuHi,
As asked by Bhavesh, i set the occurence of the STATEMENT tab 1 to UB. But still only one row is getting updated in the database at a time.
As asked by Udo, i even tried the same by changing the occrence of ACCESS tab 1 to UB. But still same thing happened.
Can there be some other problem.
The transformation is being dane in the BPM.
As seen in SXMB_MONI, the input xml to the BPM has two RECORDSET tags but the output generated xml in the format understood by jdbc adapter has a single STATEMENT tag.
The two formats are given below
<b>Input:</b>
<?xml version="1.0" encoding="utf-8"?>
<ns:MT_Test_File xmlns:ns="http://namespace-EmpNumberGen">
<EmpGenRecord>
<APPLICANT_NO>20</APPLICANT_NO>
<FIRST_NAME>abc</FIRST_NAME>
<LAST_NAME>xyz</LAST_NAME>
<FUNCTION>ADMIN</FUNCTION>
<DESIGNATION>ZA</DESIGNATION>
<RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
<RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
<EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
<STATUS>A</STATUS>
<***>M</***>
</EmpGenRecord>
<EmpGenRecord>
<APPLICANT_NO>14</APPLICANT_NO>
<FIRST_NAME>abc</FIRST_NAME>
<LAST_NAME>xyz</LAST_NAME>
<FUNCTION>ADMIN</FUNCTION>
<DESIGNATION>ZA</DESIGNATION>
<RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
<RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
<EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
<STATUS>A</STATUS>
<***>M</***>
</EmpGenRecord>
</ns:MT_Test_File>
<b>Output</b>
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Emp_No_Generation xmlns:ns0="http://namespace-EmpNumberGen">
<Statement>
<SAP_EMPGEN action="INSERT">
<access>
<APPLICANT_NO>20</APPLICANT_NO>
<FIRST_NAME>abc</FIRST_NAME>
<LAST_NAME>xyz</LAST_NAME>
<FUNCTION>ADMIN</FUNCTION>
<DESIGNATION>ZA</DESIGNATION>
<RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
<RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
<EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
<STATUS>A</STATUS>
<***>M</***>
</access>
</SAP_EMPGEN>
</Statement>
</ns0:MT_Emp_No_Generation>
This is a bit urgent.
Pls help
Regards
Neetu -
How to view more than one file at a time in CS4?
With OS 10.5, and a brand new CS4 Photoshop, I can open many Photoshop files at a time, but can only view one at a time. Must choose one at a time from the "tab". I need to have more than one picture open and showing at a time to work on them. How can I do that? What have I missed? Who can help? Thanks!
"Here's the smart way for all of you on macs. Set up Exposé and a keystroke for 'Application windows'. Then with the press of a single key you can visualize, and swap between documents very easily. By I single keystroke I mean something like Right Control.
Tabbed documents have hardly any genuine advantages for mac users, yet another example of interface decisions in the stupid direction."
This is what I've been saying since I first saw the tabbed view in the new CS4. On the Mac, tabbed view is a big step backwards as it actually breaks the superior Expose' method of viewing multiple windows and also switching among them. I would also add that Control/Tab for non-tabbed windows is actually slightly faster than when they are tabbed. So for the mac, I only needed a minute to decide that the tabbed view was merely change for the sake of change. There are also operations that I do where I have to recreate a piece of art to match an existing piece. In those situations I always have the original right next to the the new image. Tabbed view destroys this as well. So I don't use it.
For the PC, tabbed views is possibly a tiny step forward, but it's such a small step that I'm not sure if I prefer to use tabs, or have that small amount of screen space that the tabs use. There was no previously existing "good" method of viewing and moving among multiple windows of a single application on the PC and therefore, tabs might be a small improvement. Unfortunately though it does seem that in order to bring us tabbed views in CS4, Adobe had to slightly 'break' the regular floating windows view. On the PC the documents will actually float above the toolbars, palettes,etc making it very difficult to use if not impossible. So, if you don't like using tabs, then you are really gonna suffer with non-tabbed view or suffer with the tabbed view. On the Mac, it's the opposite problem. Documents actually float up and underneath the top toolbar, covering the "close, maximize, minimize" buttons. Generally I would say that Adobe has created a mess when the best solution was obvious. Adobe should have copied the expose' method for it's CS4 suite. Hopefully they will have enough feedback with CS4 to see the light and change it for CS5. I see that Microsoft has mouse software that has already done just that on the PC, and there are a handful of independent efforts attempting to come up with something like expose' but generally with far less elegant and less "perfect" results. -
Insert more than one record in a transaction is costly or insert big record
Hi,
I am using Oracle 10g on linux 64 bit
Could anybody tell me that currently my log tables in oracle has 22 columns out of 22, 20 belongs to rate from different lenders like
uuid,app id,lender1,lender2,lender3 .............,lender20
1,123,lender1_rate,lender2_rate,lender3_rate..............
In order to make it more readable and in order to include new lender dynamically we are changing this table to row wise so that we do not need to include new lender column in table
uuid,app,lender
1,123,lender1_rate
1,123,lender2_rate
1,123,lender3_rate
1,123,lender20_rate
but it will create instead of one record, 20 records for each app in a transaction.
Is it costly for insert. If it is then what should be the way.Hi,
It could be slightly costly to insert.
But it makes my design more flexible and my queries less costly and flexible.
I would use something like this as my columns.
uuid, app, lender_code, lender_rate
Regards
Anurag.
Maybe you are looking for
-
How can i get my printer Hp OfficeJet G85 to work with my Macbook?
I am using a macbook pro software OS X Version 10.8.5 i connect my printer via USB and it pops up but everytime i go and want to print something out it doesnt want to.
-
I have Elements 10 and a Nikon D7100. PSE10 CR 6.7 does not support the 7100 NEF. How can I get the updates to do this?
-
I have a version of cs6 which i can not register in mij account. How can i do that.
Two years ago i bought a version of cs6. I never succeeded to register my copy on adobe.com. Now i want to upgrade it to cc and get my discount by using my, already bought, version of cs6. But i can not get the discount because i didn't register it t
-
I just want to make sure that a Macbook Pro 15" can support 8GB ram. I would like to have that but for some reason it just seems like a little too much. I know I wont use all 8gb at once but its just nice to have just in case.
-
Can I format HDD and reinstall Windows 7 on Qosmio F60 without CD
I think my hard drive is failing on my Quosmio F60 so I want to reformat the hard drive to see if that will fix it. But I don't have the original packaging and information with me at the moment so I'm not sure if it came with a windows 7 CD or not. E