Raynon
Raynon

Reputation: 33

Perform standard Save Button with X++

I have custom code that require user to save the journal enter image description herewhen journal is created, so that the voucher number is removed from number sequenceenter image description here. However I would like to write it in my code so that when the user click the button to run my code, it will save the journal to remove the voucher number from number sequence. Is there any code that allow us to save the Journal?

Upvotes: 0

Views: 1225

Answers (1)

Raynon
Raynon

Reputation: 33

Thanks for FH-Inway To perform the save in Journal, the write method need to call with Data Source. EG: if the table for the form is LedgerJournalTrans the save function must be perform by using LedgerJournalTrans_DS.write. These are reserve keys for table data source hence it should apply for any tables.

Upvotes: 1

Related Questions