DevPartner 2018 Workshop : Maximize Your Traditional Synergy Development with Visual Studio

Exercise 1: Synergy/DE Repository Project Creation

Home Next Exercise

This is the first of a series of exercises that demonstrate the abilities of developing Traditional Synergy inside Visual Studio.

This first exercise creates the initial Synergy Repository project inside Visual Studio and include a number of pre-existing data layouts into the repository.

To begin the exercise, follow these simple steps:

You will now have an empty solution created inside Visual Studio. Now create the Synergy/DE Repository project using the following steps:

The initial repository is empty. We are going to add three structures and their associated fields. The structures are called Country, Shop and Vinyl. There are include files available for the three record definitions which can be found here. Download (when prompted by the browser select “open”) the zip file and copy the three files contained within it to the Documents\Visual Studio 2017\Projects\DevPartner2018 folder.

From within Visual Studio run the Synergy/DE Repository by selecting Tools->Synergy/DE Repository. Once the Repository is running select the Modify->Structures menu entry. This will present an empty list of structures. If it is not empty then you have the environment variables RPSMFIL and RPSTFIL set and you need to remove them and restart Visual Studio and the Synergy/DE Repository. You can check if these values are set in the Synergy configuration files by running the SYNCKINI utility from a command window launched from Visual Studio.

To add the Country structure click the Add button:

The country structure should now appear in the list of structures.

To add the Shop structure click the Add button:

The shop structure should now appear in the list of structures.

To add the Vinyl structure click the Add button:

The vinyl structure should now appear in the list of structures. Click the Close button to return to the top level menu.

The basic repository is now complete. However, we have not saved it to the repository schema file that Visual Studio uses to “build” the repository. From within the repository we can export the information to the required schema file:

You can now close the Repository.

To confirm the correct repository schema was generated, in Visual Studio locate and double click the “repository.scm” file under the OnVinylRepository project. The opened file should contain the definitions from your three structures. When finished reviewing the file, close it.

**If you don’t have the Solution Explorer visible inside Visual Studio, from the View menu select the Solution Explorer entry

Now we can execute the build process: