-
Smartlist is outsmarting me
Happy New Year to $all of you!
A smartlisted list often gives me headaches! When it works, it’s a fantastic concept in Omnis, but when it doesn’t, I often find it hard to troubleshoot…
In the code below (in table class ‘tanZaehlerstaende’), I iterate through all lines of tanZaehlerstaende in order to create aggregated new records in the same schema (distinguished by ‘ZS_RecordType’), using a local list ‘llAggregierteZaehlerstaende’.
In the end, it all works fine, from 1.550 Meter readings I aggregate 747 aggregate records. When I try to commit with ‘Do <b style=”font-family: inherit; font-size: inherit;”>llAggregierteZaehlerstaende.$doinserts()’ (or $dowork()), NOTHING happens! No records are created in the database, no errors thrown. As if llAggregierteZaehlerstaende was not $smartlist or $definefromsqlclass. But it is!!!
What is wrong here, and how can I troubleshoot?
Best regards
Uwe
Log in to reply.