Last modified: September 16, 2022 Show
Table of Contents
1 IntroductionAdding large amounts of data to your application (for example, reference data or data from an external application) can be very time-consuming. In order to save time and effort, this process can be automated using the Excel Importer from the Mendix Marketplace. In this how-to, you will set up import templates and import data into your app using this module. 2 PrerequisitesBefore starting this how-to, make sure you know how to do the following:
3 Preparing the Data Structure, GUI and ModulesBefore you can start importing data into your application, you first need to set up the data structure and GUI by following these these steps:
4 Preparing the Logic for Data ImportBecause an enumeration is used for the OrderStatus attribute, you need to create a microflow to determine the enumeration value of the attribute based on the input from the Excel file.
In order to set up import templates for importing data, your application model metadata should be reflected in the client. This can be achieved by using the Mx Model Reflection module. In this section, you will learn how to do this by following these steps:
6 Manually Creating an Import TemplateBefore you can import data from an Excel File into your application, you have to set up an import template. In this template, you will configure the objects to which the data should be mapped, if an object is associated to another object, from which row of the Excel file the import should start, and which columns should be imported. In this section, you will import data from a simple Excel file example, which can be downloaded here: Based on the structure of the file you want to import, you need to manually set up your template by following these steps:
6.1 Importing an Excel FileNow that the template is set up, you can start importing data from an Excel file into your application. You can use the example file you downloaded in the Creating the Import Template section above. Follow these steps to import the Excel file:
7 Automatically Creating an Import Template via an Excel FileIn the previous steps, you manually added all the columns to your import template. In this section, you will create the same Excel template in an automated way, which you can do this via the specific New template by excelfile button. You can use this same Excel file example: Follow these steps to create the import template via the Excel file:
8 Exporting and Importing a TemplateOnce you have completed an Excel template, you can export the template (for example, from a test environment) and import it (for example, into an acceptance environment). When exporting and importing a template, the exact template will be uploaded, which means that columns are generated, the Mendix object is selected, the attributes are connected, and the parse microflows are selected. Follow these steps to export and import your template:
You have now imported a complete import template. 9 Read More
FeedbackWas this page helpful? Glad to hear it! Thank you for your response. Sorry to hear that. Please tell us how we can improve. How to import data from Excel in CodeIgniter?Import Data From Excel & CSV to mysql Using Codeigniter. Download Codeigniter Latest.. Basic Configurations.. Download phpExcel Library.. Create Library.. Create Database With Table.. Setup Database Credentials.. Make New Controller.. Create model.. How do I import a CSV file into codeigniter?Codeigniter 4 Import Excel/CSV File Data into MySQL Database Example. Step 1: Download Codeigniter Project.. Step 2: Configure Error Handling.. Step 3: Generate User Table in Database.. Step 4: Connect to Database.. Step 5: Create Sample CSV File.. Step 6: Create Model.. Step 7: Set Up Controller.. Step 8: Set Up Routes.. How do I import an Excel file into iSeries?To send a data file to the host system:. Highlight the Microsoft Excel file (. XLS) in the left hand, client side window and right click. ... . Select iSeries File Transfer from the pop-up menu.. The XLS File and the XLS Filename. OUTFILE will be parsed, the data file will be created and uploaded to the AS/400.. How do I export data from CI?1 - Download & Install Codeigniter 4 framework. ... . 2 - Set Global Environment Variable value. ... . 3 - Create Mysql Table. ... . 4 - Create Database connection. ... . 5 - Download PHPSpreadsheet Library in Codeigniter 4. ... . 6 - Create Model Class. ... . 7 - Create Data Seeder Class for Fake data. ... . 8 - Create Controller Class.. |