when using the workorder ServiceCompleted=true to indicate that a workorder should have the Service Completed box set to true a user cannot unselect it.
Have the following piece of code:
Guid gWOItemID=new Guid(DetailReport.GetCurrentColumnValue(“ID”).ToString());
//now that we have the Item, now can fetch the workorder from the woitem id
Workorder w = Workorder.GetWorkorderByRelativeNoMRU(RootObjectTypes.WorkorderItem, gWOItemID);
w.ServiceCompleted = true;
which works, no worries.
However if a user wishes to unselect via the normal Ayanova GUI (i.e. not via code) they get a warning message that they do not have the rights to do this (even though they normally do). To unselect we have to run a code with the ServiceCompleted set to false.
I suspect that its somehow related to user rights. Any ideas, not a major issue since we have a work around.