Posts

Page Triggers in Microsoft Dynamics 365 Business Central / Navision with Example.

Image
 Hello Readers, Today I will explain to you the concept of page triggers in the Microsoft Dynamics 365 Busines Central. So let's start. What is Page Trigger?  Ans: Certain predefined events that occur to a page can cause the system to execute a user-defined function. Triggers activate a method when a certain event occurs. There are different types of triggers available in business central. I will explain you one by one with examples. trigger OnInit() begin end; This Trigger initializes the user define variable on the page.  Example of OnInit Trigger. Af First I have created a table "SARAB Test Table". Please check the code below for table creation table   59100  "SARAB Test Table" {      DataClassification  = CustomerContent;      fields     {          field( 1 ; "Entry No.";  Integer)       ...

How to disable download source code option in Microsoft Dynamics 365 Business Central

Image
 Hi Readers, Today I will show you how to disable the download source code option in the Extension Management in Microsoft Dynamics 365 Business Central. At First, I have created a Project(SHOWMYCODE) in VS Code and then I have downloaded the symbols. After Downloading the symbols go to the app.json file you will find there "ShowMyCode": True. Like this in the image below. After Publishing this app you go to Extension Management and check you will find the Download Source Enable as shown in the image below. By Clicking the download source you will be able to download all the source code of that app. So, Now the point comes how to stop this or disable this option. This is Very Simple and Easy. What you need to do is go to app.json fine and make   "ShowMyCode": False. as shown in the image below. As a developer, you should make it false so that the end-user will not able to download it. After making the changes again publish the app by pressing F5 and then again go to...