<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Implementation Patterns — mibuso.com</title>
        <link>https://forum.mibuso.com/</link>
        <pubDate>Sat, 07 Mar 2026 18:45:08 +0000</pubDate>
        <language>en</language>
            <description>Implementation Patterns — mibuso.com</description>
    <atom:link href="https://forum.mibuso.com/categories/implementation-patterns/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>SetRecord And GetRecord Function</title>
        <link>https://forum.mibuso.com/discussion/77462/setrecord-and-getrecord-function</link>
        <pubDate>Sat, 04 Feb 2023 19:20:15 +0000</pubDate>
        <category>Implementation Patterns</category>
        <dc:creator>Shivasai</dc:creator>
        <guid isPermaLink="false">77462@/discussions</guid>
        <description><![CDATA[Hi Can you explain Set record and get record With examples ]]>
        </description>
    </item>
    <item>
        <title>How to setup alerts or notification case of failure of a job in job que entries in Business Central?</title>
        <link>https://forum.mibuso.com/discussion/77417/how-to-setup-alerts-or-notification-case-of-failure-of-a-job-in-job-que-entries-in-business-central</link>
        <pubDate>Tue, 20 Dec 2022 08:50:47 +0000</pubDate>
        <category>Implementation Patterns</category>
        <dc:creator>sajidhanifkhan</dc:creator>
        <guid isPermaLink="false">77417@/discussions</guid>
        <description><![CDATA[In Microsoft Business Central on premises, if a scheduled job is failed how can we send an alert or notification to a single user or user group of a particular job from Job Que Entries?]]>
        </description>
    </item>
    <item>
        <title>Show and hide fields on a list page (On After get current Rec)?!!!</title>
        <link>https://forum.mibuso.com/discussion/65820/show-and-hide-fields-on-a-list-page-on-after-get-current-rec</link>
        <pubDate>Mon, 18 Jan 2016 21:05:28 +0000</pubDate>
        <category>Implementation Patterns</category>
        <dc:creator>Mohamed_Zayed</dc:creator>
        <guid isPermaLink="false">65820@/discussions</guid>
        <description><![CDATA[Hi,<br /><br />
I want to hide a field (In a list page) after I get the current Rec.<br /><br />
I did the following:<br /><br />
1.Define a globe variable "IsVisible" and set its "IncludeInDataSet" property be "yes".<br /><br />
2. Set the property visible of the control in the page be "IsVisible"<br /><br />
3. create a function SetVisible (var visible : Boolean) to set the value of the variable "IsVisible"<br /><br />
etc, etc,..<br /><br /><br /><br />
My only problem is that this hide function works only (On open page &amp; Init)!! But if you try to use it on other placsses like (On after get rec) IT WONOT WORK <img src="https://forum.mibuso.com/resources/emoji/frowning.png" title=":(" alt=":(" height="20" /><br /><br /><br /><br />
Any Idea???]]>
        </description>
    </item>
    <item>
        <title>Quick customization patterns</title>
        <link>https://forum.mibuso.com/discussion/63551/quick-customization-patterns</link>
        <pubDate>Tue, 13 Jan 2015 11:41:16 +0000</pubDate>
        <category>Implementation Patterns</category>
        <dc:creator>Miklos_Hollender</dc:creator>
        <guid isPermaLink="false">63551@/discussions</guid>
        <description><![CDATA[After perusing the Wiki, my impression is that the Design Patterns community is very much add-on based, it is as about copying the patterns of the standard NAV, and this largely useful for add-ons. I think the needs for quick customizations are not served with them.<br /><br />
This is a problem, because these add-on patterns can be learned just by looking at the standard code, but nobody teaches people quick customization patterns.<br /><br />
So I do it now. Here is an example. Never do anything like that in an add-on, it it is not highly performant, it is not very much future proof, not useful for an add-on that will be used by a hundred users, but if you need to do a quick customization to make 1 user happy, this is the way.<br /><br />
In this example we fill a journal automatically. This is very often done. Very often when users complain boo hoo why cannot NAV do X automatically one good solution is that we make a button that fills a journal, they review and post it. This way it is not much manual work, yet they can spot errors much easier as if it was a 100% automatic solution. So it is good because it needs less testing than a solution that posts some things 100% automatically needs. So if you have 30 mins to solve a problem and cannot test it for days, because only 1 user is using it so it does not worth the cost, then just generate a journal, and let the user test it, check it, before posting it.  A good example: generating some G/L bookings from Transfer Orders. Once a month. E.g. you need to book some Intra-Community VAT with them, which is a legal requirement in the EU if the Transfer Order crosses borders. You make a button (Action in the new lingo) that generates journal lines and they can review and post them. Very neat.<br /><br />
Here are the steps:<br /><br />
1) do it manually once and not only take note which fields you fill out but also in which order! If in an Item Journal you enter a cost or price and then another field and that  field reset the price or cost,  take note and change the order of entry!<br /><br />
2) In your code, do NOT do it like the standard or add-ons do (too much work), but emulate user behavior.<br /><br />
3) This means first fill out in the X Journal Line table primary key fields and insert it.<br /><br />
4) Then VALIDATE fields in the correct order you have tested, really make sure validating field X does not reset field Y you validated just before<br /><br />
5) Then use MODIFY(TRUE)<br /><br />
This is NOT a correct solution for an add-on because non-performant, and because if Microsoft changes the OnModify trigger it can break it. But it is excellent as a quick customization for 1-2 users because it emulates what the user does manually. So it is more or less guaranteed to work without investing a lot of effort.<br /><br />
If interested I can post more stuff like this. E.g. on documents, if it is not very important to print multiple invoices for example at one go, but only one by one, the reports can be made really simple. No need for Code.SetData.]]>
        </description>
    </item>
   </channel>
</rss>
