Then you need to arrange the records in database fashion, one row per task, as shown in the last example.