Saturday, July 28, 2018

Very useful Scope Property of Page Action

Hello Friends,

If you are working on development for NAV Mobile
client than this "Scope" property will help you.


It will find in property of any page action.























Standard definition:
Specifies the scope of the action to be either page-specific, or specific to a repeater control. The Scope property has two options; Page and Repeater.
The Scope property is only used on pages that include a repeater control and it offers a way to determine the scope of an action to be the page or to be specific to the repeater control. The default behavior of the Scope property is Page.
The Scope property has the following effect:
  • On a Microsoft Dynamics NAV Windows client, the Scope property has no effect. All actions are shown in the ribbon.
  • On a Microsoft Dynamics NAV Web client, if the Scope property is set to Page, the action will be shown in the ribbon. If the Scope property is set to Repeater the action will be shown in both the repeater control and in the ribbon.
  • On a Microsoft Dynamics NAV Tablet client, if the Scope property is set to Page, the action will be shown in the page action menu. If the Scope property is set to Repeater, the action is moved from the page action menu to the repeater control shortcut menu.
  • On a Microsoft Dynamics NAV Phone client, if the Scope property is set to Page, the action will be shown in the page action menu. If the Scope property is set to Repeater, there are two scenarios:
    • If the list is associated with a card page, the developer must make sure to add the action functionality to this card page.
    • If the list is not associated with a card page, and the user taps a row in the list to view details, the action is available on the details page.


This property will use for Mobile Client to show the action in mobile client in card view of list page.
Default value is coming as “Page”, This action will not show in mobile client.

Action will only show when you set the value as “Repeater”



Page action of list page can view in mobile client by clicking on three (…) button





Mobile client only show the page action having scope property = Repeater.

Dynamics NAV 2018 Hidden/Virtual Table List

Hello Friends,

Hidden and Virtual Tables are very useful for development and you must always aware about it.

As we always discuss the list of the new system & hidden tables added in the new version, in this article we will see what new system and hidden tables added in NAV 2018.

Below is the list of Virtual and System tables in Microsoft Dynamics NAV 2018.

  • 10 New System tables added in NAV 2018.
Object ID
Object Name
Object Caption
2000000081
Upgrade Blob Storage
Upgrade Blob Storage
2000000082
Report Layout
Report Layout
2000000176
NAV App Resource
NAV App Resource
2000000177
Tenant Profile
Tenant Profile
2000000178
All Profile
All Profile
2000000179
OData Edm Type
OData Edm Type
2000000182
Media Resources
Media Resources
2000000186
Profile Page Metadata
Profile Page Metadata
2000000187
Tenant Profile Page Metadata
Tenant Profile Page Metadata
2000000188
User Page Metadata
User Page Metadata

  • 02 New Virtual / Hidden Tables added in NAV 2018.
Object ID
Object Name
Object Caption
2000000192
Page Control Field
Page Control Field
2000000193
Api Web Service
Api Web Service

  • List of all Hidden / Virtual Tables in NAV 2018

Object ID
Object Name
Object Caption
2000000001
Object
Object
2000000007
Date
Date
2000000009
Session
Session
2000000020
Drive
Drive
2000000022
File
File
2000000026
Integer
Integer
2000000028
Table Information
Table Information
2000000029
System Object
System Object
2000000038
AllObj
AllObj
2000000039
Printer
Printer
2000000040
License Information
License Information
2000000041
Field
Field
2000000043
License Permission
License Permission
2000000044
Permission Range
Permission Range
2000000045
Windows Language
Windows Language
2000000048
Database
Database
2000000049
Code Coverage
Code Coverage
2000000055
SID - Account ID
SID - Account ID
2000000058
AllObjWithCaption
AllObjWithCaption
2000000063
Key
Key
2000000101
Debugger Call Stack
Debugger Call Stack
2000000102
Debugger Variable
Debugger Variable
2000000103
Debugger Watch Value
Debugger Watch Value
2000000135
Table Synch. Setup
Table Synch. Setup
2000000136
Table Metadata
Table Metadata
2000000137
CodeUnit Metadata
CodeUnit Metadata
2000000138
Page Metadata
Page Metadata
2000000139
Report Metadata
Report Metadata
2000000140
Event Subscription
Event Subscription
2000000141
Table Relations Metadata
Table Relations Metadata
2000000142
Query Metadata
Query Metadata
2000000154
Database Locks
Database Locks
2000000164
Time Zone
Time Zone
2000000167
Aggregate Permission Set
Aggregate Permission Set
2000000171
Page Table Field
Page Table Field
2000000172
Table Field Types
Table Field Types
2000000173
Finish Design Save Mode
Finish Design Save Mode
2000000178
All Profile
All Profile
2000000192
Page Control Field
Page Control Field
2000000193
Api Web Service
Api Web Service

