I have a standard header/detail type of screen where the header information is in a set of forms using a ValuesManager and the details are in a ListGrid with setAutoSaveEdits(false). When the user clicks a Save button I first call ValuesManager.saveData() and in the callback to that, if it was successful, I call ListGrid.saveAllEdits() to save the details.
On the call to ValuesManager.saveData() I include a DSRequest parameter with setShowPrompt(true) and setPrompt() to a custom message. I want to update the prompt message before I call saveAllEdits() so that user knows what is happening. How can I cause a prompt to show while saveAllEdits() is in progress.
I've tried using SC.showPrompt() but that only causes the original ValuesManager.saveData() prompt to disappear and my new prompt does not show up in it's place. I don't see any way to customize the queue of requests generated by ListGrid.saveAllEdits() so that they show a prompt.
Do I need to use RPCManager.setShowPrompt() and RPCManager.setDefaultPrompt()? If so, how do I reset the RPCManager back to the defaults after the queue of requests is complete?
On the call to ValuesManager.saveData() I include a DSRequest parameter with setShowPrompt(true) and setPrompt() to a custom message. I want to update the prompt message before I call saveAllEdits() so that user knows what is happening. How can I cause a prompt to show while saveAllEdits() is in progress.
I've tried using SC.showPrompt() but that only causes the original ValuesManager.saveData() prompt to disappear and my new prompt does not show up in it's place. I don't see any way to customize the queue of requests generated by ListGrid.saveAllEdits() so that they show a prompt.
Do I need to use RPCManager.setShowPrompt() and RPCManager.setDefaultPrompt()? If so, how do I reset the RPCManager back to the defaults after the queue of requests is complete?
Comment