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
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
コメント
3件のコメント
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.
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.
Sorry for late response
In such events documents are availabe only for reading.
Regards,
Timour
サインインしてコメントを残してください。