On the form attached, I've entered / selected all my data but when I click the tick icon (top right) to call SubmitForm (i.e. send data to the database), it's not sending the key values. As you can see from the screenshot, it should be sending a Document_Type of "Order", a DocumentNo of 'SO000006' and a LineNo of 20000. Instead it's sending a Document_Type of "Quote", a DocumentNo of '' and a LineNo of 0. I guess these must be default values. The Default mode of the form is 'New' (i.e. insert a new row). What can cause this?
Here's the error: The requested operation is invalid. Server Response: Dynamics NAV: Request failed: The remote server returned an error: (400) Bad Request. (Document No. must have a value in Service Line: Document Type=Quote. Document No.=, Line No.=0., It cannot be zero or empty.)