smartlist dowork

Martin Obongita martin.obongita at yahoo.com
Mon Apr 11 12:08:04 UTC 2022


Hi All
I am trying to update a smartlist with the following methods:
btnUpdate: $event        
Do iOrgGeneralPrefList.$dowork() Returns #F            

taSuperTable: $dowork        
Do $cinst.$first()        

While $cinst.$line>0        

Switch $cinst.$status        

Case kRowDeleted        

Do $cinst.$delete()        

Case kRowInserted,kRowUpdated        

Do $cinst.$save()        

End Switch        

Do $cinst.$next()        

End While        

Quit method #F        

taSuperTable: $save        
If $cinst.[iPrimaryKeyName]>0 ## already primary key value            

Do $cinst.$update($cinst) Returns #F        

Else        

Do $cinst.$insert() Returns #F        

End If        

The flag in the btnUpdate $event returns kTrue.        But the changes in the smartlist are not updating the table in the database.            
Where in my code am I going off the rails?
As always, I appreciate all your kind helps.
Martin.


More information about the omnisdev-en mailing list