Friday 28 October 2016

Changes in C/AL Behavior of NAV2017 and Support from Earlier Versions of Microsoft Dynamics NAV




The following tables provide an overview of the new, removed, or changed C/AL data types, functions, properties, and triggers in Microsoft Dynamics NAV 2017 since the previous version of Dynamics NAV.

C/AL Data Types

The following table lists the new data types in Microsoft Dynamics NAV 2017.

Data Type
Description
Media
A complex type that encapsulates media (such as images) in the application database for displaying the media with associated records. The data type can be used on table fields and supports the following functions:

- ImportFile
- ImportInStream
- MEDIAID
- HASVALUE
- EXPORTFILE
- EXPORTSTREAM

MediaSet
A complex type that encapsulates media files, such as images, in application database for displaying the media with associated records. The MediaSet data type enables you to include multiple media files as part of a collection on a record. The MediaSet data type can be used on table fields and supports the following functions:

- ImportFile
- ImportInStream
- MEDIAID
- COUNT
- EXPORTMEDIASET

Notification
A complex type for publishing and consuming notifications in the application. Notifications provide a programmatic way to send non-intrusive information to the user interface (UI). The Notification data type supports the following functions:

- ADDACTION
- GETDATA
- ID
- MESSAGE
- RECALL
- SCOPE
- SEND
- SETDATA

C/AL Functions

The following table lists the new functions in Microsoft Dynamics NAV 2017.

Function
Description
Specifies an action for the notification.
Retrieves data that was passed to a notification instance as specified by aSETDATA function call.
Specifies the identifier for a notification.
Specifies the content of the notification.
Recall a sent notification.
Specifies the context in which the notification appears in the client.
Sends the notification to the client, where it will display in the UI.
Specifies a data property value for the notification. The data is specified as text in a key-value pair.
Gets or sets the application areas for the current session.
Returns a translated version of the caption string. The string is translated to the current local language.
Redirects references to table data from one company to another.
Gets the number of media files that are included in a media set of a record.
Exports a media object that is set up on a record to a file.
Exports the media objects that included in a media set to individual files.
Exports a media object that is set up on a record to an OutStream object.
Detects whether a record has a media object in the Media data type field.
Adds media from a file to a media set of a record.
Adds media from a file to a media set of a record.
Adds media from an InStream object to a record.
Adds media from an InStream object to a media set of a record.
Indicates whether a C/AL variant contains a Byte variable.
Indicates whether a C/AL variant contains a text constant.
Get the ID that is assigned to media in the database.
Gets the ID that is assigned to the media set of a record.
Get the name of the application in three variations: full, marketing, and short.

C/AL Properties

The following table lists the new properties in Microsoft Dynamics NAV 2017.

Property
Description
Sets the application areas that apply to the control.
Specifies a gesture that runs the page action on a device with a touch interface.
Specifies a value that can be used to determine which permission sets are used on tests that are run by test codunits or test functions.
Specifies whether a page action will appear only on the Home tab in the ribbon and not on the tab where it is defined.

C/AL Triggers

The following table lists the changed triggers in Microsoft Dynamics NAV 2017.

Trigger
Description
Includes a TestPermissions data type parameter for running tests with permission sets.
Includes a TestPermissions data type parameter for running tests with permission sets.


1 comment:

  1. Very useful information :) thanks for the overview !!!

    ReplyDelete