Announcements
No record found.
MyTable MyTable; SourceTable sourceTable; RecordInsertList myList; myList = new RecordInsertList(tableNum(MyTable)); while select sourceTable where ... { MyTable.clear(); MyTable.Field1 = sourceTable.Value1; MyTable.Field2 = sourceTable.Value2; If (sourceTable.A=sourceTable.B) { MyTable.Field3 = sourceTable.Value3; } Select firstonly InvoiceType; If (InvoiceType) { MyTable.Field4 = '0'; } MyTable.Field5 = sourceTable.Value5; myList.add(MyTable); } myList.insertDatabase();
SourcetableC tableC; str text; while select crosscompany tableC order by tableC.InvoiceNumber asc where tableC.Field4 = '' { text += strFmt('%1/',TableC.text); } text = subStr(subStr(text, 1, strLen(text) -1), 1, 155); MyTable myTable; myTable.Text = text; myTable.insert();
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 539 Most Valuable Professional
André Arnaud de Cal... 366 Super User 2026 Season 2
CU-1234529-002 197