Skip to Content
0
Former Member
Sep 23, 2005 at 08:24 AM

How to insert DocumentLines of Type - Text via DI API

403 Views

Hi ,

I need to insert in a document via DI API some lines that are not the classics one with article-item code, description, quantity, price….but the new types that have been released in version 2004 (Type: Regular, Text, SubTotal) that appear inserting the column Type.

I searched in Help documentation of DI but I don't find the way to insert a line of type text with only a string of character automatically via DI API.

I know that the real table should be INV10.

Do I have to insert manually the rows necessaries with a SQL INSERT or there is a better way to do this using some object or property?

In any case I have to insert the DocEntry in this table INV10 but I don't have it until I save the entire document.

I decided to execute the Add() method of the document only at the end of the inserting of the lines so I can't use this way of

Sql query.

INV10 will be mantained in future versions of SBO?

Thank you

Andy