Insert a row into the table on a button click
Hi all
I have a table called 'temp' with 4 columns such as seq, name, event, id and I have a GP with 3 text such as name, event id fields
now my question is
If I enter values in the 3 text fields on this page and a button, click on (for example create), I wanted the values of dose to get inserted into the table 'temp' and
regarding, "seq" column I HAV created a sequence for it.
so 1. How to insert values into the table by entering the values in the page
2 wat shd b made to column seq... (shd b anyth made apex pages or wil automatically get values for each input line)
pls help me...
Thanks in advance
1, it is up to you change your account to something more user-friendly than '8f4692cc-040e-48ee-b102-590cdd4303fc'.
Then, it would also be a good idea to use proper English when you ask a question here... Not broken English as "now comes to my" and "wat shd b"... More people will be willing to help you if you at least put forward in order to ask a good question...
Which version of the database are you using? APEX version?
Change the code above to this process:
DECLARE
v_seq NUMBER;
BEGIN
Select SEQUENCE_NAME. NEXTVAL INTO v_seq
Double;
INSERT INTO temp (seq, name, event, id)
VALUES (v_seq,: P1_name,: P1_event,: P1_id);
END;
This allows it to be used in older versions of Oracle that do not allow direct access to the sequence.nextval in an assignment statement.
Thank you
Tony Miller
Software LuvMuffin
Tags: Database
Similar Questions
-
How to insert a row into the table from an entity class
I use JDeveloper 11.1.2.3.0 using ADF. I would like to insert a row in Table B, when A table is inserted into the database based on a value selected by the end user. I could do in a database trigger, but I would try in the ADF. I think that the best place to do it would be in the entity based on the table A class. I could override the doDML method and search for DML_INSERT
and make the table insert B here, but I don't know the best way to achieve this. I guess I want to avoid using a SQL "insert". I'm new to ADF and it can be difficult to get
a question using the appropriate terminology. I hope this makes sense.
Hello
Check out this blog: http://andrejusb.blogspot.com/2008/02/complex-insert-in-easy-way.html
Arun-
-
Could not use DB function call to insert a row into a table OBIEE
Hello
At the prompt of the OBIEE report, I create a DB function in a variable column of the guest, so whenever I'm in the dropdown variable ob column call the function DB call.
The function call is insert a row into a table in the database. However, it seems impossible to insert the row into the table.
I have test the function in the sqlplus and it works, if the function has no problem. The problem is OBIEE failed to insert something in the datebase, it can only read from it.
Any ideas on how I could fix it?
Thank you!Hello
Use your Evaluate function and the variable correctly. In the case where u called this function evaluate in the report in a column, and he has 100 files it contains, it will call db 100 times.Kind regards
Anitha.B -
Impossible to insert xml data into the table
HII All,
I'm unable to parse the following xml file and insert them into the table.
Version of DB
======
My DB TableSQL> SELECT * 2 FROM V$VERSION; Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi PL/SQL Release 10.2.0.4.0 - Production CORE 10.2.0.4.0 Production TNS for Solaris: Version 10.2.0.4.0 - Production NLSRTL Version 10.2.0.4.0 - Production
Published by: RUSSO April 7, 2011 04:19Create table rgh_xml_storage ( user_id varchar2(4000), to_type varchar2(4000), mail_id varchar2(4000), subject varchar2(4000), sentDateTime varchar2(4000) )
Hello
Please provide all pertinent details!
Please correct my insert if statement it must be.
You have a few bad XPath.
Here's a way to unnest correctly repeated elements:SQL> select x1.user_id, 2 x1.subject, 3 x1.sentDateTime, 4 x2.to_type, 5 x2.mail_id 6 --x1.messageBody 7 from xmltable( 8 '/emailMessage' 9 passing xmltype(bfilename('TEST_DIR','email.xml'), nls_charset_id('CHAR_CS')) 10 columns user_id varchar2(4000) path 'headerInformation/sender/user/@userID', 11 subject varchar2(4000) path 'headerInformation/subject', 12 sentDateTime varchar2(4000) path 'headerInformation/sentDateTime', 13 messageBody clob path 'messageBody', 14 my_xml xmltype path 'headerInformation/recipients' 15 ) x1, 16 xmltable( 17 '/recipients/recipient' 18 passing x1.my_xml 19 columns to_type varchar2(4000) path '@type', 20 mail_id varchar2(4000) path 'user/@emailAddress' 21 ) x2 22 ; USER_ID SUBJECT SENTDATETIME TO_TYPE MAIL_ID -------------------- ------------------------------------------------ ------------------------------ --------- ------------------------------------------ RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 to [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 cc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 cc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 cc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 cc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 cc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 cc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 bcc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 bcc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 bcc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 bcc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 bcc [email protected] RC58522 Re: CAA - Schlesinger ' Arnold - LP01115771 Fri Oct 10 13:31:53 EDT 2010 bcc [email protected] 13 rows selected
-
Initialize and insert the new row into the table of the Adv
When I click on add new button line in footer table adv, I want to add some rows with primary key predefined values.
for ex: col1 = 1, 2 = col2 and col3 = sequence.nextval, the new line should be initialized by these values in the table.
I did it in my CO:
OAAdvancedTableBean tableBean = (OAAdvancedTableBean) webBean.findChildRecursive ("advQTable");
If (tableBean! = null)
{
OATableFooterBean tableFooterBean = (OATableFooterBean) tableBean.getFooter ();
If (tableFooterBean! = null)
{
OAAddTableRowBean addTableRowBean = (OAAddTableRowBean) tableFooterBean.findChildRecursive ("addTableRow1");
System.out.println ("got addtable bean line");
String incNum = (String) pageContext.getSessionValueDirect ("incNum"); PK field
String probid = (String) pageContext.getSessionValueDirect ("probid"); PK field
String qid = "55"; IM harcoding rt now, but it must be generated from the db sequence.
Aserializable serializable [] = {incNum, qid probid};
am.invokeMethod ("getNewRow", aserializable);
}
AM:
-I tried several ways to set the attributes of the current line to the values, but I'm unsuccessful.
Can anyone help me please with the code here.
Thanks in advance.Hello
Game insert rows automatically false property to add new line button.
Now when you click on the button Add a new rank then "addRows" event is triggered which you can capture controller
call a method in AM
If ("addRows". Equals (Event))
{
ap.invokeMethod ("add");
}public void add()
{
Vo1 sapeEAAddressesVOImpl = getsapeEAAddressesVO1();
Row1 line = (Row) vo1.createRow ();
VO1.insertRowAtRangeIndex(0,row1);
Row1.setAttrbute ("col1", "Yes"); first column
Row1.SetAttribute ("col1", "No"); second column
int value is getOADBTransaction () .getSequenceValue ("the sequence name");.
Row1.SetAttribute ("col3", value); third filled sequence column.
Row1.setNewRowState (Row.STATUS_INITIALIZED);
VO1.setCurrentRow (row1);}
Thank you
GerardPublished by: Gauravv on August 31, 2009 20:28
-
Insert a row into the view object based multi object
Hello
I currently have a ViewObject born of the three entity objects. Object as a single entity is updatable in this VO: the one where I want to insert a line.
In essence, I created a method in the ApplicationModuleImpl which instantiates a VOImpl of opinion when I want to insert. Then I create a line, set attributes and insert the line in the VO. The AppModule method is then called in a bean, after graduating from the information in the view.
I also want a delayed delivery: I want to be able to see the new line in connections that use this VO, but only commit to a precise moment in time.
Can someone tell me how to do this; c is there any special care, that I should have? How can I set attributes of CF? Should I prepend the name of the table when you specify the attribute?
Any help would be greatly appreciated.
Thank you
Hello
So even if the data are not validated you want to shown in the table. If the user submits the page then only it will be validated on the right?
And if he does not commit the data that the added line does not appear in the table of the next time you visit the page.
If you create a new row by calling the create statement it will create the new line and add it to the table. But you have to refresh the table (partial trigger try and if it doesn't work try to run the query in the table again.) This line however it enters the database only if you commit it will be shown in the table. However, if in the meantime, you perform a restore operation, the lines that you create will be sustained roll.
-
Insert xml files into the table
Hi all
How to create an application, which allows me to download an xml file and insert the file into a table, looking something like what makes the apex, with 'data-> data-> Data Load XML Workshop'.
I tried to create it using this link # 9170494
but when loading the file and send it (current executing the "sp") sends the error "ORA-22285: file for FILEOPEN operation or non-existent directory.
I could slightly auxiliary
concerning
This idea is troubling for me.
The XML file DOES NOT CHANGE. This is the goal. You have a DTD/XST that defines where in the XML hierarchy, a data element is and (so) how to access it. With this information, you can hardcode things.
Therefore, you should have no reason for that functionality 'map the data column in the table column"of the data loader since all mappings will be always the same.
As a simple INSERT... The SELECT statement can (and should) be used.
(use the FUSION if you update / insert data).
I copy + paste some of my code in a procedure that I use.
You will need to replace the parameter name (p_filename) with the value of appropriate link (name of item)
declare l_XML XMLType; begin /* get file from APEX WWV_FLOW_FILES */ begin select XMLType( blob_content, 1 ) -- 1 means that the file is USACII encoded. this may need to be changed. into l_XML from wwv_flow_files where name = p_filename; -- replace this with the appropriate ITEM NAME exception when no_data_found then raise_application_error( -20001, 'not in FLOW: ''' || p_filename || '''' ); end; /* you'll need to figure this one out */ INSERT INTO T (...) SELECT .. FROM XMLTable( '/' pasing l_xml columns
PATH -- repeat for each "column" you want to extract ); delete from wwv_flow_files where name=p_filename; end; -
Insert a logo into the table of contents?
is it possible to insert a logo at the top or bottom of the table of contents (in the skin editor)?
Thank you
clemency
Hello
Please, what version are you using: Captivate® 5 or Captivate 4?
If it's the CP5, open the Info button in the Table of contents dialog, there's a button where you can download a 'photo', but you can use it for images, even for a video:
-
Cannot insert into the table PS_TXN
Database: 11.2.0.1.0
WebLogic Server Version: 10.3.3.0
UNIX: HP B.11.31 U ia64
node 1 database
1 application node
1 customized application - myApplication
I get intermittent errors in the log for managedserver2 of a group of weblogic 2 managed servers. Our normal operation is managedserver1 be falling.
We have an application custom (myApplication) installed on two managed servers
It says an error intermittently when attempting to insert a row into the table PS_TXN saying that it that the table does not exist. The research I've done this table is a temporary table created by Weblogic to record the session information and the data that they are transitional.
How can he say it does not exist when it seems be weblogic who creates it?
I posted the error to the newspaper below.
oracle.jbo.PCollException: Houston-28030: could not insert row into the table PS_TXN, the collection 3 956, persistent id id 1
Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
Added keyKerberos of the server main HTTP/svc_weblogic_prod@***.***.*.***.**Key Version 3key EncryptionKey: keyType = 3 keyBytes (hex
dump) =
+ 0000: 80 1 C 64 5B 5B 3D 8F A7 +.
+ [Krb5LoginModule] has added to the subject + Krb5Principal HTTP/svc_weblogic_prod@***.***.*.***.**
Validation succeeded
oracle.jbo.PCollException: Houston-28030: could not insert row into the table PS_TXN, the collection 3 956, persistent id id 1
at oracle.jbo.PCollException.throwException(PCollException.java:36)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1920)
at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:557)
at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:680)
at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:639)
at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:465)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:291)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:264)
at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5672)
at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5543)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:372)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
at oracle.jbo.common.ampool.ApplicationPoolImpl.manageReferencingState(ApplicationPoolImpl.java:1415)
at oracle.jbo.common.ampool.ApplicationPoolImpl.finalizeResource(ApplicationPoolImpl.java:1317)
at oracle.jbo.pool.ResourcePool.removeResourceInternal(ResourcePool.java:851)
at oracle.jbo.pool.ResourcePool.setState(ResourcePool.java:1106)
at oracle.jbo.pool.ResourcePool.gc(ResourcePool.java:1534)
at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:876)
at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:881)
at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:121)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:95)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:135)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:210)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:473)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:423)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1095)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1040)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1379)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3568)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3739)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1906)
+... 21 plus +.
+ # # 0 in detail.
java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:95)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:135)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:210)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:473)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:423)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1095)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1040)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1379)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3568)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3739)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1906)
at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:557)
at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:680)
at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:639)
at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:465)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:291)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:264)
at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5672)
at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5543)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:372)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
at oracle.jbo.common.ampool.ApplicationPoolImpl.manageReferencingState(ApplicationPoolImpl.java:1415)
at oracle.jbo.common.ampool.ApplicationPoolImpl.finalizeResource(ApplicationPoolImpl.java:1317)
at oracle.jbo.pool.ResourcePool.removeResourceInternal(ResourcePool.java:851)
at oracle.jbo.pool.ResourcePool.setState(ResourcePool.java:1106)
at oracle.jbo.pool.ResourcePool.gc(ResourcePool.java:1534)
at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:876)
at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:881)
at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:121)
at java.util.TimerThread.mainLoop(Timer.java:512)
to java.util.TimerThread.run(Timer.java:462)
If someone could shed some light on this, I would be very grateful.
Thank you.Using ADF? (I thought ps_txn belonged to this framework, correct me if I'm wrong).
Some suggestions are given here: http://chrismuir.sys-con.com/node/1067419/mobile
General info on PS_TXN - http://www.oracle.com/technetwork/developer-tools/jdev/overview/bc4j-temp-tables-087270.html
-
Insert several rows in the data table table
Hi all
I have a requirement as to insert multiple rows in the table for this table data only (I need to replicate the data).
In this table, the primary key is a composite primary key with all the keys.primary foreign key and the foreign key to the Date. I need to change that date to the insertion.
INSERT
IN myschema. Fact_page_performance
(
time_sk,
Batch_ID,
delta_msec,
delta_user_msec,
error_code_sk,
content_errs,
element_count,
page_bytes,
Available,.
date_sk
)
VALUES
(SELECT time_sk,
Batch_ID,
delta_msec,
delta_user_msec,
error_code_sk,
content_errs,
element_count,
page_bytes,
Available
OF myschema. FACT_PAGE_PERFORMANCE_BACKUP
WHERE date_sk = 20090509, 20090510
);
But it gives error like missing expression.
Could someone please help me.
Thanks and greetings
Swetha.You can have either the VALUES or not SELECT the two
INSERT INTO myschema.Fact_page_performance ( time_sk , batch_id , delta_msec , delta_user_msec, error_code_sk , content_errs , element_count , page_bytes , Available , date_sk ) SELECT time_sk , batch_id , delta_msec , delta_user_msec, error_code_sk , content_errs , element_count , page_bytes , Available FROM myschema.FACT_PAGE_PERFORMANCE_BACKUP WHERE date_sk=20090509,20090510;
-
Insert XML data from the Table->; back to null
Dear Experts,
-I have table xml as below:
Example of CREATE TABLE (XML_spec XMLTYPE);
Insert in the example
Select ' < name of Message = "dataStaticInvestor" type = "IncomingMessage" >
< name of field = "batchReference" > OPENINGBATCH000000 < / field > < List name = "data" >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< / list >
< / message > ' double.
Select * example;
create table hasil1 (c1 varchar2 (500), c2 varchar2 (500), c3 varchar2 (500));
-This step I create the procedure to insert xml data into the table as the batch.
DECLARE
x XmlType;
BEGIN
Select XML_SPEC in x for example;
insert into hasil1
SELECT
p.Extract('/Record/Field/@externalReference').getstringval (C1),
p.Extract('/Record/Field/@participantID').getstringval (C2),
p.Extract('/Record/Field/@participantName').getstringval () as c3
TABLE (XMLSequence (Extract(x,'Message/List/Record'))) p;
commit;
END;
/
-when the result of select hasil1, the output is back 3 rows and 3 columns, but all data is a null *.
Best regards
SigcleYou don't explain what output you need, but I guess something like this:
SQL> insert into hasil1 (c1, c2, c3) 2 select x.c1, x.c2, x.c3 3 from example t 4 , xmltable( 5 'Message/List/Record' 6 passing t.xml_spec 7 columns c1 varchar2(500) path 'Field[@name="externalReference"]' 8 , c2 varchar2(500) path 'Field[@name="participantID"]' 9 , c3 varchar2(500) path 'Field[@name="participantName"]' 10 ) x 11 ; 3 rows inserted SQL> select * from hasil1; C1 C2 C3 ---------------------- --------- -------------------------------- 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT
-
Need help with the numbering of rows in the table
I have Setup dynamic table to add rows through the instance Manager.
Each row in the table has a button to delete this specific instance.
The problem I have is that, if a row is deleted in the middle of the table, the lines don't re-COMP.
For example, if the table contains rows numbered 1, 2, 3 & 4, and line 2 is deleted, I want
the lines to be re-numbered 1, 2, & 3. Instead, what I get is lines 1, 3 and 4.
The script I use to number the lines is:
this.rawValue=this.parent.index+1
I read in other posts that this script used in a table automatically updates the
number of lines if a line is removed.
For some reason, it does not work for me.
All of the suggestions.
Thank you!
I created a sample for you... Take a look and let me know what you want.
Paul
-
Insert into the table with restrictions
Hello
I'm trying to insert into the rows of the table to a table, but this inserts are conditioned by the other table.
The old table is:
CREATE TABLE control)
ID number 4 NOT NULL,.
FD varchar2 (10) NOT NULL,
HD varchar2 (10) NOT NULL,
Code number 4 NOT NULL,
fcod varchar2 (10) NOT NULL,
Type varchar2 (10) NOT NULL,
invoice_text varchar2 (10) NOT NULL
)
This table includes the following values:
Fd hd place ID code fcod typ invocie
So if you want to help change your original message and finish it. Otherwise, just mark the ANSWER thread.
-
How to insert image from mysql into the table using php and create the checkbox in the table?
How can I insert image from mysql into the table using php and create the checkbox for each data as a vote? Here is my code...
WELCOME
If you have saved the file name in the database, it's pretty simple.
echo '';
Is the same for the box:
echo '';
If you have saved the image file in the database, it is much more complicated. I recommend you store only the file name in the database.
-
How to insert multiple rows in a table by the user (pl/sql)
Hello
I was trying to insert several rows in a table by a user by some pl/sql, but not every time entry. :/
What is happening is that the program requires each time ask the user for the new value but the loop
1 values inserts actually four times (the loop is run four times). can any point on what I am
doing wrong or solutions will be fun ;)
what I wrote here
---------------------------------
Set serveroutput on
set verify off
declare
EmpNo number;
EmpName varchar2 (20);
Start
because loop me in 1.4
EmpNo: = & empno;
EmpName: = '& empname';
insert into values(empno,empname) of the employee;
end loop;
end;
-------------------------------
do not laugh at my code, I'm new to this oracle :D
Thank you, prospects for the future for a responseuser13371438 wrote:
Thanks for the info, looks like a nice tool will ;) try
but I really want (my problem) in pl/sqlTake a quick re-read my post above.
PL/SQL is a process running on the database server. This process cannot interact with the client computer. He can't ask for user input, and it cannot display the output to the client. Client interface tools can only do. You are eager to get feedback from a user, if you need an interface tool to do. SQL * Plus can interface and application of entry, but only as variable substition, and it does not really provide a programming construct that allows you to run a program in a loop to do. Do this using SQL * Plus you must pair it with shell/dos scripting languages, but more ideally you should use an interface appropriate as Apex.
I was wondering if it all works in pl/sql to release cached data (as fflush (stdin) in c ++)
PL/SQL does not a customer entry, so there is no sense to have something to release the cached data. You pass the values of PL/SQL code using procedures or functions with parameters.
Maybe you are looking for
-
So, I want to buy and download the 4 seasons of Lois and clark... I don't like amazon bc you can't actually download and it costs 120, so if I didn't have internet or must travel I wouldn't be able to watch... or if they are no longer supplied digita
-
I think I paid for a year of 50 GB of storage and I keey get charged every month can you check or transfer this message to the appropriate Department. For assistance Thank you
-
I would like to sendby send the content of a site html (not just the link)
HelloIn Safari, I have a html Web page (that I realized for newsletter emailing) which I click then under file > e-mail this page content and it creates the page in the body of an email in Mail. I just while you add addresses. Cannot find where in Fi
-
Satellite L755 cannot start / boot
Hello world First of all Happy New Year! For 3 months, I have a big problem. I can't boot my laptop. My passwork does not work. I don't understand why because I never changed it since I bought my laptop years ago. Could you please help me?Thks in adv
-
The upgrade to 2.0 for a wireless adapter USB Port work
Hi, I just bought a USB network adapter wireless, I was able to configure my laptop but when I plugged in my USB Port, I got a message that he needs one more USB 2.0 Port and I must improve my USB port to make it work properly, how can I upgrade my U