Community

'Cannot modify object data from this script.'

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?

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    Issue resolved - Needed to call taskWindow.OpenDocument() to make the document editable.

    0

Please sign in to leave a comment.