Try these solutions: make sure that you check "refresh after insert" and refresh after update" for the primary key column in you entity object. in the application module tab Click the Properties tab and select jbo.locking.mode. Double click the “pessimistic”value next to the property to open the field editor and type “optimistic” over the value.Press enter. if error still exist then you must set "refresh after insert" and refresh after update" as true for all attributes in the entity object another way is to execute the View Object after the commit operation to bring back updated data to ViewObject. For this we need to override the afterCommit() of ViewObject class as follows: public void afterCommit(TransactionEvent){ executeQuery(); } 5- another way to solve this error is to overide the lock() method of the EntityImpl class public void lock() {
-------------------------------------------------- Required Configuraion : By default the file transfer is disabled in webutil for a security measure. So, you have to enable File transfer configuration in webutil.cfg file. The webutil.cfg file is located in forms\server. Open The webuil.cfg file and edit the following parameters : transfer.database.enabled=FALSE Change To TRUE transfer.appsrv.enabled=FALSE Change to TRUE WebUtil_File contains APIs to manipulate files and directories on the client. These Functions Or APIs are: Copy_File : Copies a file Returns a Boolean to indicate success. Syntax : Webutil_File.Copy_File(SourceFileName in Varchar2 , Destination In Varchar2) Return Boolean Example Declare vCopied Boolean; Begin vCopied := Webutil_File.Copy_File('C:\temp\mypic.jpg','X:\destination_folder'); If vCopied = true Then Message('File copied Successfully'); Else Message('Error in Copying File'); End if; Delete_File:
Comments