Now you all are aware the importance of creating views in windows client as it save the time of applying filters on the list of records. You can save the view with required filters and use it for future as it show the required data based on saved filters which improves productivity of users
Today we will see how we can create views in AL language.
Following examples illustrates how to create view from item list where inventory is greater than 10000.
In this example create new profile and added views in item list as below
Even you can apply more filters and order by also. As well as you can modify the page layout for the views as per your requirement
Publish the extension and open the business central web client .From setting change the profile and go to item List.
In the above picture you can see views has been added into the item list. Once you click on that view you can see the details as per define in views.
Following points need to remember.
Can not use variables and methods .Can use only table fields
Can not create new page controls from view.
You can modify views from extension or customizations.
Hope you like this way of creating views in business central .Anyhow in upcoming versions there will option available on web client to create views as like windows client.
As you all are aware the importance of having prefix and suffix in your app. In every extension you design need must have prefix or suffix on objects which include Table Extension, Page extension as well as control parts on pages. Benefits of this is that it will avoid collision of fields between two app which customer would like to install.
As a partner you need to register the prefix or suffix by sending email on firstname.lastname@example.org. This will helpful when conflict arise so whosever registered will win.
Now when you convert the app from C/AL to AL then you need to huge task to us Prefix or Suffix in entire project.
To find all missing Prefix/Suffix you can enable AppSourceCoup which will help every time.
This cumulative update includes all hotfixes and regulatory features that have been released for Microsoft Dynamics 365 Business Central, including hotfixes and regulatory features that were released in previous cumulative updates.
This cumulative update replaces previously released cumulative updates. You should always install the latest cumulative update.
I know you all started working with AL development and extension. As you are converting your product or customization every time need to deal with base application code as during C/AL days you already added business logic in required codeunits,tables,pages etc.
Now when you are dealing with extension you need to move your customization to AL development using events subscription. It is always painful to find events associate with every business process and need to search right event to write customization did.
In business central there is feature available to see which events are executed during process you ran and one can record this events using event recorder .These events are not stored like permission set .This will disappear once you close the page.
We will see how we can use this . For recording you need to have two browser open in which one will do recording and other will execute business process.
Search for Event recorder.
2. Click On Event recorder which will show as below
3. Click on Record Events–> Start
Go to another browser and start executing the required process . In this example I am creating one purchase order
Now go back first browser and click on record Events–>Stop
Once you click ‘Yes’ then it will display all events executed during purchase order creation.
Go to the last columns i.e. Get AL Snippets where you will get AL code for the events
This will really helpful while moving your program to AL from C/AL