Forms 6i / Auto-Commit-Mode
How can i make Forms 6i to do an automatic commit after entering a value into a database-item?
null
Thank you very much!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sandeep Biswas ([email protected]):
Write a key-exit trigger with the following code:
if :system.form_status = 'CHANGED' then
commit_form;
/* if commit failure */
if :system.form_status <> 'QUERY' then
/* display error */
raise form_trigger_failure;
end if;
end if;
exit_form;<HR></BLOCKQUOTE>
null
Similar Messages
-
Medrec pointbase orace RDBMS migration (Cannot set auto-commit mode)
For proof-of-concept purposes, I'm trying to install the MEDREC application on an Oracle database. I've migrated the schema using the demo.ddl found on the base install image. However, when I update the JDBC connect string to point to the oracle rdbms, I rec'v the message below. Has anyone discovered a workaround?
After the jdbc connect string is updated to point to Oracle, I see the app server connected successfully to the database.
javax.ejb.EJBTransactionRolledbackException: EJB Exception: ; nested exception is: <openjpa-1.1.0-r422266:657916 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot set auto-commit mode when using distributed transactions
at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:794)
at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocalObject.java:486)
at weblogic.ejb.container.internal.BaseLocalObject.postInvokeTxRetry(BaseLocalObject.java:424)For proof-of-concept purposes, I'm trying to install the MEDREC application on an Oracle database. I've migrated the schema using the demo.ddl found on the base install image. However, when I update the JDBC connect string to point to the oracle rdbms, I rec'v the message below. Has anyone discovered a workaround?
After the jdbc connect string is updated to point to Oracle, I see the app server connected successfully to the database.
javax.ejb.EJBTransactionRolledbackException: EJB Exception: ; nested exception is: <openjpa-1.1.0-r422266:657916 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot set auto-commit mode when using distributed transactions
at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:794)
at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocalObject.java:486)
at weblogic.ejb.container.internal.BaseLocalObject.postInvokeTxRetry(BaseLocalObject.java:424) -
How to set a MD form in auto insert mode?
Hi,
I have a regular form navigates to a master detail form in
insert mode. How do I make the MASTER_ACTION show up
as "Insert" instead of "None"? If I call the Master detail form
in update mode, it will show up as "Update" in the MASTER_ACTION.
Any ideas are highly appreciated.
Thanks;
Kelly.I think somebody has asked the same questions earlier but I cannot find the link to that message. Please can anyone help me ?
How to open a form in Insert mode from url link ?
Mainak -
BUG: Red Eye Removal on JPGs + Auto commit to XMP
There seems to be a bug in 1.3.1 when using the Red Eye Removal tool on JPGs and auto commit metadata to file option is selected:
Can anyone confirm?
This is what I've written to Adobe in a bug report:
******BUG******
Concise problem statement:
When using "Red Eye Removal Tool" on jpgs and in File->Catalog Settings->Metadata the option "Automatically write changes into XMP" is selected this will end up in a loop reading and writing metadata. The picture is always in status: "checking metadata". "Metadata Date" of file is changing from time to time because Lightroom is always saving metadata to file (modified date of the jpg file itself also changes, so something is written to file).
Steps to reproduce bug:
1. in File->Catalog Settings->Metadata check option "Automatically write changes into XMP"
2. select a JPG picture and go to Develop Module
3. use the Red Eye Removal Tool
Results:
Endless loop by Lightroom trying to save this change into Metadata of JPG file
Expected results:
Either it is not possible to store this change in metadata: then don't touch the file.
Or it is possible, then this needs to be fixed so it is written/read correctly from file.The red eye tool works by selecting the whole eye not just the pupil. If it still does not work try lightening or darkening the image to gaiain some more colour. If that does not work you can clone form one of the eyes that has worked.
Hope this helps you out......... -
I wrote an insert statement in a procedure and calling it by insert-statement in the programming unit. The problem is I want to show on the same form once the data is inserted, but due to some problem exception is comming. so can any one suggest how to auto commit once the data is inserted in the procedure
thanks in advance.am getting the error no data found trigger failure exception.
i have a form, the trigger in that calls an insert procedure where i insert the values to data and again in the same trigger i pull the data from the table the inserted values in order to display in the same form where i took the input values.
so my problem occurs after inserting, its not fetching the values from the data and it causes the no data found exception
so that is the reason why i want to implement the commit and where to implement that.
thanks in advance -
How do I set form automatically in query mode
Hi !
I have to pass value of one field as parameter from one form to
another form and then execute the query on the next form based
on the passed value of the parameter. (all this should happen as
soon as I press one button on the first form).
My problem is that unless I put the second form in the enter
query mode before accepting the value of the field, whatever
value I pass on from the first form will not be of any use.
How do I set the mode of the form to query mode. Since
system.mode is the read only variable and no value can be
assigned to it, so how can I handle this situation ?
Thanks in advance,
Shobhit
nullHi Shobhit,
Try ENTER_QUERY command in the PRE-FORM trigger of second form.
EXECUTE_QUERY in WHEN-NEW-FORM-INSTANCE and set the parameter
values to the respective fields in PRE-QUERY trigger.
Lalit
Shobhit Kumar (guest) wrote:
: Hi Steve !
: Thanks for the answer. but I want a bit different
functionality.
: I have already tried using execute-query (built in) in the when-
: new-form-instance and passed the value of the parameter in the
: field. But all that is happening is that the value is just
: sitting in the field and query is not getting executed
: automatically. I am using forms 5.0 and to enter a query we
need
: to change the mode of the form in the query mode (by clicking
: the enter->query button) and then enter the values in the
fields
: that would be used to build the query and the as soon as I say
: execute query it executes the query and displays the results.
: What I want is that as soon as I press a button in a form,
value
: of one field should go to another field in a second form and
: then the query should get executed automatically in the second
: form and the results should be displayed in that form.
: Any suggestions ?
: Regards,
: Shobhit
: Steve (guest) wrote:
: : You might want to try placing the builtin EXECUTE_QUERY
: : in the WHEN-NEW-FORM-INSTANCE trigger to auto query the form.
: You
: : may also want to use the SET_BLOCK_PROPERTY(DEFAULT_WHERE,
: : '.......'); to restrict queried records or set :block.item
: values
: : in a PRE-QUERY Trigger.
: : Shobhit Kumar (guest) wrote:
: : : Hi !
: : : I have to pass value of one field as parameter from one
form
: to
: : : another form and then execute the query on the next form
: based
: : : on the passed value of the parameter. (all this should
: happen
: : as
: : : soon as I press one button on the first form).
: : : My problem is that unless I put the second form in the
enter
: : : query mode before accepting the value of the field,
whatever
: : : value I pass on from the first form will not be of any use.
: : : How do I set the mode of the form to query mode. Since
: : : system.mode is the read only variable and no value can be
: : : assigned to it, so how can I handle this situation ?
: : : Thanks in advance,
: : : Shobhit
null -
Hello,
is there a way to disable the auto commit in plsql code? In my knowledge it is setted to true using plsql code...
Thank you.
Lorenzo.Thank you for your answer. My problem is:
I have an pl/sql package building a web page using mod pl/sql and Apache.
What happened is that I don't need to explicit commit for all the DB operations (insert/update): it is automatic! If I want to handle the commit/rollback what I have to do inside my code?
Best Regards,
Lorenzo.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Ganesh Raja ([email protected]):
Hi,
There is nothing as Auto Comit in PL/SQL it is a Concept of u'r SQLPLUS.
Wht u should do is say set Autocommit off
If u need any more help get back..
Regards,
Ganesh R<HR></BLOCKQUOTE>
null -
I have developed a web serice using JDeveloper, the Web service is rapped on ORACLE DB packages.
so I use the JDeveloper wizard to create the Web service using the DB connection.
and I deployed it using ORACLE application server, when I tested the web service using Internet explorer, I found that all transactions are committed though there is no commit code in the DB packages.
How can I make the webservice disable the auto commit, Actulally I don't know if this commit is made by the application server or by the JAVA application or by Internet Explorer.Thank you for your answer. My problem is:
I have an pl/sql package building a web page using mod pl/sql and Apache.
What happened is that I don't need to explicit commit for all the DB operations (insert/update): it is automatic! If I want to handle the commit/rollback what I have to do inside my code?
Best Regards,
Lorenzo.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Ganesh Raja ([email protected]):
Hi,
There is nothing as Auto Comit in PL/SQL it is a Concept of u'r SQLPLUS.
Wht u should do is say set Autocommit off
If u need any more help get back..
Regards,
Ganesh R<HR></BLOCKQUOTE>
null -
in form builder 6i how can i do auto-commit after every insert or update
you can create triggers like WHEN-NEW-RECORD-INSTANCE and do a commit, if something changed ...
But I only very few applications, which do autocommits. Is that what your users need? -
Auto Commit in Oracle Document Capture
Hi,
I have recently installed and configured Oracle Document Capture 10g as a part of IPM installation. I have configured ODC to Scan, Index and commit to UCM 11g system. Scanning and indexing are going fine without and problem. However, I could not make the commit automatic. Please help me configure an auto-commit, so that I don't have to go to ODC every time and do a manual commit. Or is it possible to auto-commit at all ?
Thank you
RamaIn this case I think the problem is somewhere else. Normally, an indexed batch is committed immediately when you you confirm the message at the end of the last page. For that you don't even need the Commit server configured. Commit server with Indexing is used mainly in use cases, when you want to schedule committing (e.g. to a certain time). I guess the Commit Server is not activated, because the batch is not fully processed. AFAIK, recently released 11g is much better option for small batches.
I'd recommend you to try the Commit Server together with the Import/Recognition Server, which can be fully automated. Maybe this will enable you to understand what the problem with Indexing could be. -
Hi All,
I am having some trouble with the auto commit. In the sql work sheet i update a table and then disconnect. It seems to be auto commiting the changes i made.
i went in and unchecked 'Save all when deactivating or Exiting'
Do i need to turn this auto commit off somehere else?
Would it be possible to get prompted to commit when you disconnect?
Thanks
ChrisYeah. You are up to date. That bug must still exist. Hopefully someone from Oracle is monitoring the thread from OOW and can let you know the status on this. Optionally, you can open a tar (or equiv support request) directly with Oracle.
Eric -
Create an InfoPath Form to Auto Populate Data in SharePoint 2010
In Anne Stenberg's Blog from 2 Nov 2011 3:00 PM "How to Create an InfoPath Form to Auto Populate Data in SharePoint 2010" she artfully steps through how to create an InfoPath Form to Auto Populate Data. It works but... Jason, another user,
wrote whenever the form is opened again either to view or edit, it displays the current users information instead of the value of the person who completed the form in the first place.
Anne's response was "Hi Jason - I had forgotten I had that problem, too. Change the Form Load rule's condition to
DisplayName is blank and that should work."
My problem is I can't find anything other than AccountName in "Select a Field or Group" [GetUserProfileByName (Secondary)] to use in the Condition statement that will correct the problem.
Any help will be very appreciated.
Thanks,
JoeHi Joe,
I recommend to add one more condition in Form Load to make the form not be populated with current user’s information (You can change Title to another column which should not be blank when users create a new item).
Best regards,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
ADF view : auto commit delete operation
I have created a ADF table with add and delete operation. When I perform delete operation it is not committing automatically.
Can you please suggest the way to auto commit the delete operation.
Thanks,
KiranUser,
please always tell us your jdev version as the solution might depend on it.
There is no auto commit in ADF. You can program it so that after an add or delete the data gets committed but there is nothing done automatically.
if you use a bounded task flow you can drag the operation from the data control onto the task flow and navigate to it after you have done the add or delete operation.
Timo -
Hi All,
OracleXMLSave class in the Oracle XDK is being used to load XML data into an 8170 database. The Java code is running in IBM WebSphere with container-managed transactions. When JTA is enabled with the Merant JDBC driver for Oracle, we get the following error when the XML is loaded:
oracle.xml.sql.OracleXMLSQLException: Cannot enable auto commit within JTS
transaction
at java.lang.Throwable.fillInStackTrace(Native Method)
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2213)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(Compiled Code)
This suggests the OracleXMLSave class is not aware of the fact that it is now operating in a JTS transaction where control is managed elsewhere. i.e. should also not attempt to commit or rollback, as this is the responsibility of the container.
Is there a property which needs to set to prevent the above or does the XDK not work with J2EE (JTS) transactions?.
If you have any useful comments, let me know. Testing the above presents me with a number of problems so if this is easily explained , let me know.
Thanks,
MalcolmClearly , there does seem to be something a bit odd with the above stack.
<Bug:1917808> mentions OracleXMLSave in context of plsql equivalent : dbms_xmlsave . i.e dbms_xmlsave is a wrapper around OracleXMLSave class.
disabling autocommit on connection as follows should help:
conn = DriverManager.getConnection("connect string","scott","tiger");
conn.setAutoCommit(false);
to disble auto commit and see if this has an effect.
This issue might be <Bug:1497506>. If disabling autocommit does not work then it appears that it could be this issue .
Malcolm
Hi All,
OracleXMLSave class in the Oracle XDK is being used to load XML data into an 8170 database. The Java code is running in IBM WebSphere with container-managed transactions. When JTA is enabled with the Merant JDBC driver for Oracle, we get the following error when the XML is loaded:
oracle.xml.sql.OracleXMLSQLException: Cannot enable auto commit within JTS
transaction
at java.lang.Throwable.fillInStackTrace(Native Method)
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2213)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(Compiled Code)
This suggests the OracleXMLSave class is not aware of the fact that it is now operating in a JTS transaction where control is managed elsewhere. i.e. should also not attempt to commit or rollback, as this is the responsibility of the container.
Is there a property which needs to set to prevent the above or does the XDK not work with J2EE (JTS) transactions?.
If you have any useful comments, let me know. Testing the above presents me with a number of problems so if this is easily explained , let me know.
Thanks,
Malcolm -
Hello Sir,
how can i set auto commit on/off using apex in application builder, auto commit is there in sql command but not in application builder,it is possible to set auto commit using coding in apex processes or PL/SQL Block.
please help me.
Thanks in Advance,
Regards,
Jack R.Hi Varad,
Thanks for your quick reply,
I want to manually handle commit and rollback on DML.
can you explain about a stateless transaction model and span requests in apex?
Thanks & Regards,
Jack R.
Maybe you are looking for
-
How do I add a ringtone to an iPhone not synced to my iTunes?
Hey all. I have a situation at work. The story is... A couple of the managers have switched to iPhone 3gs and they're not very tech savvy. So, they asked me to create a ringtone using Garageband which is the theme song of their respective team and ma
-
Hi, I need some experts advice... I am looking to launch a beta version of my application, with updates to follow in future... my problem is that in future if I make changes to a copy of beta version then I would have to email a newer link to my user
-
Calibrating Color in Windows XP to view PDFs from a Mac
This topic could be best suited in the "Acrobat for Windows" forum but I thought I would share this in the "Acrobat for Mac" forum since other Mac-based designers may have encountered my issue. I have a customer in another city and all of their staff
-
Hi all, I have a requirement to get the last four characters in a text field using forms personalization. How to get it. Note: Its a query only form. I have tried using format mask option but it never worked. For ex: if a value is 1111111 in need to
-
IPCC Express Version 7 SQL Access
We are trying to build a web app, in ASP .net but are having problems connecting to the Sql Server instance on the IPCC Server. The error appears to be related to the fact that the SQL server is not allowing remote connections. Usually this is fixed