I need to show a custom prompt while ValuesManager.saveData() executes. I first tried passing a DSRequest as the 2nd parameter after using setPrompt("my prompt"), setShowPrompt(true) and setPromptStyle(PromptStyle.DIALOG) on the DSRequest. However, the standard cursor prompt was shown, not my custom prompt.
I then tried using SC.showPrompt("my prompt") and put a call SC.clearPrompt() in the callback. The problem with that is, when there are client side validations that fail, the callback isn't fired so the prompt does not clear.
It seems like the right solution is the first one I tried. Is there a reason that would not work? I tried the same thing in another class and it did work. But I can't see anything different in the second case where it does not work.
I then tried using SC.showPrompt("my prompt") and put a call SC.clearPrompt() in the callback. The problem with that is, when there are client side validations that fail, the callback isn't fired so the prompt does not clear.
It seems like the right solution is the first one I tried. Is there a reason that would not work? I tried the same thing in another class and it did work. But I can't see anything different in the second case where it does not work.
Comment