This extension implements the old renumbering utility from C/AL to AL.
This Renumber implementation has two commands: "Create initial CSV file" and "JAM Renumber Al Objects from CSV file"
Go to command palette and find "JAM Create Initial Renumbering CSV ready for fill new ids":
This command create a CSV template from workspace objects with NewID empty:
When you fill this column, you can go to next step: Renumber. The command will ask where you want to save CSV file.
Go to Command palette and find "JAM Renumber Al Objects from CSV file":
Command will ask the source CSV file with the renumbering and execute renumbering over all AL objects in current workspace. At the end of command changed objects will be open in the editor, and then you can review and save all or discard this renumbering:
New command "JAM Update previous CSV Renumbering file with new objects in workspace", merge an existing CSV objects with set renumbering with new objects in workspace. The steps are: F1 "JAM Update previous CSV Renumbering file with new objects in workspace", select previous CSV file and then select target new merged file. They can be the same.
A new feature is added to the Renumbering command, to renumber fields from tableextension. This works alike previous renumbering options:
-
First create a new CSV file with existing fields form existing tableextensions. The SCV file has a last column with the new ID of the field. You can create the CSV file with the command "JAM Create CSV table with extension fields to renumber".
-
Whren the new ids are filled in the CSV file, we can can launch the fields renumbering with the command "JAM Apply field extension renumbering from CSV file". This commnadwill open a file dialog to select the CSV file with the tableextencion fields renumbering and then will execute the renumbering.
Sometimes in upgrading processes we need a copy of app tables and tableextensions, but logic, only fields and primary key, no procedures, triggers, and no other properties. You can generate these empty tables in a target directory, executing this command in the original app workspace: "JAM Generate empty logic table objects in target folder". Will ask for object starting new Id and target folder.
You can get Empty table object for C/SIDE previous versions with "JAM Generate empty logic C/AL table objects in target single txt file" command. Instead a folder for a set of object files, you must select a single txt target file to save all objects. This could be useful for upgrade toolkits.
If you open the target workspace you could see the new empty tables only with the fields:
Needed for upgrade toolkits (IMO). New command "JAM Insert extension fields into old CSIDE table definition text file" to perform an insertion in a C/SIDE txt object the extension ot the fields of my current extension workspace. Steps:
- With F1 execute "JAM Insert extension fields into old CSIDE table definition text file".
- Select the old txt C/SIDE file with standart table definitios.
- Select new txt C/SIDE file to save these standar tables with extension fields inserted.
Visual Studio Code and AL language.
No setup needed.
Not yet.