Small start on site setup
This commit is contained in:
parent
f5fdb14ad8
commit
17ee241708
3 changed files with 54 additions and 0 deletions
29
content/NAVPatterns/with-scope-name-collision/index.md
Normal file
29
content/NAVPatterns/with-scope-name-collision/index.md
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
+++
|
||||||
|
title = "with-scope-name-collision.md"
|
||||||
|
weight = 1450
|
||||||
|
+++
|
||||||
|
Do not use the WITH scope when it has a variable whose name is the same as a local variable. This can lead to wrong code assumptions.
|
||||||
|
|
||||||
|
**Given that **"Contract Type" is a field on table ServiceContractHeader, then in the following example there is a parameter name clash with the field name. Which one will be used?
|
||||||
|
|
||||||
|
Bad code
|
||||||
|
|
||||||
|
PROCEDURE InsertData@1("Contract Type"@1000 : Option...);
|
||||||
|
...
|
||||||
|
BEGIN
|
||||||
|
...
|
||||||
|
WITH ServiceContractHeader DO BEGIN
|
||||||
|
...
|
||||||
|
DimMgt.InsertServContractDim(...,"Contract Type","Contract No.",0,...);
|
||||||
|
END;
|
||||||
|
|
||||||
|
Good code
|
||||||
|
|
||||||
|
PROCEDURE InsertData@1(ContractType@1000 : Option...);
|
||||||
|
...
|
||||||
|
BEGIN
|
||||||
|
...
|
||||||
|
WITH ServiceContractHeader DO BEGIN
|
||||||
|
...
|
||||||
|
DimMgt.InsertServContractDim(...,ContractType,"Contract No.",0,...);
|
||||||
|
END;
|
||||||
12
content/welcome/_index.md
Normal file
12
content/welcome/_index.md
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
+++
|
||||||
|
chapter = true
|
||||||
|
pre = "<b><i class='fas fa-home'></i> </b>"
|
||||||
|
title = "Welcome"
|
||||||
|
weight = 5
|
||||||
|
+++
|
||||||
|
|
||||||
|
### Chapter X
|
||||||
|
|
||||||
|
# Some Chapter title
|
||||||
|
|
||||||
|
Lorem Ipsum.
|
||||||
13
layouts/partials/logo.html
Normal file
13
layouts/partials/logo.html
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<a id="logo"
|
||||||
|
href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}"
|
||||||
|
style="
|
||||||
|
color: #f5f5f5;
|
||||||
|
font-family: 'Novacento Sans Wide', 'Helvetica', 'Tahoma', 'Geneva', 'Arial', sans-serif;
|
||||||
|
font-size: 30px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: -2px;
|
||||||
|
">
|
||||||
|
BC AL Help . dev
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<i style="color: #f5f5f5;" >Code is Poetry</i>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue