Hi all,
Something that I thought would have been so much simpler, but clearly isn't working for me just yet is I have a Client Script called upon the user pressing a custom button.
function CompleteLaterButton_BeforeLoad(type, form) { if (type == 'create' || type == 'edit') { form.addButton('custpage_complete_later', 'Complete Later', 'complete_later_cs()'); form.setScript('customscript_expense_report_cs'); } }Very simplistically, this Before Load script creates my button and sets the client script function to call when the button is pressed. No problems here - this is working just fine. What I want to achieve, however, is from this client script, I want to do some field setting - which also works - and then I want to save the record (i.e., this button is effectively another 'Submit' type button). Given that this needs to work on both Create and Edit events, what API do I call to save this Transaction record where I have no Record ID yet (i.e., a new record)?Thanks heaps,Kirk.