Solved

DML in QUERY_ONLY Form

Posted on 2010-11-23
5
498 Views
Last Modified: 2012-05-10
I know that when I call a form (e.g. using call_form) I can set the mode to QUERY_ONLY so that users cannot insert/delete/update records in called form. My question is if I issue a DML statement in a procedure e.g.  

begin
insert into table_name values (value1, value2,...);
commit;
end;

Would above DML statement insert values in to the table?

Thanks in advance!
0
Comment
Question by:McLeanIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 14

Expert Comment

by:ajexpert
ID: 34198288
Yes


It will insert the values in table if you execute the following block
begin 
insert into table_name values (value1, value2,...); 
commit; 
end;

Open in new window

0
 
LVL 48

Expert Comment

by:schwertner
ID: 34198298
i guess it wiil not work. the result will be error ...

But the best answer will give the experiment. It is so easy ...
0
 
LVL 14

Accepted Solution

by:
leoahmad earned 125 total points
ID: 34198318
no, it would not
0
 
LVL 14

Expert Comment

by:ajexpert
ID: 34198324
@schwertner:
Can you please tell why it wont work?

The author is stating
" I issue a DML statement in a procedure e.g.  "
0
 

Author Comment

by:McLeanIS
ID: 34198617
Thanks for the inputs.

ajexpert, what I mean in question is would a DML statement in a QUERY_ONLY form work? I tested it  and it doestn't work for me but it seems working for someone else I saw. That's the reason why I subbmitted a question here.

Thanks again!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wonder how to "do" object oriented programming (OOP)?
Dependencies in Software Design In software development, the idea of dependencies (http://en.wikipedia.org/wiki/Coupling_%28computer_programming%29) is an issue of some importance. This article seeks to explain what dependencies are and where they …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question