Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6476
  • Last Modified:

Row Changed between retrieve and update !!

Hi every body...
I have datawindow comes from three tables ,and while update I face this problem
first time update every things ok .
if I made any changes(without resellectrow or refresh )for  second time to the datawindow field that comes from   table2 only the Error "Row Changed between retrieve and update " appears.I checked every things and I made commit after update but still this problem happend.
Please help
Thanks...
0
buty
Asked:
buty
  • 2
1 Solution
 
gajender_99Commented:
When the table has identity column, the column is marked as key-column but it is not marked as identity column in datawindow update properties:
When You insert a new column and update it succesfuly, the row is inserted, but its new identity value is not got from the database.

When You will change this row immediately an update, then update() function generates update or delete command with ".. where identity_column is null".

The identity_column has got a new value, but datawindow does not know about it. You have to mark this column as "identity" in datawindow painter update properties.

0
 
diasroshanCommented:
Hi,

after u successfully update issue a resetupdate() command...

ie.
dw_1.Update()
dw_1.ResetUpdate()

or,
dw_1.Update(True,True)  //to reset ur flags...


Hope this helps...

Cheers,
Rosh
0
 
vipulunadkatCommented:
I agree with rosh this happens when Powerbuider tries to fire SQL STATEMENT for a particular row with criteria and doesnt find any matching row in database.
0
 
diasroshanCommented:
Hi,

guess my post is the right solution for the authors query...

Cheers,
Rosh
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now