Community

Get LineItems in C# .Net DLL called from Script Answered

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?

0

Comments

2 comments

  • Avatar
    Ekaterina

    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.

    1
  • Avatar
    Torsten Römer

    Thank you, Ekaterina!

    This is what I was looking for.

    Cheers,
    Torsten

    0

Please sign in to leave a comment.