Code Coverage- NAV 2016

Code Coverage is the tool for tracking which part of application code has been executed while posting the transaction. In Microsoft Dynamics NAV it is record by C/AL Code as it displays which specific line of code was executed while performing the activity.

User Can Access the Code coverage tool from Administration–>Application Tools–> Code Coverage

To Start monitoring the activity use need to click on Start button .This will start recording the code coverage activities. Once activities completes then one need to ‘Refresh’ to see the activities.

This code coverage windows will show all the details like

1) Code column  will show all the objects executed during the processing of transactions which includes Tables,Pages,Code units,Reports .Once you drill down the on the object you can see which lines of code is executed during processing of transactions.

2) Coverage columns will show How much coverage % is used by the object while processing the transactions

3) Line Type columns will show details like object,Trigger/Function, code etc.

4) Object Type column will show the object type which executed during the transaction processing i.e Table,Codeunit,Page etc

5) Object Id column will show object number of object

6) Line No column will show which line from code written is executed

7) No of Lines Displays Total no of lines of code

8) No of Hits  Displays total no of hits for the code is executed during transaction processing

9) No of Hit Lines Display total no of lines executed

10) No of Skipped Lines Displayed total no of skip lines

Code Coverage will display only those object which are executed /touched during the transactions processing.

For specific coverage of any objects you can use ‘Load Objects’ from ribbon area to load the objects and then code coverage will track the activity of that object even though no lines are covered.

You have facility to export the code coverage summary using export option

Important :- Code coverage is recorded globally for all sessions so you have to take care while recording the activity.

Advertisements

Item Attributes-NAV 2017

In NAV 2017 you can organize and classify your products by using attributes and you can display the information you need. These attributes can be displayed on Fact box and Item card

One can define own type of attributes including text,integer and decimal. The option and values can be translated to support multilingual requirements. If attributes not required then you can block those attributes.

and Many more……

Original post from Microsoft

Table Type In NAV 2016

Nice features in NAV 2016 Table i.e One can specify the Table type

Earlier version we are using property called ‘LinkedObject’ to link the external table/view.

In New version we have property Table type which contains three different type as follows called ExternalSql’  wherein one can specify table/view from sql server that is not in MS Dynamics NAV DB

  • Normal :- Specified the table as normal table . This is default value whenever you create table in NAV
  • CRM:- Integration table for integrating NAV with Microsoft dynamics CRM
  • ExternalSQL:- Specify the table/view in sql server which is not in NAV database.

When one select ‘ExternalSQL’ two other properties will enable automatically

1) ExternalName :- specify the name of external table from database

2) External Schema :- Specify the database schema.

 

You can look at How to register External Tables

 

Cheers!!!!

Send Document

In NAV 2016 on Posted Sales Invoice screen option is provided to send documents to multiple source like

  • Send to Printer ,
  • Send document by email to customer,
  • Save it to disk
  • Send document to exchange service.

One can find the option on Posted Sales Invoices as follows

In this option user can send document to directly to printer or send document via email or save the document to disk  in PDF format. This will basically reduce the work the save the file in PDF and then attach it to email  and send to customer.

In the above option when user click on option where one can select to Use ‘Yes (Use Default Settings)’ or ‘Yes (Prompt for Settings)’.

1) Yes (Use Default Settings):- This will use default settings  of system for printer,email etc.

2) Yes (Prompt for Settings) :- By selecting this option user can configure

For example if user selected email option for prompt for settings then screen will look like

In this screen user can add details required options and send email .If you selected ‘Edit in Outlook’ so email will open in default outlook client and you can edit the message Big Smile

 

Cheers…

All about Microsoft Dynamics NAV