Hi all, When I make a form button in an userEvent ...
# suitescript
d
Hi all, When I make a form button in an userEvent script and the actions from that button are quite long (new record creation), what is the best way to tell user to wait and be patient? `context.form.addButton({label: 'Return', id: 'custpage_create_return_transfer_order', functionName:
usevReturnButtonHandler(${result.currentRecord.id})
});`
b
you can use something like alert or N/ui/dialog to show a message box
d
Thanks! I tried that, but for some reason, it only shows up when client script finished working.
b
use the promise versions of record.save or whatever api you are using
it will allow asynchronous execution
alternatively show the dialog first, then do your code
d
It worked, thank you so much!