コミュニティ

Edit documentDefinition's field from "After Document State Changed" event

I need to clear the Vendor details , when the registration parameter fc_Predefined:InvoiceIsVendorSuspicious = true.

For that I am trying to write a script inside the event After Document State Changed . For that I need to access the vendor field of the document. But getting error as No field with name 'Vendor'. Anybody suggest a solution for this.

Sample code I am trying.....

bool isv = Document.Properties.Get("InvoiceIsVendorSuspicious") == "true";

        if(isv)

        {

            Document.Field("VendorName").Text = "";

        }

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

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

コメント

1件のコメント

  • Avatar
    Permanently deleted user

    Hello,

    If you try to access the field via the event handler you should use the full  name of the field that includes the Document Definition name, Section name, field’s name
    0

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