deploy: 158ebff378
This commit is contained in:
parent
90010b11a8
commit
7f2b60c5ec
205 changed files with 244 additions and 219 deletions
|
|
@ -484,7 +484,11 @@ Therefore it’s good practice to always check if the table is empty whe
|
|||
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-al" data-lang="al"><span style="display:flex;"><span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">Page</span><span style="color:#ce5c00;font-weight:bold">.</span>RunModal<span style="color:#ce5c00;font-weight:bold">(</span><span style="color:#0000cf;font-weight:bold">525</span><span style="color:#000;font-weight:bold">,</span><span style="color:#f8f8f8;text-decoration:underline"> </span>SalesShptLine<span style="color:#ce5c00;font-weight:bold">)</span><span style="color:#000;font-weight:bold">;</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span></span></span></code></pre></div><h2 id="good-code">Good code</h2>
|
||||
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-al" data-lang="al"><span style="display:flex;"><span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">Page</span><span style="color:#ce5c00;font-weight:bold">.</span>RunModal<span style="color:#ce5c00;font-weight:bold">(</span><span style="color:#204a87;font-weight:bold">Page</span><span style="color:#000;font-weight:bold">::</span>&#34;Posted Sales Shipment Lines&#34;<span style="color:#000;font-weight:bold">,</span><span style="color:#f8f8f8;text-decoration:underline"> </span>SalesShptLine<span style="color:#ce5c00;font-weight:bold">)</span><span style="color:#000;font-weight:bold">;</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span></span></span></code></pre></div></description></item><item><title>Docs: One Statement per Line</title><link>https://alguidelines.dev/docs/bestpractices/one-statement-per-line/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/bestpractices/one-statement-per-line/</guid><description>
|
||||
</span></span></span></code></pre></div><h2 id="tips">Tips</h2>
|
||||
<p>The <a href="https://marketplace.visualstudio.com/items?itemName=StefanMaron.businesscentral-lintercop">BusinessCentral.LinterCop</a> extension adds a new rule to check your code for hardcoded object IDs.</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/StefanMaron/BusinessCentral.LinterCop/wiki/LC0012">LC0012</a>: Using hardcoded IDs in functions like Codeunit.Run() is not allowed.</li>
|
||||
</ul></description></item><item><title>Docs: One Statement per Line</title><link>https://alguidelines.dev/docs/bestpractices/one-statement-per-line/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/bestpractices/one-statement-per-line/</guid><description>
|
||||
<p><em>Created by Microsoft, Described by waldo</em></p>
|
||||
<h2 id="description">Description</h2>
|
||||
<p>A line of code should not have more than one statement.</p>
|
||||
|
|
@ -2164,7 +2168,12 @@ Therefore it&rsquo;s good practice to always check if the table is empty whe
|
|||
</span></span></span></code></pre></div><h2 id="good-code">Good code</h2>
|
||||
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-al" data-lang="al"><span style="display:flex;"><span><span style="color:#f8f8f8;text-decoration:underline"> </span>Vendor<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">Record</span><span style="color:#f8f8f8;text-decoration:underline"> </span>Vendor<span style="color:#000;font-weight:bold">;</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#f8f8f8;text-decoration:underline"> </span>StartingDateFilter<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">Text</span><span style="color:#000;font-weight:bold">;</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span></span></span></code></pre></div></description></item><item><title>Docs: When not to use Blank Lines</title><link>https://alguidelines.dev/docs/bestpractices/blank-lines-when-not-to-use/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/bestpractices/blank-lines-when-not-to-use/</guid><description>
|
||||
</span></span></span></code></pre></div><h2 id="tips">Tips</h2>
|
||||
<p>The <a href="https://marketplace.visualstudio.com/items?itemName=andrzejzwierzchowski.al-code-outline">AZ AL Dev Tools/AL Code Outline</a> extension adds two new commands to Visual Studio Code to sorts variables.</p>
|
||||
<ul>
|
||||
<li><code>Sort Variables in the Active Editor</code> : sorts variables in the current editor</li>
|
||||
<li><code>Sort Variables in the Active Project</code> : sorts variables in the current project</li>
|
||||
</ul></description></item><item><title>Docs: When not to use Blank Lines</title><link>https://alguidelines.dev/docs/bestpractices/blank-lines-when-not-to-use/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/bestpractices/blank-lines-when-not-to-use/</guid><description>
|
||||
<p>Do not use blank lines:</p>
|
||||
<ul>
|
||||
<li>at the beginning or end of any functions (after <code>begin</code> and before <code>end</code>)</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue