Hi I have a page title with a custom save action that calls a JS snippet
params.model.save();
Below the page title, I have a table of the same model data as in the page title.
When I trigger an error by entering too much data in a text field, I get 3 time of the same error Data type too large:
1 is on the field: this is fine.
2 is above the table
3 is below the actions in the page title.
Can you confirm this is the expected behavior from the JS save()? Is there a way to have it only show once between 2 and 3. Ok with it showing on the field.
I also tried and got 3 messages.
params.model.save({callback: function(result){
if(result.totalsuccess) {
params.model.updateData();
} else {
var pageTitle = $('#InfinityItemPageTitle');
var infinityEditor = pageTitle.data('object').editor;
infinityEditor.clearMessages();
infinityEditor.handleMessages(
result.messages);
}
Thanks!