Index: svn/Synchronizer.cls.xml =================================================================== diff -u -r1850 -r1862 --- svn/Synchronizer.cls.xml (.../Synchronizer.cls.xml) (revision 1850) +++ svn/Synchronizer.cls.xml (.../Synchronizer.cls.xml) (revision 1862) @@ -175,11 +175,35 @@ Set NieuweLijn = "
" } - Set itList = ##class(TECH.ListIterator).%New(..SynchronizeList) + #dim SynchronizeList As %ArrayOfObjects + #dim ToonListMetCategories As %Boolean = (IsVoorMail) + If ToonListMetCategories { + Set SynchronizeList = ..GeefSynchronizeListMetCategories("§") + } + Else { + Set SynchronizeList = ..SynchronizeList + } + + #dim SectieTitel As %String = "" + #dim IsEersteSectie As %Boolean = $$$True + + Set itList = ##class(TECH.ListIterator).%New(SynchronizeList) While itList.HasNext() { #dim SyncStatus As svn.SyncStatus = itList.Next() #dim InternalName As %String = SyncStatus.InternalName + If ToonListMetCategories { + #dim ElementKey As %String = itList.Key() + #dim Categorie As %String = $P(ElementKey,"§",1) + #dim IsSectieTitelGewijzigd = $$$Not(SectieTitel = Categorie) + If IsSectieTitelGewijzigd { + Set SectieTitel = Categorie + Do:($$$Not(IsEersteSectie)) ShowActionsAlsStream.WriteLine(NieuweLijn) + Do ShowActionsAlsStream.WriteLine(NieuweLijn _ "" _ SectieTitel _ "") + Set IsEersteSectie = $$$False + } + } + Do:SyncStatus.ImportNeeded ShowActionsAlsStream.WriteLine(NieuweLijn _ "Import " _ InternalName) Do:SyncStatus.DeleteNeeded ShowActionsAlsStream.WriteLine(NieuweLijn _ "Delete " _ InternalName) } @@ -188,6 +212,81 @@ ]]> + +SectionDelimiter:%String="§" +1 +%ArrayOfObjects + + + + +InternalName:%String +1 +%String + + + + +InternalName:%String +1 +%String + + + + +InternalName:%String +1 +%String + + +