Thinking what these new tables do. Let me know, I will make sure that we cover them in future articles.

Dynamics NAV Upgrade from NAV 2013/ 2013 R2 to NAV 2018 Latest CU

Hello Friends,

If you want to upgrade a customer's database from Dynamics NAV 2013 or Dynamics NAV 2013 R2, you may have noticed that the latest Dynamics NAV 2018 cumulative update does not have a direct path to upgrade from these earlier versions.

Mainstream support end for NAV 2013 and 2013 R2, So there is no direct upgrade toolkit provided for NAV 2018 higher version than CU2.

In this article, we would discuss about Data Upgrade from NAV 2013 to NAV 2018 CU5 (Build 21836).

Microsoft Link for Data Upgrade to NAV 2018: MS DOCS













Task 1: Prepare the old database

1) Use the Microsoft Dynamics NAV 2013 Development Environment to build all application objects


Build Server Application Objects

2) Unlock all application objects

Filter - Locked True in object designer.

Select all Locked Objects and From File Select Force Unlock.

3) Synchronize the database schema by compiling all Objects

Task 2Create a full SQL backup of the NAV 2013 database on SQL Server

Task 3Uninstall all V1 extensions

As it is an NAV 2013 database there are no Extensions so skip this step.

Task 4Upload the Microsoft Dynamics NAV 2018 license to the NAV 2013 database

- In the NAV 2013 development environment, on the File menu, point to Database, and then choose Alter.

- In the Alter Database window, choose Integration, and then select Save license in database.

- Restart Microsoft Dynamics NAV 2013 Server instance


Upload License

Task 5Delete all objects except tables from the NAV 2013 database

- Select All Objects in Object Designer and Mark All Objects.
- Select Tables in Object Designer, Select All and UN-mark all tables.
- From View Select Marked only and select all in Object Designer.
- Delete all Objects (marked Objects).

Task 6: Uninstall (optional) the old product (NAV 2013) and install the new product (NAV 2018 CU 5)

Along with Installation of NAV 2018 CU 5, create a service for NAV 2018 CU 2
- Increase the SQL Command Time Out from 00:30:00 to 20:00:00 for both Services (One Service for NAV 2018 CU 2 and one Service for NAV 2018 CU 5)

Task 7: Clear Dynamics NAV Server instance and debugger breakpoints records from NAV 2013 database

1) Stop NAV 2013 Service

2) Using SQL Server Management Studio, open and clear the dbo.Server Instance and dbo.Debugger Breakpoint tables of the NAV 2013 database

DELETE FROM [NAV2018_TEST].[dbo].[Server Instance]

DELETE from [NAV2018_TEST].[dbo].[Debugger Breakpoint]

where NAV2018_TEST is my Databasename

Task 8: Convert the NAV 2013 database to the Microsoft Dynamics NAV 2018 CU 2 Database

- Open NAV 2018 CU 2 Developer Environment - Run as Administrator
Open the NAV 2013 database in NAV 2018 CU 2 Development Environment
- Follow the conversion instructions
- Important: Do not run schema synchronization at this time.

Task 9: Import the upgraded application objects (NAV 2018 CU 2) and upgrade toolkit objects into the converted database

Import Merged objects from NAV 2018 CU 2 Object Merge in the database. (Select Replace all)
- Do not run table synchronization (Select Later if asked)
- Import Upgrade Toolkit Objects (Upgrade7001100.fob) in Database
- Do not run table synchronization (Select Later if asked)

