Hey guys,
I have scenario on FlexiCapture 12 where I need to add value in specific field according on batch type after document is added to that batch.
So for example I have batch type 'BatchType1', so if document gets to this batch (using import from email) I need automatically add value to Field1 for example "DocumentFromBatchType1".
Any one have ideas how to implement such scenario?
My thought was use batch Event Handler, but it didn't work for me, maybe any ideas if it's possible to use Event handler for this scenario?
Thanks a lot!!!
コメント
3件のコメント
Appreciate any help
Hello,
Please use the property IDocument::Batch.BatchTypeName (string) to fill the required field IDocuement::Field( name : string ).Text (string) either on custom script stage, or in event handler like "after document state changed".
My bad was that using Event handler I tried to call staright to field name, without full name.
For example I tried:
me.Field("Field1").Value = "DocumentFromBatchType1", while the correct expression should be:
me.Field("Invoice Layout\Field1").Value = "DocumentFromBatchType1". Stupid fault...
Thank you Ekaterina!
サインインしてコメントを残してください。