Lesson 2: Importing Models, Data Sources and Create Sample Data Batch Program in Magic xpa

969 views

Welcome to Lesson 2 of our SmartUX Demo Application series. In this lesson, we’ll guide you through the process of importing models and data sources, as well as setting up a batch program to create sample data.

1. The Magic xpa project

  • From the last lesson, we successfully created an empty project in Magic xpa for SmartUX.

 

2. Ready to import files

  • To continue with import, ensure that you have the Models.xml, Datasources.xml and CreateSampleData.xml (Batch Program export) files ready.
  • The Models.xml file contains the definitions of all the models that we will be using in our application.
  • The Datasources.xml file contains the table structure needed for the SmartUX Demo Application.
  • The CreateSampleData.xml file is an export of a batch program that will help us create sample data.

To download the files click on the following link:

  1. Models.zip
  2. DataSources.zip
  3. CreateSampleData.zip

Unzip the files To import this file into Magic xpa Studio, follow the next steps.

 

3. Open the Import window in Magic xpa

  • Importing Models.xml is to integrate the model definitions into your project.
  • Go to the File menu in Magic xpa studio.
  • Select Export/Import or You can use a shortcut key CTRL+SHIFT+E.
  • This will open a window to proceed.

Opening Import window

 

4. Export/Import Window

  • In the Export/Import window, you need to change Operation and File Name.

Export/Import Window

 

5. Importing Models.xml

  • Click on the Operation list and select the Import option.
  • In the File Name field input the path of Models.xml OR You can double-click on the File Name field.
  • This will open the File Explorer to locate the Models.xml After this Click OK.

Models.xml

 

6. The Model repository

  • After successful import of Models.xml the Models Repository will look like this.

After the successful import of Models.xml, the Model repository will look like this

 

7. Importing DataSources.xml

  • Click on the Operation list and select the Import option.
  • In the File Name field input the path of DataSources.xml OR You can double click on File Name field.
  • This will open the File Explorer to locate the DataSources.xml After this Click OK.

Importing DataSources.xml

 

8. The Data repository

  • After successful import of DataSources.xml the Data Repository will look like this.

After the successful import of DataSources.xml, the Data repository will look like this

 

9. Importing CreateSampleData.xml

  • Click on the Operation list and select the Import option.
  • In the File Name field input the path of CreateSampleData.xml OR You can double-click on the File Name field.
  • This will open the File Explorer to locate the CreateSampleData.xml
  • After this Click OK.

Importing CreateSampleData.xml

 

10. The Program repository

  • After the successful import of CreateSampleData.xml, the Program Repository will look like this.

After the successful import of CreateSampleData.xml, the Program repository will look like this

 

11. The Create Sample Data (One time) batch Program.

  • To create sample data, execute the Create Sample Data (One time) batch Program.
  • Press the Play button in Magic xpa studio. OR Press the F7 button on the keyboard.

This guide covered the process of importing models and data sources in Magic xpa for the SmartUX Demo Application. By following the provided instructions, users can easily navigate through the application to efficiently manage projects and enhance their training experience.

Share this Article

Lesson 2: Importing Models, Data Sources and Create Sample Data Batch Program in Magic xpa

Or copy link

CONTENTS