cancel
Showing results for 
Search instead for 
Did you mean: 

How can i save the document is draft...

Former Member
0 Kudos

Hi..

Normally.

While posting Transaction Document..

we can save the document ..

in draft if we right click and choose save as draft...

-------------------

Is it possible to save the document..in draft without choose the save as draft...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

To do it using the GUI, you have to simulate a click on the MenuID under File -> Save As Draft for the document that can be saved as draft.

To simulate the click, you will have to capture an event such as a button click, ie, when the user clicks on the Add button to add the document, you capture the event and save as draft instead.

To save as draft on a standalone app or using the DIAPI, you have to use the company object to get the oDrafts document.  After creating the draft object you have to populate the fields with data.