Task 10: Connect a Microsoft Dynamics NAV 2018 CU 2 Server instance to the converted database

- Connect to NAV 2018 CU 2 service that we created in Task 6

Task 11: Compile all objects that are not already compiled

- Filter Objects with compiled false.
- Compile objects with Synchronization Schema Later.

If you get errors on the following table objects, use the Object Designer to delete the objects because they are no longer used.

Table 470 Job Queue (replaced by the Task Scheduler)
Table 824 DO Payment Connection Details
Table 825 DO Payment Connection Setup
Table 827 DO Payment Credit Card
Table 828 DO Payment Credit Card Number
Table 829 DO Payment Trans. Log Entry
Table 1510 Notification Template

When you delete following table object, in the Delete confirmation dialog box, set the Synchronize Schema option to Force. 

- Test Runner Codeunits
Codeunit - 130400 - CAL Test Runner
Codeunit - 130402 - CAL Command Line Test Runner

OnBeforeTestRun - Verify parameter FunctionTestPermissions


Before Test Run

OnAfterTestRun - Verify parameter FunctionTestPermissions

After Test Run

Task 12: Run the schema synchronization on the imported objects - NAV 2018 CU 2

From Tools - Sync. Schema for all Tables - With Validation


Sync Schema With Validation

Task 13: Run the data upgrade process - NAV 2018 CU 2

- Open NAV 2018 CU 2 Development Environment as an administrator. 
- On the Tools menu, choose Data Upgrade, and then choose Start and follow the instructions. 
- To view the progress of the data upgrade, on the Tools menu, choose Data Upgrade, and then choose Show Progress. 


Data Upgrade

Data Upgrade


Below Tasks A to I are for NAV 2018 CU 2 ==> NAV 2018 CU 5

Microsoft Link: https://docs.microsoft.com/en-us/dynamics-nav/upgrading-to-microsoft-dynamics-nav


Data Upgrade


Task A: Create a full SQL backup of the NAV 2018 CU 2 database on SQL Server

Task B: Stop NAV 2018 CU 2 Service

Task C: Convert the NAV 2018 CU 2 database to the Microsoft Dynamics NAV 2018 CU 5 Database

- Open NAV 2018 CU 5 Developer Environment - Run as Administrator
Open the NAV 2018 CU 2 database in NAV 2018 CU 5 Development Environment
- Follow the conversion instructions
- Important: Do not run schema synchronization at this time.

Task D: Import the upgraded application objects (NAV 2018 CU 5) into the converted database

Import Merged objects from NAV 2018 CU 5 Object Merge in the database. (Select Replace all)
- Do not run table synchronization (Select Later if asked)
- Do not run table synchronization (Select Later if asked)

Task E: Connect a Microsoft Dynamics NAV 2018 CU 5 Server instance to the converted database

- Connect to NAV 2018 CU 5 service that we created in Task 6

Task F: Compile all objects that are not already compiled

- Filter Objects with compiled false.
- Compile objects with Synchronization Schema Later.

Task G: Run the schema synchronization on the imported NAV 2018 CU 5 objects

From Tools - Sync. Schema for all Tables - With Validation


Sync Schema With Validation

Task H: Run the data upgrade process - NAV 2018 CU 5

- Open NAV 2018 CU 5 Development Environment as an administrator. 
- On the Tools menu, choose Data Upgrade, and then choose Start and follow the instructions. 
- To view the progress of the data upgrade, on the Tools menu, choose Data Upgrade, and then choose Show Progress. 


Data Upgrade

Data Upgrade

Task I: Create a full SQL backup of the NAV 2018 CU 5 database on SQL Server


Task 14: Import upgraded permission sets and permissions by using the Roles and Permissions XML ports

Task 15: Set the language of the customer database

In the development environment, choose Tools, choose Language, and then select the language of the original customer database.

Task 16: Register client control add-ins

- To use these add-ins, they must be registered in table 2000000069 Client Add-in.

