Hi,
I noticed that the ListGrid saveEdits and saveAllEdits methods call the defaultPrompt instead of saveDataPrompt. Is there a way to customize a listGrid to show the saveDataPrompt for these two methods?
Hi,
I noticed that the ListGrid saveEdits and saveAllEdits methods call the defaultPrompt instead of saveDataPrompt. Is there a way to customize a listGrid to show the saveDataPrompt for these two methods?
Hi, I also noticed that calling Datasource.removeData() fires the default prompt whereas ListGrid.removeSelectedData() calls the removeDataPrompt. How can I get the Datasource.removeData() method to also fire the removeDataPrompt?
Hi Senordhuff,
Both DataSource.removeData() and ListGrid.removeSelectedData() take a “requestProperties” parameter. This allows you to override properties on the DSRequest, including specifying a custom prompt to display to the user.
The “saveDataPrompt” is by default only shown when saving records edited in a DynamicForm or valuesManager, and the default value of this prompt reflects this.
Thankyou for bringing both these areas up - we will look into making the prompts more consistent and more easy to customize where appropriate.
Hi,
I don’t see any properties on the DSRequest relating to prompts though? So, what exactly would I override there to provide a custom prompt for DataSource.removeData() and ListGrid.removeSelectedData()?
Also, is there any way to customize the prompts on ListGrid.saveEdits() and ListGrid.saveAllEdits()?
Hi again,
All properties which are legal on RPCRequest are legal on DSRequests.
Therefore you can use the prompt property to specify a custom prompt for the operation by specifying DSRequest.prompt when calling removeData() / removeSelectedData().
Customizing the prompt for the ListGrid saveEdits() / saveAllEdits() methods is possible in 5.5.1 but is a little involved.
Can you contact us directly at support@isomorphic.com, and we can show you the best approach for your usage.
Thanks
Isomorphic Software