On the web, users have to create multiple ‘line items’ for a Procurement Request. From the open PR, they ‘Add a line item’, which brings up the form in a new window. When they have entered data, I give them the option of ‘Save’ or ‘Save & Next’. The latter button saves current page and brings up new line item.
I am trying to implement the Save & Next via AJAX, so the user won’t get Agent Done, or the contents of $$Return field. It works, with the exception of Saving the line item, which is done in the AJAX agent by getting a handle to the line item with DocumentContext. However, Call agentDoc.Save(true, true) doesn’t save the line item. Since there aren’t many fields, I can create a new doc, insert the fields and save. Anyone have a reason why saving the DocumentContext won’t work?