Microsoft.Dynamics.Nav.Client.BusinessChart 
Microsoft.Dynamics.Nav.Client.DynamicsOnlineConnect
Microsoft.Dynamics.Nav.Client.FlowIntegration
Microsoft.Dynamics.Nav.Client.OAuthIntegration
Microsoft.Dynamics.Nav.Client.PageReady 
Microsoft.Dynamics.Nav.Client.PingPong 
Microsoft.Dynamics.Nav.Client.SocialListening 
Microsoft.Dynamics.Nav.Client.TimelineVisualization
Microsoft.Dynamics.Nav.Client.VideoPlayer 
Microsoft.Dynamics.Nav.Client.WebPageViewer

Task 17: Publish and install/upgrade extensions

Database = nav2018_test
Server Instance = nav2018_test
Database Server = NAVDB

You can find Extensions in NAV 2018 CU 5 DVD ==> ..\NAV.11.0.21836.W1.DVD\Extensions\
My Folder Path = C:\Prerequisites\Extensions\

Extensions Folder Path

You can download Microsoft_Application_11.0.19738.0.app using below link
Microsoft_Application_11.0.19738.0.app

You can find ModernDev in NAV 2018 CU 5 DVD 
..\NAV.11.0.21836.W1.DVD\ModernDev\program files\Microsoft Dynamics NAV\110\Modern Development Environment

My Folder Path = C:\Prerequisites\Extensions\ModernDev\

Modern Dev Folder Path


1) Open Microsoft Dynamics NAV Administration Shell - Run as Administrator
Run below commands:

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\ModernDev\System.app" -PackageType SymbolsOnly

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\ModernDev\Test.app" -PackageType SymbolsOnly

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\ModernDev\Microsoft_Application_11.0.19738.0.app" -PackageType SymbolsOnly

2) Update Custom Setting file parameter "EnableSymbolLoadingAtServerStartup" = True

3) Restart Microsoft Dynamics NAV 2018 CU 5 Server instance

4) Generate the application symbol references for running Running C/SIDE and AL Side-by-Side

5) Open command prompt - Run as Administrator
Run below command:

cd "C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client"
finsql.exe Command=generatesymbolreference, Database=nav2018_test, ServerName=NAVDB

Verify results after 5 minutes at location
C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\navcommandresult.txt
"[0] [07/07/18  3:08:25 AM] The command completed successfully in '268' seconds."


6) V1 extensions have the file type .navx. V2 extensions have the file type .app

7) Open Microsoft Dynamics NAV Administration Shell - Run as Administrator
Run below commands:

For V1 Extensions:
Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\Ceridian.navx"

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\MSWalletPayments.navx"

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\PayPalPaymentsStandard.navx"

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\QuickBooksDataMigration.navx"

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\QuickbooksPayrollFileImport.navx"

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\SalesAndInventoryForecast.navx"


For V2 Extensions:
Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\C52012DataMigration.app"

Publish-NAVApp -ServerInstance nav2018_test -Path "C:\Prerequisites\Extensions\ImageAnalysis.app"

For V2 Extensions - Sync
Sync-NAVApp -ServerInstance nav2018_test -Name "C5 2012 Data Migration" -Version 1.0.21836.0
Sync-NAVApp -ServerInstance nav2018_test -Name "Image Analyzer" -Version 1.0.21836.0

Extensions

Task 18: Update the Dynamics NAV Web client configuration file (navsettings.json)

If you have installed the Microsoft Dynamics NAV Web Server components, populate the navsettings.json file for the Dynamics NAV Web Server instance with the settings of the NAV 2013 web.config file.

NAV 2013 - web.config file

Web Config Path

NAV 2018 CU 5 - NAVSettings.JSON file

Nav Settings JSON Path

Task 19: Delete the upgrade objects

- At this point, we have upgraded the database to Microsoft Dynamics NAV 2018 CU 5. 

- Now, you can delete the upgrade codeunits and upgrade table objects that you imported in task 9. This task is recommended but not required.

- Filter Objects with Version Tag - UPGTK11.00.00 and delete objects with Force


I hope this would help you a lot. Please also let me know your views.
let write the comment if you need any help.
Keep Sharing... Keep Growing...