Ask For Forms_ddl [message #260888] |
Tue, 21 August 2007 03:36  |
oracle10g
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
Hi All
this a first one ask in this site
i hope i find the answer for my question
i need to write a update statement but the table name is variable
i used the forms_ddl statement and it is return succeded_forms is true
but the update not done
how can do it please help me asap
thank
|
|
|
|
Re: Ask For Forms_ddl [message #260904 is a reply to message #260894] |
Tue, 21 August 2007 04:21   |
oracle10g
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
thanks for ur replay
but iam read all questions and answers
but no one maches with my question
i will write the code
forms_ddl('Begin update '||:TRANS_MASTER_V.table_name||
' set RECONCIL=''Y''
where coid=:GLOBAL.G_CO_CODE
and bankid=:global.BANKID
and jvid=:TRANS_MASTER_V.jvid;');
why it cannot do update
Thanks For ur Efforts
|
|
|
|
|
|
Re: Ask For Forms_ddl [message #261199 is a reply to message #261102] |
Wed, 22 August 2007 02:30   |
oracle10g
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
thanks for ur effort with me
this code i was write it in when buttem Pressed tregier
forms_ddl('Begin update '||:TRANS_MASTER_V.table_name||
' set RECONCIL=''Y''
where coid=:GLOBAL.G_CO_CODE
and bankid=:global.BANKID
and jvid=:TRANS_MASTER_V.jvid; End ;');
forms_ddl('Commit');
IF NOT form_success THEN
message('Not Commit');
else
message('Commit Succeeded! ');
end if;
Upd-mod: What part of 'use code tags' is so hard!!
[Updated on: Thu, 23 August 2007 01:49] by Moderator Report message to a moderator
|
|
|
Re: Ask For Forms_ddl [message #261590 is a reply to message #261199] |
Thu, 23 August 2007 01:52  |
 |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Did you split the 'set' line of the 'forms_ddl' line yourself or is the code you supplied the 'actual' code that you have in your form?
David
|
|
|