Hello,
We are successfully getting fields from the Document instance in a script calling methods in a C# DLL like this:
Document.Field("Invoice Layout\\InvoiceNumber").Text
I made some effort searching the net and this forum, but I can't seem to find out how we can get access to the line items of the invoice. What I'm thinking of is to get an array or list of LineItem objects so I can get the amount, article, price and so on.
Can someone help me out?
Comments
3 comments
Hello,
You may use this construction:
Document.Field("the Table").Items[i].Field("the Column").Text, where i = row’s number
Your script should be implemented on higher level that the "Table" field itself, e.g. on the level of Document Section.
Thank you, Ekaterina!
This is what I was looking for.
Cheers,
Torsten
Can we do this same thing at document definition level? If yes, can you share the syntax or help with an example?
Please sign in to leave a comment.