Hey Guys.
I try to insert a record in my table, have a simple program.
I describe the step by step
1.-The user completes the form(Datawindow freeform)
2.-I run update() for the first time
the program runs and fails, I call rollback in the program.
3.-The user makes the corrections
4.I run update() a second time
the program runs and after the dw.update() method, it fails and shows "Row Changed between retrieve and update"
The table has no records, the test is performed by only one user in the system.
WHERE clause for update/delete: key Columns
/*********
user event of window ue_save()
IF dw_mant.accepttext( ) <> 1 THEN RETURN
IF dw_mant.event ue_valida() = -1 THEN RETURN
IF dw_mant.Update() = -1 THEN
ROLLBACK using sqlca;
RETURN
END IF
INSERT STATUS (ID, STATE) VALUES (:al_id, :as_state);
IF SQLCA.SQLCODE<>0 THEN
ROLLBACK using sqlca;
MESSAGEBOX("","ERROR" + STRING(sqlca.SQLDBCode)+' ' + sqlca.SQLErrText)
RETURN
END IF
COMMIT;
/**********
Please help me.
DBMS type & version : Oracle Database 11g Release 11.2.0.4.0 - 64bit
PB version & build : Appeon PowerBuilder Cloud Edition . Version 2017 R2 Build 1756
DB Client software used to connect to your DBMS. : Release 11.1.0.6.0 32bits
Table Schema definition (ie: as per the DB Painter) :
// Profile TESTING_DEV
SQLCA.DBMS = "O10 Oracle10g (10.1.0)"
SQLCA.LogPass = <******>
SQLCA.ServerName = "TESTING"
SQLCA.LogId = "SIGLOG"
SQLCA.AutoCommit = False
SQLCA.DBParm = "PBCatalogOwner='SIGLOG',DecimalSeparator=',',DisableBind=1"
DWO source (update properties) : Key Columns
List of any Triggers on the Table : nothing
Thanks Cris
Thank you for that information. However, we would still need the full schema definition of the table and the corresponding DWO's update properties. I would suggest taking screen captures of both of these and attaching them to this thread. For the Table, I would use the DB Painter so that we can see the graphic image of the table and its definition in the lower pane.
Regards ... Chris