Hi All,
Have a page that contains numerous models, and a range of components linked to these models spread down the page. Components for a specific model are dispersed through the page, not all grouped together.
Problem is, on a save error I get standard messages replicated up the page against each of the multiple components linked to the affected model. Looks horrific. Thus, Im trying to intercept all errors and aggregate them against one component at top of page.
in my save snippet, I am trying to push each error to target UI component using initiatorId param but getting nowhere. Any suggestions on how this is used? Relevant sections of my code below:
var myPage = skuid.$('#FormTitle');<br>var myeditor = myPage.data('object').editor;<br>.<br>.<br>.<br>models.save({ callback : checkResult }); // assume I save the models<br>function checkResult(result){<br>if(!result.totalsuccess) {<br> myeditor.handleMessages(result.messages,{ initiatorId : "FormTitle" } );<br> return false;<br>}
}