Running C/SIDE and AL Side-by-Side
Business Central on-premises supports development using both C/SIDE and AL, as well as Designer side-by-side. When new objects are added or changed in C/SIDE these changes must be reflected in the symbol download in Visual Studio Code using the AL Language extension. To enable this reflection, a command and argument called
generatesymbolreference has been added to finsql.exe and you can run it as illustrated below.
If you experience problems with generating symbols, try to delete existing symbols first.
Get started generating symbols and compiling all objects
generatesymbolreference command specified with the database and server name to add symbol references to the Object Metadata table for the specified database.
generatesymbolreference command, C/SIDE will traverse all the objects in the database and generate symbols for them. This command should be run at least once to generate the initial set of symbols to which incremental updates can be applied.
finsql.exe Command=generatesymbolreference, Database="Demo Database NAV (11-0)", ServerName=.\NAVDEMO
This is a lengthy operation.
Continuously generate symbols each time you compile objects in C/SIDE
generatesymbolreference flag enables incremental symbol generation through the UI or through the compile command passed on the command line.
To update the symbols for a set of objects from the UI, start C/SIDE with the
generatesymbolreference flag, make any desired modifications to your application objects, and compile them.
generatesymbolreference set to yes as a command line argument each time you start finsql.exe to have all compilations add a symbol reference to the Object Metadata table. The default setting of the argument is no.
If you make changes in C/SIDE and start the C/SIDE development environment without the
generatesymbolreference flag set to
yes, the symbols downloaded from Visual Studio Code will not reflect your changes.
This flag is also a part of the
Compile-NavApplicationObject PowerShell command and you can use it to compile and generate symbols on a filtered set of application objects through PowerShell. This alternative should be considered if you do not work with the UI in C/SIDE. For more information about it, see Compile-NavApplicationObject.
Business Central on-premises server setting
In addition to the symbol generation setting you have chosen above, you must enable the Business Central on-premises server setting.
- Go to Business Central Administration.
- Scroll to the Development tab and expand the tab.
- Choose the Edit button, and then select the Enable loading application symbols at server startup checkbox.
This setting must be enabled to allow any symbol generation. If the setting is not enabled, the
generatesymbolreference setting does not have any effect.