try { Job_Planning_Line_Line line = new Job_Planning_Line_Line(); line.Description = description; line.Job_Task_No = lineNo; line.Job_No = projectNo; line.Planning_DateSpecified = true; line.Planning_Date = DateTime.Now; //line.No = "MARLIES"; //line.Quantity = hours; List <Job_Planning_Line_Line> lines = new List<Job_Planning_Line_Line>(); lines.Add(line); ProjectLines pl = new ProjectLines(); pl.Job_No = projectNo; pl.Job_Planning_Line_Line = lines.ToArray(); pl.Description = description; pl.Job_Task_No = lineNo; pl.Job_Task_Type = Job_Task_Type.Posting; service.Create(ref pl); pl.Job_Planning_Line_Line[0].No = "MARLIES"; pl.Job_Planning_Line_Line[0].Quantity = hours; service.Update(ref pl); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); //throw ex; }
System.Web.Services.Protocols.SoapException: Property "Editable" for Job Planning Line Subform is invalid!
Comments
The field is not editable in the page!!!
Set the page Editable=true.
Also other fields.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.