Sv: Smartlist problem

Daniel Sananes daniel.s at
Tue Feb 14 07:33:06 UTC 2023

I have been reading, and using in tests, the $smartlist property.
See chapter 8, table instances/table instance notation, in the online documentation.
I am all to new for answering this but I thought I give my 5 rupies just for the fun of it.

I think that because your list is a smartlist the history-lists functions is not used when you use $update instead of $doupdate() or $doupdates().
Docs  says that $update only works on rows?
So I guess Omnis is treating your line 5 as a row and therefore can update it. 2 times it seems.
So I guess you should send line 3 and line 5 to $update(), one after the other, after having put the 2 different lines into a row.
Well, that is all I can contribute.


-----Ursprungligt meddelande-----
Från: omnisdev-en <omnisdev-en-bounces at> För Mike Rowan
Skickat: den 14 februari 2023 00:00
Till: OmnisDev List - English <omnisdev-en at>
Ämne: Smartlist problem

Running OS 10.22 v31896 on Mac M1 Monteray

I have a complex grid with two columns and five rows displaying a list built using $definefromsqlclass('tmytable') and then assigned

If I edit a value in, say, two lines and then $dowork, only the most recent line edited is updated. For example if I edit line 3 and then line 5, only line 5 is updated.

In my table class I have overridden $doupdate to call method $update. I have stepped through $update and see that it is called the correct number of times, but for the same row, line 5 in the above example!

I have checked HistoryList.kStatus and it is always correct.

I am mystified. Anyone know what could be causing this? I have no experience with multiline smartlists.
Manage your list subscriptions at Start a new message -> mailto:omnisdev-en at
VARNING: Det här e-postmeddelandet kommer från en extern avsändare. KLICKA INTE på länkar eller bilagor om du inte känner igen avsändaren och vet att innehållet är säkert.

More information about the omnisdev-en mailing list