AW: Update Problem Resolved

Rudolf Bargholz rudolf at bargholz.ch
Sun Aug 16 11:45:10 EDT 2020


Hi Das,

Would not

Do $cinst.$update($cinst) work as well, as long as your table class instance has the primary key column filled?

Regards

Rudolf Bargholz

-----Ursprüngliche Nachricht-----
Von: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Im Auftrag von Das Goravani
Gesendet: Samstag, 15. August 2020 00:55
An: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Betreff: Update Problem Resolved


US Tech Support sorted out my update problem.

It turns out that it matters that you pass a real row in the old_row space and not a name in square brackets.. 

Just calculate a row as that name and pass the row, ie:

Calculate iUpdateRow as [iOldRowName]
Do $cinst.$update(iUpdateRow)

I don’t know why this simple fix evaded me so long except to say I aint what I used to be.. age seems to be taking it’s toll on mental powers. 

I’m glad that I can Update now and I have to pass the credit to US Tech Support for figuring out my dilemma.

In the end this is so simple.. but if you never try that approach then you never hit it.. but I can’t believe it was this simple. 

Embarrassed. 


_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 


More information about the omnisdev-en mailing list