Concatenating strings to form an INSERT INTO

I am trying to build an insert statement by concatenating
strings. Basically, this is what I'm doing:
<cfset string1 = "INSERT INTO #tablename# (">
<cfset string1 = string1 & #colname#>
<cfset string1 = string1 & ") ">
<cfset string2 = "VALUES ('">
<cfset string2 = string1 & #coldata#>
<cfset string2 = string1 & "') ">
<cfquery name="insert" datasource="db">
#string1##string2#
</cfquery>
So if I exchange the <cfquery> tags for
<cfoutput> I get a valid INSERT statement:
INSERT INTO Habitat (AREA, ARTID, BIOTOP) VALUES (43, 37,
'text')
But when I have the <cfquery> tag I get this error:
Syntax error (missing operator) in query expression
'''text'''.
I have tried changing the ('#coldata#') to (''#coldata'') and
also tried ("#coldata#") and (""#coldata#"") but I get errors all
the time...
So. How do I do this?

quote:
Originally posted by:
Newsgroup User
To build the form - even dynamically - you need to know what
you're
building, so you have that information at the time you're
adding your form
fields. You know the order the fields are displayed, the data
types and
business rules (you say you're validating the values), and
the input
controls used to capture the data.
Ditto you *must* know the structure of the table you're
storing the data
in
Hehe, looks like someone got a bit curious. ;-)
I do know a few things. I have a base table that contains a
column with the table-names of all tables which are part of the
application. Whenever a new table is created, it is added to this
list so it can be loaded with all the others.
I have a form that loads tables with their structures from
the database, and lets the user change both column names,
datatypes, table names, whatever... Assuming of course that the
existing data in the table doesn't conflict with the proposed
change. All form elements are given names from table-names or
column-names and datatype from the database stored alongside.
Tricky thing was to make sure the "insert into" gets the right
columns and values for that table since the form items are thrown
out in any order and multiple tables are treated in the same form.
But now I got it all figured out. :-)

Similar Messages

  • Adding Form for insert into Ext Js Layout

    Hi all,
    How to adding form for insert record into EMP table
    +[http://apex.oracle.com/pls/apex/f?p=43040:7|INSERT EMP]+
    into Ext JS layout with one Array Grid report from EMP ?
    +[http://apex.oracle.com/pls/apex/f?p=43040:5|ExtJS layout EMP report]+
    (this is extend threat from
    Re: ExtJS report with JsonStore -examples? apex and extjs grid table]
    implements by munky)
    regards,
    Gordan
    Edited by: useruseruser on Aug 3, 2010 9:17 AM

    Hi Gordan
    Just for information, the link syntax doesn't work on the forum anymore, just paste the link in with no tags or brackets and it will be 'clickable'.
    Exactly what are you trying to achieve here?
    Have you had a look at these sites which may be of some use to you...
    http://oracleinsights.blogspot.com/ - Mark Lancaster
    http://application-express-blog.e-dba.com/ - e-DBA (Matt Nolan)
    http://apex-at-work.blogspot.com/ - Tobias Arnhold
    Cheers
    Ben

  • Loop over form values & insert into db

    Form
    prod_id     prod_name       prod_price    prod_status
    001         product 001     1.00          1            
    002         product 002     2.00          1      
    003         product 003     3.00          0      
    004         product 004     4.00          0      
    Form Dump
    prod_name      product 001,product 002,product 003,product 004
    FIELDNAMES     prod_id, prod_name, prod_price, prod_status
    prod_price     1.00,2.00,3.00,4.00
    prod_status    1,1,0,0
    prod_id        001,002,003
    I want to update a few fields, prod_price and prod_status. I submit these values to my update page but I'm not sure how to loop over these values and update by the prod_id. In my update page I'm using cfdump and I see the structure of the form, the fieldnames as well as the prod_id, prod_name, etc and their values.
    My question is how do I loop over these form values so I'll be able to update by each prod_id? I've played around with looping over the form collection values but no luck.

    When I do stuff like this, I append the "id" value to the end of each form field.  That enables me to ensure the other fields match up.
    When processing the form, I generally do something like this:
    <cfloop list="#form.fieldnames# index="ThisField">
    <cfif left(ThisField, 9) is "prod_name">
    <cfscript>
    ThisID = removechars(thisfield, 9);
    ThisName = form["prod_name" & ThisID];
    same for other fields
    Then do something with those variables.

  • Insert into 4 tables

    Hi
    what is the best way to insert into 4 DEPENDENT tables?
    i have tables like:
    Cat_tbl (id, name)
    sub1_tbl (id, name, idcat)
    sub2_tbl (id, name, idsub1)
    sub3_tbl (id, name, address, phone1, phone2, idsub2)
    * Is it better to build a form which insert into the 4 tables one time? or build a form for each table (in such a case how to link the id's').
    the reason i ask because i built a form to insert into the 4 tables but the form repeated the data(say the cat_tbl has only 2 records (USA, UK) and the sub1_tbl has 3 records (NY,NJ, London) and the third table has 4 records (Brooklyn, Bronx, Luton, Watford) i needed to add only to the fourth tables without repeating the Data for the first 3 tables. but also be able in the future to add to the others if needed..
    lorie

    ok
    * I managed to have this page done, but i got a little problem:
    the last foreign key (in my example it is idite_det) always get the NULL Value and i could not figure out how to fix it.
    * Anyway here is the code for the whole page if someone needs to build a similar page.. (or wait untill ... someone can have time to take a look at the code and tell how to fix this little issue !!!)
    http://twayns.150m.com/index.html
    lorie

  • Link and insert into 2 tables

    Hi Everyone,
    I am building an application that that contains information about helpdesk calls. I am using 2 tables:
    Table 1 contains tracking info- TRK_CALLS
    ID -primary key
    USER_
    ASSIGNED_TO
    PROBLEM
    SOLUTION
    STATUS
    EDIT
    Table 2 contain date and time info - TRKCALLS_TIME
    ID - primary key
    CALL_ID - same number as ID in table 1
    DATE_
    TIME
    I have taken the advice that Denes Kubicek gave another poster and created a workspace at apex.oracle.com and places my app in there for others to look at
    workspace: kjwebb
    username: [email protected]
    password: gtmuc
    application: calltracking2
    I have a report called create/edit call tracking in there that I can either Edit or create an entry into TRK_CALLS. clicking create takes me to a form, after info is entered I have a create button that assigns the PK and inserts info into TRK_CALLS. I then have to click Edit Call Time button to input info on a form that inserts into TRKCALLS_TIME table. I would like to link these tables somehow so that when I go to the (Edit Call Time) form the Call ID is populated with the PK ID from the TRK_CALLS table.
    It would be easier to insert this info all in one page but I worked on that for a long time before giving up because I could not get anything to insert into the tables so I have taken this route.
    The basic desired outcome is to tie the tables with a PK, ID in table 1 and CALL_ID in table 2. So that they correspond and displayed on the report page.
    Please help in any way you can and make changes to my app.
    I would not be asking for help unless I have reached the ends of my apex knowledge.
    Thanks and please let me know if there are any questions,
    Kirk

    I can imagine it is pretty obscure when your knowledge of PL/SQL is not (yet) so big.
    The statement I wrote ar meant exactly for your situation.
    OK, here we go:
    First you have created a view in the Object Browser. Suppose it is called trkcalls_view .
    Then you go to SQL Workshop > SQL Commands.
    You cut the next statement and paste it in the upper white part of the screen, just under the autocommit checkbox. Replace the bold sequence references by the real name of the sequences that are used to populate the ID's of the two tables.
    You say Run and the trigger is created.
    A trigger on the view is created. Creation of such a trigger is not possible in the Object Browser, so I understand your confusion. This triggers performs when an insert in the view is performed. As you might see in the code, it creates seperate insert statements for both tables.
    CREATE OR REPLACE TRIGGER bi_trkcalls_view
    INSTEAD OF UPDATE ON trkcalls_view
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    v_id number;
    bv_id2 number;
    BEGIN
    select sequence1.nextval into v_id from dual;
    select sequence2.nextval into v_id2 from dual;
    INSERT INTO TRK_CALLS
    ( ID
    , USER_ASSIGNED_TO
    , PROBLEM
    , SOLUTION
    , STATUS
    , EDIT
    VALUES
    ( v_id
    , :new.user_assigned_to
    , :new.problem
    , :new.solution
    , :new.status
    , :new.edit
    insert into TRKCALLS_TIME
    ( id
    , call_id
    , date_time
    values
    ( v_id2
    , v_id
    , :new.date_time
    end;
    END ;good luck,
    DickDral

  • How to insert into SQL server table form oracle forms

    I created a form with oracle as my database. But there one trigger where I need to insert the data into a sql server table.
    Is this possible. If so can any help me out.
    Thanks in advance.
    Asha

    Hi,
    You can insert into sql server database using the following steps
    Note: Check wether you are using Forms 32 bit drivers. If not the Odbc data source will not work.
    step 1: Create ODBC data source for SQL server(one time creation);
    step 2: Logout from Oracle and login to SQL server giving the user name,password and host string as odbc:<odbc datasource name>;
    step 3: use EXEC SQL statement to insert the values into the SQL server and then logout and login again to your oracle database.
    Second Method.
    Check the sql server documentation to insert the values using command line parameters. Then you can call the host command to execute this.
    Third Method.
    Write a VB exe to enter the values in the sql server making two connections one to oracle another to SQL server and then getting values from Oracle and putting in the SQL server database. You can call this exe using the Host command.
    Hope this will help You.
    Regards
    Gaurav Thakur

  • Insert into a clob field in a procedure based form

    Hi,
    I have a table with a clob field. I wrote a procedure to insert into this table. Then I built a form based on this procedure. Here is my code:
    drop table clob_test;
    create table clob_test(id NUMBER, note CLOB);
    insert into clob_test values(10,empty_clob());
    Create or Replace PROCEDURE PROJECTS.SET_CLOB
    ( p_id IN CLOB_TEST.id%TYPE,
    p_note IN VARCHAR2 default null)
    as
    v_loc CLOB;
    v_amt binary_integer;
    v_pos integer :=1;
    v_clob varchar2(32000);
    Begin
    insert into clob_test values(p_id,empty_clob());
    v_clob := p_note;
    v_amt := LENGTH(v_clob);
    select note into v_loc from clob_test where id = p_id;
    DBMS_LOB.WRITE(v_loc,v_amt,v_pos,v_clob);
    End;
    When I try to insert into note field more than 4000 charaters. I got this error:
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-16016)
    Why this happens? I know portal form doesn't support clob, but this procedure deal directly with database. Can anyone from Oracle give me help? Thanks in advance!

    I use a dynamic page instead of a form on the procedure. It's working.
    Apparently Oracle is not supporting a varchar2 more than 4000 in any form format, even using textarea for p_note.

  • Inserting text form a textfile into a JtextArea

    Hi,
    Im trying to insert text form a textfile into a JtextArea ex the textFile is called Words.txt
    JTextArea ta  = new JTextArea();
    ta.insert("Words.txt", 0);what im getting in the textarea is Words.txt and not the text in it.
    So what shall i do to place the text in the textarea??
    Matt

    Shall i pass the the name of the file ??Not sure where you would get that idea as a String is, well, a String and NOT a Reader.
    Did you read the javadoc for Reader? Well, luckily I did and one type of Reader is a FileReader, which, amazingly enough, reads characters from a file. So, when you give the JTextArea (a type of JTextComponent) the Reader, it will read characters until its done, inserting them into its Document. Putting this all together, you get:
    // yes, finally the string you pass refers to a file name
    textArea.read(new FileReader("Words.text"),null);

  • Php form field inserts return empty string

    hello -
    i've created a form that has multiple inserts. it inserts the data fine if i manually parse the data to it but when i use the form to test the inserts it errors out.
    i've used echo $_post variable and the variable is their. but its not being inserted into the database.
    it says that the string cannot be null?
    where do i go from here for debugging?
    thanks, in advance for your help!
    theo werntz ii

    I've tried entering data but it doesn't insert i've change the column type to longblob from varchar and it still doesnt insert.
    here is my code: ignore the numbers and line ending with $
      1 <?php require_once('Connections/upics.php'); ?>$
      2 <?php$
      3 if (!function_exists("GetSQLValueString")) {$
      4 function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") $
      5 {$
      6   if (PHP_VERSION < 6) {$
      7     $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;$
      8   }$
      9 $
    10   $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);$
    11 $
    12   switch ($theType) {$
    13     case "text":$
    14       $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";$
    15       break;    $
    16     case "long":$
    17     case "int":$
    18       $theValue = ($theValue != "") ? intval($theValue) : "NULL";$
    19       break;$
    20     case "double":$
    21       $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";$
    22       break;$
    23     case "date":$
    24       $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";$
    25       break;$
    26     case "defined":$
    27       $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;$
    28       break;$
    29   }$
    30   return $theValue;$
    31 }$
    32 }$
    33 $
    34 $
    35 $uname="guest";$
    36 $uname_id = '1' ;$
    37 $pt="pictures";$
    38 $picPath="pt/img_0.gif"; $
    39 $picSize="1024";$
    40 $
    41 $editFormAction = $_SERVER['PHP_SELF'];$
    42 if (isset($_SERVER['QUERY_STRING'])) {$
    43   $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);$
    44 }$
    45 $
    46 if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {$
    47 $
    48 $insertSQL_0 = sprintf("INSERT INTO album (album_id, album_nm, album_dt, album_pt) VALUES ( %s, %s, curdate(), '$pt')",$
    49                        GetSQLValueString($_POST['album_id'], "int"),$
    50                        GetSQLValueString($_POST['album_nm'], "text"),$
    51                        GetSQLValueString($_POST['album_dt'], "date"),$
    52                        GetSQLValueString($_POST['album_pt'], "text"));$
    53 $
    54 $insertSQL_1 = sprintf("insert into album_has_user (album_album_id, user_user_id, user_admin_id) values (last_insert_id(), '$uname_id', '$uname_id')",$
    55 GetSQLValueString($_POST['album_has_user'], "int"),$
    56 GetSQLValueString($_POST['user_user_id'], "int"),$
    57 GetSQLValueString($_POST['user_admin_id'], "int"),$
    58 $
    59 $insertSQL_2 = sprintf("insert into title (title_id, title_title, title_dt, album_album_id, title_memo) values (last_insert_id(), %s, curdate(), last_ins    ert_id(), %s)",$
    60 GetSQLValueString($_POST['title_id'], "int"),$
    61 GetSQLValueString($_POST['title_title'], "text"),$
    62 GetSQLValueString($_POST['title_dt'], "date"),$
    63 GetSQLValueString($_POST['album_album_id'], "int"),$
    64 GetSQLValueString($_POST['title_memo'], "text"));$
    65 $
    66 $
    67 $insertSQL_3 = sprintf("insert into picture (picture_id, picture_dp, picture_sz, picture_df, title_title_id) values  (last_insert_id(), '$picPath', '$pic    Size', 'N', last_insert_id())", $
    68 GetSQLValueString($_POST['picture_id'], "int"),$
    69 GetSQLValueString($_POST['picture_dp'], "text"),$
    70 GetSQLValueString($_POST['picture_sz'], "text"),$
    71 GetSQLValueString($_POST['picture_df'], "text"),$
    72 GetSQLValueString($_POST['title_title_id'], "int"));$
    73 $
    74 echo $_POST['title_title'];
    75 $
    76 //insert users album if null$
    77   mysql_select_db($database_upics, $upics);$
    78   $Result1 = mysql_query($insertSQL_0, $upics) or die(mysql_error());$
    79 $
    80 //insert users many data$
    81   mysql_select_db($database_upics, $upics);$
    82   $Result2 = mysql_query($insertSQL_1, $upics) or die(mysql_error());$
    83   $
    84 //insert users title and comments  $
    85   mysql_select_db($database_upics, $upics);$
    86   $Result3 = mysql_query($insertSQL_2, $upics) or die(mysql_error());$
    87   $
    88 //insert users picuter path$
    89   mysql_select_db($database_upics, $upics);$
    90   $Result4 = mysql_query($insertSQL_3, $upics) or die(mysql_error());  $
    91 $
    92   $insertGoTo = "picture_edit.php";$
    93   if (isset($_SERVER['QUERY_STRING'])) {$
    94     $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";$
    95     $insertGoTo .= $_SERVER['QUERY_STRING'];$
    96   }$
    97   header(sprintf("Location: %s", $insertGoTo));$
    98 }$
    99 ?>$
    100 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">$
    101 <html xmlns="http://www.w3.org/1999/xhtml">$
    102 <head>$
    103 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />$
    104 <title>Untitled Document</title>$
    105 </head>$
    106 $
    107 <body>$
    108 <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">$
    109   <table align="center">$
    110     <tr valign="baseline">$
    111       <td nowrap="nowrap" align="right">Album Name:</td>$
    112       <td><input type="text" name="album_nm"  id="album_nm" value="default" size="32" /></td>$
    113     </tr>$
    114     <tr valign="baseline">$
    115     <td nowrap="nowrap" align="center">Title:</td>$
    116     <td><input name="title_title" id="title_title" type="text" value="" size="32" /></td>$
    117     </tr>$
    118     <tr valign="baseline">$
    119     <td nowrap="nowrap" align="center">Date:</td>$
    120     <td><input name="title_dt" id="title_dt" type="text" value="" size="32" /></td>$
    121     </tr>$
    122     <tr valign="baseline">$
    123     <td nowrap="nowrap" align="center">Comments:</td>$
    124     <td><textarea name="title_memo" cols="32" id="title_memo"></textarea></td>$
    125     </tr>$
    126     <tr valign="baseline">$
    127       <td nowrap="nowrap" align="right"> </td>$
    128       <td><input type="submit" value="Insert record" /></td>$
    129     </tr>$
    130   </table>$
    131   <input type="hidden" name="album_id" value="" />$
    132   <input type="hidden" name="album_dt" value="" />$
    133   <input type="hidden" name="album_pt" value="" />$
    134   <input type="hidden" name="MM_insert" value="form1" />$
    135 </form>$
    136 <p> </p>$
    137 </body>$
    138 </html>$
    this is echo:    this is the error:
    default           Column 'title' cannot be null
    thanks in advance for you help

  • How can I insert into a table other than the default table in a form

    Hi,
    I want to insert into a table with some fields value of a form of another table. I have written insert code On successful submission of that form, but after submit it gives the following error
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
    My code is like this
    declare
    l_trn_id number;
    l_provider_role varchar2(3);
    l_provider_id varchar2(10);
    begin
    l_trn_id := p_session.get_value_as_number(p_block_name=>'DEFAULT',p_attribute_name=>'A_TRANSACTION_ID');
    l_provider_id := p_session.get_value_as_varchar2(p_block_name=>'DEFAULT',p_attribute_name=>'A_PROVIDER1');
    l_PROVIDER_ROLE := p_session.get_value_as_varchar2(p_block_name=>'DEFAULT',p_attribute_name=>'A_PROVIDER_ROLE1');
    if (l_provider_role is not null) and (l_provider_id is not null) then
    insert into service_provider_trans_records(service_provider_id,transaction_id,role_type_id)
    values(l_provider_id, l_trn_id, l_provider_role);
    commit;
    end if;
    end;
    Where 'PROVIDER1' and 'PROVIDER_ROLE1' are not table fields.
    How can do that or why this error comes ? Any idea?
    Thanks
    Sumita

    Hi,
    When do you get this error? Is it while running or while creating the form.
    Here is a sample code which inserts a non-database column dummy into a table called dummy. This is done in successful procedure.
    declare
    l_dummy varchar2(1000);
    begin
    l_dummy := p_session.get_value_as_varchar2(p_block_name=>'DEFAULT',
    p_attribute_name=>'A_DUMMY');
    insert into sjayaram903_1g.dummy values(l_dummy);commit;
    end;
    Please check in your case if the size of the local variable is enough to hold the values being returned.
    Thanks,
    Sharmila

  • A problem with inserting into DB hebrew strings

    Hi,
    I am working with a 8.1.7 DB version, and use thin driver.
    I have my DB Charest configured to iso 8859P8 (which is visual Hebrew)
    I have no problem in making a connection and retrieving strings, using SELECT * FROM ..
    and then use the ResultSet.getString(String columnName) method .
    I also have no problem in inserting the Hebrew characters , and retrieving them back ( I represent them in a servlet ),
    The only problem I do have, is when I try to insert into DB a row in the following manner
    INSERT into table_name values( Hebrew_String_value1, Hebrew_String_value2, Hebrew_String_value3, Hebrew_String_value4)
    the insertion works fine , but somehow the insertion misplaces the strings order and actually the insertion is in opposite order :
    Hebrew_String_value4, Hebrew_String_value3, Hebrew_String_value2, Hebrew_String_value1.
    If I use the same insert with English Strings , there is no problem.
    does any one have the solution how I insert the strings in the right order ?
    one solution I have is to insert only one column and then update the table for each column , but then , instead of one execute() action , I have to make ,
    1 execute() + 9 executeUpdate() for a 10 column table

    Can you try specify the column order in your INSERT statement, i.e.
    INSERT INTO mytable( column1_name,
                         column2_name,
                         column3_name,
                         column4_name )
                 VALUES( column1_string,
                         column2_string,
                         column3_string,
                         column4_string)My wild guess, though I can't understand why at the moment, is that there may be a problem because Hebrew is read from right to left, that may be causing a problem.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How many elements can I insert into a form?

    When creating my form I received a notice that I had reached the maximum number of elements for my form!  I was near the end stages of my design, Ouch! 
    What can I do?  Is it possible to cut and past sections of my form to create a new form(s) and link it all together?

    I am limited to the amount of check box elements I can insert into a form by Adobe Forms Central.
    I would like to insert another 200-250 more check box elements to complete my form. 
    Will upgrading to the next package (Unlimited Forms) help me in completing this task or should I look for another solution? 
    Any help and suggestions would be greatly appreciated.
    lpqn wrote:
    When creating my form I received a notice that I had reached the maximum number of elements for my form!  I was near the end stages of my design, Ouch! 
    What can I do?  Is it possible to cut and past sections of my form to create a new form(s) and link it all together?

  • Can I insert into a form build in FORMSCENTRAL, a Formula with the numerical data that are updated by a given formula, like in Excel?

    Can I insert into a form build in FORMSCENTRAL, a Formula with the numerical data that are updated by a given formula, like in Excel?

    Hello danna,
    please have a look there as a first step: http://helpx.adobe.com/acrobat-com/formscentral/topics.html  >>> Formula syntax for built-in functions  >>> http://helpx.adobe.com/acrobat-com/formscentral/help/formula-syntax-built-in-functions.htm l
    Hans-Günter

  • Record not inserting into the table through Forms 10g

    Hi all,
    I have created a form in 10g(10.1.2.0.2) based on just one table that has 4 columns(col1, col2, col3, col4).
    Here col1, col2 and col3 are VARCHAR2 and col4 is date and all the columns are not null columns(There are no primary and foriegn key constrains, which means duplicates are allowed).
    My form contains 2 blocks where block 1 has one text item (col1) and 3 buttons (Delete, Save, Exit).
    And block2 is a database block and has col2,col3,col4 which are in tabluar layout frame displaying 10 records.
    When the form is opened the cursor has to be in block1.col1 for querrying. Here i enter a value in col1, and then when I click on col2 in the block2, then I put execute_query in new_block_instance of block2, which displays the records.
    The block2 properties are not updatable, insertable and query is allowed.
    Everything is working good until here. But here in the block2 when I want to insert another record into the table, by navigating all the way down to the last empty record and entering the new values for col2, col3 and col4 And then Ctrl+S will display the message "*FRM-40400: Transaction complete: 1 record applied and saved.*" But actually the record is not inserted into the table.
    I also disabled the col4 by setting the Enabled property to No, since while inserting new record the date have to be populated into it and it shouldnt be changed by the user. And im populating the sysdate into the new record by setting Intial Value property to *$$DATE$$*.
    And another requirement which I could not work arround here is that, the col3 also should be populated with the username of the user while inserting.
    please help me...

    Hi Sarah,
    I do not want to update the existing record. So I kept Udate Allowed to No in property palette for the items in block2.
    Do I have to do this property at block level also?
    I'm inserting a new record here.
    Edited by: Charan on Sep 19, 2011 8:48 AM

  • Urgent! How to insert into and query video from database in forms???

    In forms 6i demos CD, There is a demo form ocxvideo.fmb,
    but it just for video in file system.
    I want to read *.avi file from file system, and insert into
    database, and query from my forms.
    I create table with long raw, with default forms wizard,
    long raw for [image] item in forms.
    I change item type to ActiveX ,and right_click mouse
    ==>[Insert object]==>Oracle Veideo control.
    still can not insert avi data into database and query from my forms.
    Please give me some advice to solve this problem?
    Thank you very much!
    Ming-An
    [email protected]

    In forms 6i demos CD, There is a demo form ocxvideo.fmb,
    but it just for video in file system.
    I want to read *.avi file from file system, and insert into
    database, and query from my forms.
    I create table with long raw, with default forms wizard,
    long raw for [image] item in forms.
    I change item type to ActiveX ,and right_click mouse
    ==>[Insert object]==>Oracle Veideo control.
    still can not insert avi data into database and query from my forms.
    Please give me some advice to solve this problem?
    Thank you very much!
    Ming-An
    [email protected]

Maybe you are looking for

  • Emails sent from device not show in "Sent Box" and "BIS" issue

    Dear All and Rim:  New to BB world, needed following help... AOL mail box had connect with "Tour" successfully, service provided by Verizon. Mails sent from device are not show in AOL "Sent Box" nor Outlook Express's "IMAP" / "POP" server's Outgoing

  • Airplay mirroring problem

    Guys! Guys! I'm fen up with it! Can not take it anymore! New airmirror future is perfect! The whole idea is correct and great! BUT there is always big BUT. I have airport extream, atv 2012, MBA i7 late 2011 with mountain lion 10.8.2. Atv plugged to a

  • ESS:  International Personal Information Iviews (ignore Molga)

    All - Interesting situation at my current client.  We're doing an upgrade to ERP 2005 from 4.6C.  In the client's initial implementation (global implementation I might add), the Implementation partner set up with the system with all employees in Coun

  • Making Adobe PDF with From Field Non-Savable

    Hello, I'm using Adobe Acrobat Professional ver 9 and have created an accessible course certificate form with a fillable field.  The user brings up the certificate, types their name in the field, and prints the certificate.  When they do this, the fo

  • Image Rollovers with css

    I'm trying to have an image where as you roll over it the border colour changes. The problem is the code works in firefox and opera but not in Internet Explorer. In Internet Explorer the hover part doesn't work at all. Thanks in advance for any help.