MDK Development Cycle   |  MDK Wizard Configuration  |  Import a .war file into a new project  |  Export a project into a .war file

 

SmartSync Wizard

The SmartSync Wizard generates a basic SmartSync application.

Start

The Smart Sync Wizard can be started with the icon in the toolbar or with the Eclipse command: File > New > Other ... > MDK Development Tools > SmartSync Project. A dialog window is displayed:

The dialog windows has two input fields:

  1. Project Name: The name of your new project in which the XML file will be implemented.
  2. Project Root Folder: The folder (root) that will contain the project folder. According to the settings in the dialog window shown above a folder C:\SAPme\NewSmartSyncProject will be created. In case C:\SAPme\NewSmartSyncProject does already exist you will be notified that a project with the same "Project name" and in the same "Project root folder" already exists. In this case you must use another "Project root folder" or "Project name".
  3. Meta XML file: The name of meta-data XML file that contains the field and row descriptions. Click here to view a sample of such a file.
  4. Package name: The package which contains the interfaces of the application.
  5. Servlet name: The package which contains the MI HttpServlet implementation of the application.
  6. MI application name: The name of the application that is used in the getApplicationName() method.

Click the 'Finish' button to start the generation of the project.

The generated application can be deployed immediately. SmartSync applications have to be deployed with the MI Web Console the first time.

 

Code Generation

The code generation is controlled by templates that are stored in the projecttemplates folder of the MDK plug-in (<Eclipse_home>/plugins/ com.sap.ip.me.mdk.developmentTools/projecttemplates). The templates are separated by the MI runtime in JSP and AWT. Under the runtime folder (JSP or AWT) is the folder smartsync that contains the templates. The files have the extension .template and are regular text files which contains "place holders" for the names specified by the user. The "place holders" start with ${ followed by the key name of the "place holder" and end with a }.

You can change the templates so that the generated code suited better to your kind of applications.

The templates are overwritten with any update of the MDK plug-in. So make a backup of the templates you changed before installing a MDK plug-in update.