コミュニティ

'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?

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

  • Avatar
    Permanently deleted user

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

    0

サインインしてコメントを残してください。