formatted nav patterns

This commit is contained in:
christianbraeunlich 2022-02-05 18:19:26 +01:00
parent 38a19d75d8
commit 2fad891a77
59 changed files with 1403 additions and 1970 deletions

View file

@ -93,10 +93,10 @@ The [Released Entity][anchor4].
{{< youtube O2R-fTSup1o >}}
[anchor0]: 2260.BlockedEntityPattern.png
[anchor1]: /nav/w/designpatterns/247.data-driven-blocked-entity/edit
[anchor1]: /navpatterns/1-patterns/blocked-entity/data-driven-blocked-entity/
[anchor2]: 8637.BlockedEntityPattern_5F00_5F00_5F00_Boolean.png
[anchor3]: 3056.BlockedEntityPattern_5F00_5F00_5F00_Option.png
[anchor4]: /nav/w/designpatterns/115.released-entity.aspx
[anchor4]: /navpatterns/1-patterns/released-entity/
[image0]: 2260.BlockedEntityPattern.png

View file

@ -59,10 +59,11 @@ All the approval workflows include a response that restricts usage of a record,
The code behind the "Add record restriction" workflow response:
RecRef.GETTABLE(Variant);
Workflow.GET(WorkflowStepInstance."Workflow Code");
RecordRestrictionMgt.RestrictRecordUsage(RecRef.RECORDID,STRSUBSTNO(RestrictUsageDetailsTxt,Workflow.Code,Workflow.Description));
```AL
RecRef.GETTABLE(Variant);
Workflow.GET(WorkflowStepInstance."Workflow Code");
RecordRestrictionMgt.RestrictRecordUsage(RecRef.RECORDID,STRSUBSTNO(RestrictUsageDetailsTxt,Workflow.Code,Workflow.Description));
```
The code behind the "Remove record restriction" response:
@ -103,7 +104,7 @@ This pattern has been introduced in Dynamics NAV 2016\.
[anchor0]: attention.jpg
[anchor1]: /nav/w/designpatterns/79.blocked-entity
[anchor1]: /navpatterns/1-patterns/blocked-entity/
[anchor2]: https://microsoft.sharepoint.com/teams/DynamicsNAV/Wiki/Nav%20Wiki%20Documents/NAV%20App%20Patterns/NAV%20App%20Patterns%20for%20Review/Data-Driven%20Blocked%20Entity.docx#_msocom_2