Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Inconsistent results trying to show prompt while saving

    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.

    #2
    This approach - setting prompt and prompt style on the request - should work (in fact it sounds like you're seeing it working elsewhere).

    Any chance of a test case isolating the problem so we can take a look?

    Also - are you sending a queue of requests? In that case the prompt config will be picked up from the first request in the Queue.

    Comment

    Working...
    X