Community

Where to use read/write IsVisible -> IField property of IDocument in FC11

Hi,

In FC11, Field property of "Isvisible" is of type Read/Write.
Do anyone know where is it accessible, because I had tried all possible stages but I get following error : "Cannot modify object data" for script "Field("FieldName").Isvisible = true;" ?
Can anyone help me out where can I use this?

Thanks,
Kalyani

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Katja Ovcharova
    Hello Kalyani,

    It seems that you were trying to access IsVisible property from the Batch processing script.
    This property can be changed in Document definition rule scripts or in scripts written in the custom processing stages. In order to have access to field properties the script type on the custom stage should be set to Document processing.
    Please see FC Help, Appendix > Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Processing scripts for more details on where scripts can be defined.

    Please note that if the field was marked as invisible in the document definition (field properties), you will not be able to make it visible with IsVisible = true in any script. But if the field was visible according to the document definition, then you can hide it after you set IsVisible = false.
    0
  • Avatar
    Permanently deleted user
    I need to know if the IsVisible property is able to be set within Stage Tool Events. I'm having no success with it. My Field has "Show in Verification" turned on within the document definition. I've tried this:

    DocumentEditor.Document.Field("Document Section 1\\QC_Error").IsVisible = false;

    ​I've also tried this:

    DocumentEditor.FormWindow.DocumentWindow.TaskWindo w.OpenDocument(DocumentEditor.FormWindow.DocumentW indow.Document);
    DocumentEditor.FormWindow.DocumentWindow.Document. Field("Document Section 1\\QC_Error").IsVisible = false;

    Neither works. The field still shows up. I placed the code in the "On Open Document" event of the Verification stage tool. I'm performing a Get Task on the document within the Verification stage. I do not see any errors being thrown.

    ​Edit - For some reason the forum post is being altered and spacebar characters are getting inserted into some of the scripts above(ie. "DocumentW indow". Disregard the spacebars. The code I'm executing doesn't have any syntax issues.
    0
  • Avatar
    Permanently deleted user
    Hello,

    Sorry for late response

    In such events documents are availabe only for reading.

    Regards,
    Timour



    0

Please sign in to leave a comment.