Home » Developer & Programmer » Forms » using forms_ddl to insert
using forms_ddl to insert [message #83636] Wed, 12 November 2003 11:11 Go to next message
Nina Villegas
Messages: 13
Registered: November 2003
Junior Member
On our mouse-click trigger on a button we are trying to execute an insert statement as shown below:

BEGIN
ctime := sysdate;
squote := chr(39);

ctest := 'INSERT INTO
(USERID, DATE_TIME, SCREEN) VALUES (' || squote || :GLOBAL.userid || squote || ', ' || squote || ctime || squote || ', ' || squote || 'Maintenance'|| squote || ' )';
FORMS_DDL(ctest);

IF Form_Success THEN
MESSAGE('OK');
ELSE
MESSAGE(DBMS_ERROR_TEXT);
END IF;

END;

On running this script, we get no errors but nothing gets inserted into our table.

Any help to fix this problem would be appreciated.
Re: using forms_ddl to insert [message #83638 is a reply to message #83636] Fri, 14 November 2003 00:16 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
And do you perform a commit?

MHE
Re: using forms_ddl to insert [message #83662 is a reply to message #83636] Thu, 20 November 2003 21:32 Go to previous messageGo to next message
Rengaprabhu
Messages: 18
Registered: August 2002
Junior Member
Instead of you using FORMS_DDL try to do commit or finally you can commit_form, you are trying to commit the particular procedure first, but the insert statement holds the values in buffer, no need to worry to commit at the end.
Re: using forms_ddl to insert [message #84063 is a reply to message #83636] Fri, 23 January 2004 04:15 Go to previous messageGo to next message
Anonyme
Messages: 1
Registered: January 2004
Junior Member
use forms_ddl('commit')
Re: using forms_ddl to insert [message #85940 is a reply to message #84063] Sat, 14 August 2004 01:40 Go to previous message
AHMED M.O
Messages: 1
Registered: August 2004
Junior Member
how to use insert statment at remote database using forms_ddl
Previous Topic: use of TEXT item
Next Topic: FRM-40654 Error
Goto Forum:
  


Current Time: Wed May 15 15:07:28 CDT 2024