Lars Urban
posted this
06 September 2019
Hi Adrian,
thank you very much for pointing me in the right direction ;-)
In the meantime we have added a script inside the Document definition --> Event Handler --> After document state changed
using System;
if(Document.Field("Invoice Layout\\spec_Add_FL\\PurchaseOrderFL").Text != "")
{
Document.Field( "Invoice Layout\\PurchaseOrder" ).Items.AddNew( 0 );
}
// Check again the rules
Document.CheckRules();
But one more question, you say "FCI demo" , i can not really find that in our installation ;-)