Trying to figure out why on a client script when t...
# suitescript
d
Trying to figure out why on a client script when trying to validateDelete, the dialog.confirm doesn't return either the true or false to the validateDelete. Basically it loads the confirm but has already exited the validateDelete function. Anybody got this to work?
u
it is because it is based on promise
e
All the
dialog
objects are displayed asynchronously and use
Promises
, hence the
then
structure.
Seems they weren't designed for easy use within the validation methods.
You'll want something that behaves synchronously instead
d
@クリスピポテト @erictgrubaugh Thank you. I guess I will be off building a dialog from scratch