none
update more than one assignment, but the result of submitstatus is only for just one assigment RRS feed

  • Question

  • Hi,

    I want to update my timesheet and save the changes to my tasks, and then submit the status automatically.  I updated a few lines of my timesheet, and they are imported to my tasks successfully. But only the first assignment was submitted. Can anyone tell me why?

    Thanks!

    Following are my main codes:

                WebSvcStatusing.ImportTimesheetDataSet importTimeSheetDs = general.statusing.ReadImportTimesheetData(perioduid);
                general.statusing.ImportTimesheet(perioduid);

                List<Guid> assignments = new List<Guid>();
                foreach (WebSvcTimeSheet.TimesheetDataSet.LinesRow lrow in mytimesheetds.Lines)
                {
                    assignments.Add(lrow.ASSN_UID);
                }
                Status.SubmitStatus(assignments.ToArray(), "");

    Friday, January 20, 2012 9:33 AM

All replies