Showing results for 
Search instead for 
Did you mean: 

Insert a line between 2 existing lines on a Quotation object using SDK.

Former Member
0 Kudos

Hi all,

Is it possible to insert a line between two existing lines on a Quotation object, using the SDK ?

I tried to use the VisualOrder property from Document_Lines object to directly choose the position of my lines, but it is a Read-Only property, so I cannot affect a value for it.

I also tried to use the SetCurrentLine method to choose the position where to insert my line but instead of inserting a new one, it overwrites the next one.

Does someone have an idea for this problem ?


Charly Lesgourgues

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Hi Charly,

Currently there is no ready method to increase or decrease the index of a row in a document.

You are on the right track with the SetCurrentLine however. You will need to create a temporary  copy of the document's lines (a DataTable for example), manipulate that copy (i.e. insert new lines there) and maintain the line number there, and then add all lines from the copy back to the document object.



Answers (0)