| 13 | |
| 14 | === Steps === |
| 15 | |
| 16 | 1. Import spreadsheet |
| 17 | * The importer can be accessed at http://<web address>/<application name>/<importer> . This is the landing page for the importer. |
| 18 | * Click on spreadsheet. |
| 19 | * Upload a spreadsheet. Add a name to the spreadsheet record, and a comment if you wish. |
| 20 | * Tips: |
| 21 | * Keep a single worksheet in the spreadsheet. |
| 22 | * Keep the number of rows around 100. More rows require more rendering and processing,therefore more time. This could also cause server requests to time out. |
| 23 | |
| 24 | |
| 25 | 2. Edit spreadsheet |
| 26 | * You can make changes to the spreadsheet in this step. You can modify cells, delete and add rows. |
| 27 | * You can search for data. Search returns the first occurrence of a the string in the spreadsheet. Substrings in cells are also matched. |
| 28 | * Rows can be deleted by either clicking the cross on the right end of each row. |
| 29 | * A checkbox on the left of each row selects that row. You can click the delete button in the tool bar to delete the select row. You can only select one row at a time. |
| 30 | * Prior to clicking import, select a row which has titles for each column in the spreadsheet. You will be prompted to select one if you haven't done so already. |
| 31 | |
| 32 | 3. Select module and resource |
| 33 | * This step of the spreadsheet importer wizard has two sections, so to speak. |
| 34 | * On the left is a list of modules in the Sahana Eden installation. You can select a single module from this list. |
| 35 | * As soon as a selection is made from the modules list, the panel on the right updates to show which resources are present in that module. You can select one resource. |
| 36 | * When you click the next button, the module fetches resources and fields from the server. Depending upon server speed, this process could take some time. Please be patient during this step. |
| 37 | |
| 38 | 4. Mapping columns to fields |
| 39 | * The column titles selected in the second step are displayed next to dropdowns in this step. |
| 40 | * The drop down lists are populated with the fields present in selected resource. There are two types of fields. |
| 41 | * Normal fields. |
| 42 | * Reference fields. These fields are are actually references to different tables in the Eden schema. In the drop down list, they are represented as <field-name> --> <resource-name> --> <field in the nested resource>. |
| 43 | Therefore, reference to a person in org_staff is represented in the drop down as person_id --> pr_person --> first_name etc. |
| 44 | * All columns '''must''' be matched to fields. Otherwise, you cannot proceed. |
| 45 | * The data is extracted from the spreadsheet and then processed for import to the database. |
| 46 | |
| 47 | 5. Edit invalid rows |
| 48 | * The database only accepts those records/rows which satisfy validation checks. |
| 49 | * In case some rows are present which do not conform to the validation enforced on the database, they are rejected. Rows in which all fields have valid values are accepted. |
| 50 | * The spreadsheet interface shows only those rows which returned an error. The fields which could not be validated are shown in red. Each row will have '''at least one''' red field. |
| 51 | * Errors are represented as <field-name> : <error message>. You entered <your value>. The text in the entire field has to be replaced with the '''correct''' value. |
| 52 | * If you do not wish to import a row, make sure that it is deleted. |
| 53 | * Click on import to move to the next step. |
| 54 | |
| 55 | 6. Edit similar rows |
| 56 | * In large spreadsheets, it is possible that some rows may be similar. The spreadsheet importer determines such rows. |
| 57 | * These rows are represented in a spreadsheet format are displayed. Two consecutive rows (like 1 & 2, 3 & 4) are similar. |
| 58 | * You can edit these rows as you wish. You '''do not''' have to select a row with column titles. |
| 59 | * Click the import button to import these rows. |
| 60 | |
| 61 | 7. Edit invalid rows (only those which were flagged as similar) |
| 62 | * In case there are some errors in the fields in the similar rows, they are displayed in the same format as in step 5. |
| 63 | * Operations that can be performed in this step are identical to step 5. |