This commit is contained in:
waldo1001 2021-12-01 14:50:51 +00:00
parent 5a801fae69
commit 2834098a70
135 changed files with 2660 additions and 2660 deletions

View file

@ -5,16 +5,16 @@
<meta name=generator content="Hugo 0.89.4">
<meta name=description content>
<title>Error Message Processing :: AL Guidelines</title>
<link href=/css/nucleus.css?1637566651 rel=stylesheet>
<link href=/css/fontawesome-all.min.css?1637566651 rel=stylesheet>
<link href=/css/featherlight.min.css?1637566651 rel=stylesheet>
<link href=/css/perfect-scrollbar.min.css?1637566651 rel=stylesheet>
<link href=/css/auto-complete.css?1637566651 rel=stylesheet>
<link href=/css/theme.css?1637566651 rel=stylesheet>
<link href=/css/theme-blue.css?1637566651 rel=stylesheet>
<link href=/css/variant.css?1637566651 rel=stylesheet>
<link href=/css/print.css?1637566651 rel=stylesheet media=print>
<script src=/js/jquery.min.js?1637566651></script>
<link href=/css/nucleus.css?1638370247 rel=stylesheet>
<link href=/css/fontawesome-all.min.css?1638370247 rel=stylesheet>
<link href=/css/featherlight.min.css?1638370247 rel=stylesheet>
<link href=/css/perfect-scrollbar.min.css?1638370247 rel=stylesheet>
<link href=/css/auto-complete.css?1638370247 rel=stylesheet>
<link href=/css/theme.css?1638370247 rel=stylesheet>
<link href=/css/theme-blue.css?1638370247 rel=stylesheet>
<link href=/css/variant.css?1638370247 rel=stylesheet>
<link href=/css/print.css?1638370247 rel=stylesheet media=print>
<script src=/js/jquery.min.js?1638370247></script>
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
</head>
<body data-url=/navpatterns/1-patterns/error-message-processing/>
@ -32,9 +32,9 @@ ALGuidelines.Dev
<input data-search-input id=search-by type=search placeholder=Search...>
<span data-search-clear><i class="fas fa-times"></i></span>
</div>
<script src=/js/lunr.min.js?1637566651></script>
<script src=/js/auto-complete.js?1637566651></script>
<script src=/js/search.js?1637566651></script>
<script src=/js/lunr.min.js?1638370247></script>
<script src=/js/auto-complete.js?1638370247></script>
<script src=/js/search.js?1638370247></script>
</div>
<div class=highlightable>
<ul class=topics>
@ -229,7 +229,7 @@ ALGuidelines.Dev
<p>Missing, invalid or incomplete data is a common issue during data processing in NAV. This article describes how to collect all error messages during processing using the error message component and present them to the user in a unified way, which enables the user to correct the errors efficiently. By leveraging the integrated error message logging functions, you can log a message with a single line of code and present it to the user with another one-liner.</p>
<h2 id=description>Description</h2>
<p>This article describes how to use the Error Message component in NAV, which in short gives you the possibility to:</p>
<p>1. Link an error mesesage to the page which enables you to resolve the problem.<br>
<p>1. Link an error message to the page which enables you to resolve the problem.<br>
2. Assemble all error messages in one central view instead of having to encounter them one by one.</p>
<p>Validating data is a common task during data processing in NAV. Unfortunately, validation is often done using NAV&rsquo;s integrated ERROR and TESTFIELD functions, which halt execution of the process. The user will then have to locate the invalid / missing data, correct it and reinitiate the process, possibly running into the next error, making the cycle repeat itself. This can be a very tedious, time-consuming and frustrating process. The error message component aims at improving this experience by providing a lightweight framework for error message logging and this article will explain how to leverage this functionality in your code. By doing so, all error messages are gathered during (pre-)processing and are finally presented to the user. The user then has the possibility to click on the error message, which will open the record where the invalid / missing data is located, thereby enabling the user to correct all mistakes efficiently, from one central place and in one go.</p>
<p>The example below comes from a Mexican localization, where the user has to export financial balances and transactions into an XML file for government audit purposes. In order to generate valid files, some mandatory data needs to be entered in the system. By leveraging the error message component, the user will be presented with the following page, if missing or invalid data was discovered:</p>
@ -305,12 +305,12 @@ END ELSE
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
</div>
<script src=/js/clipboard.min.js?1637566651></script>
<script src=/js/perfect-scrollbar.min.js?1637566651></script>
<script src=/js/perfect-scrollbar.jquery.min.js?1637566651></script>
<script src=/js/jquery.svg.pan.zoom.js?1637566651></script>
<script src=/js/featherlight.min.js?1637566651></script>
<script src=/js/modernizr.custom-3.6.0.js?1637566651></script>
<script src=/js/relearn.js?1637566651></script>
<script src=/js/clipboard.min.js?1638370247></script>
<script src=/js/perfect-scrollbar.min.js?1638370247></script>
<script src=/js/perfect-scrollbar.jquery.min.js?1638370247></script>
<script src=/js/jquery.svg.pan.zoom.js?1638370247></script>
<script src=/js/featherlight.min.js?1638370247></script>
<script src=/js/modernizr.custom-3.6.0.js?1638370247></script>
<script src=/js/relearn.js?1638370247></script>
</body>
</html>