I am trying to set a field Text like this....
public void TaskClose(ITaskWindow taskWindow, IBoolean canClose)
{
var document = taskWindow.Batch.Documents[0];
document.Field(FieldFullNames.IsCloseTaskFromVerification).Text = bool.TrueString;
The last line is throwing error... 'Cannot modify object data from this script.'
What is wrong here?
コメント
1件のコメント
Issue resolved - Needed to call taskWindow.OpenDocument() to make the document editable.
サインインしてコメントを残してください。