![]() |
TECH SUPPORT | ||||||||||||||||||||||||
|
Spreadsheet Import
01. OverviewFor very simple models, ones that consist of solely tasks running on one or more nodes, one can use the RapidRMA "Spreadsheet Import" feature. The only resources that can be specified are the node CPUs (implicitly specified by specifying a node name for a task). Other resources cannot be specified through this import process.
We hope the name "spreadsheet" is not too misleading. There is no interface with any spreadsheet application as far as extracting the data directly from the application's internal format. However, most spreadsheet applications provide a low-level "export" format known as comma- or tab-delimited text files. It is those files that RapidRMA imports through the "Spreadsheet Import" feature. In these comma- or tab-delimited text files, each line corresponds to a spreadsheet row, and each delimited field in a line corresponds to the a cell in a row. If the fields in all the lines were properly spaced out horizontally, one would see the fields form columns, and each field corresponds to a spreadsheet cell (the intersection of a row and a column). The delimiter character is also known as the field separator character. The delimiter character cannot appear in the content of any of the fields. The first line should have field values that serve as column headers (names that describe the column). Figure 1 shows an example of a file for import. This file uses commas as field separators. Not all the RapidRMA model fields need to be present (have a column of data in the file). Absent fields are provided with defaults similar to the defaults provided when entering data through the RapidRMA task and resource editors. However, for the columns in this file, every row must have a non-null value for that column. Null values are not allowed in any cell.
Spreadsheet Import StepsStep 0. Invoke Spreadsheet Import
Start the import of a tab- or comma-delimited file
(a format typically exported from a spreadsheet)
through the File Menu:
In response to this selection, an "Open File" dialog box appears and one selects the exported spreadsheet file to import. There are no preferred file extensions used by "Open File" when scanning a directory for files to offer. On selecting a file, the import process reads the file and requests information from the user in order to interpret the file. This is accomplished through a sequence of dialog boxes:
Step 1. Select DelimiterThe first import dialog box provides the means for one to specify the field separator character. An example of this dialog box is shown in figure 3 below.
The first section at the top is called "Delimiters". It is a list of common field separators (semicolon, comma, and tab) that can be checked, or one can specify a character. Below the "Delimiters" section is a "Data Preview" section. This section provides visual feedback regarding the choice of the field separator. The "Data Preview" section shows each line of the file as a row. The fields in the lines are aligned in columns. The splitting of the line into fields is based on the field separator chosen in the "Delimiters" section. As one chooses a field separator, the columns in the "Data Preview" section re-aligned themselves. After specifying the appropriate delimiter, click on the "Next" button to proceed. The navigation buttons at the bottom of the dialog box are:
Step 2. Match Spreadsheet Columns to FieldsThe second import dialog box allows one to assign columns to the RapidRMA model fields. An example is shown in Figure 4.
This dialog box consists of one main section that shows three columns. The leftmost column ("RapidRMA Cols") lists the RapidRMA model fields that can be loaded through this feature. All these fields are task attributes. The middle column ("Col Type") shows the datatype of the field. The datatype of most fields is either "String" or "Integer". The datatype of "One of" is discussed below. The right column ("Imported Type") shows the column labels taken from the first line of the import file. In this dialog box, one assigns the file columns to the RapidRMA fields by dragging a file label cell up or down to place it in the same row as the RapidRMA model field to which it corresponds. The contents of the target and source cells in the "Imported Cols" column are swapped. Also, for extra fields in the "Imported Type" column that do not correspond to RapidRMA model fields, one can delete the label by right-clicking on the cell to pop up a "Remove Imported Column" button, and then clicking on that remove button. The button can be dismissed by clicking elsewhere on the dialog box. Figure 5 shows the dialog box after dragging the file field "Comments" from the "Amount of Work Min" row down to the "Comments" row.
Three fields ("Period Selection", "Amount Of Work Selection", and "Deadline Type") consist of one selection from a list of keywords. These datatype of these fields is "One Of". Click on a "One Of" cell to display a list of the valid keywords for that cell. This is shown in Figure 6.
After specifying the appropriate delimiter, click on the "Next" button to proceed. The navigation buttons at the bottom of the dialog box are:
Step 3. Final CheckThe third import dialog box is shown in Figure 7.
If the import process detects type errors or null values in any fields, the cells are flagged with a yellow background and a message for each yellow cell is shown in the box below the data display. In case of such errors, the "Finish" button will be unavailable and the import cannot be completed. One must go back to the spreadsheet or file, correct the problem there, and start the import process from the beginning. After verifying the file data properly interpreted and mapped correctly, click on the "Next" button to proceed. The navigation buttons at the bottom of the dialog box are:
Recall that the model must be saved ( < RapidRMA Task FieldsWhen using the RapidRMA "Spreadsheet Import", values must appear for every field in the comma- or tab-delimited file. The import process will not accept null (empty) values. The current "Spreadsheet Import" feature is our first release of this feature. We need to improve the error checking to check and edit the values to avoid inconsistencies. Through the "Spreadsheet Import" feature, one can set values in a model that could not be introduced when specifying values with the task editor. Later, if those values are editted with the task editor, the values will not be acceptable and the task editor will complain. Worse, some inconsistencies that could not be introduced through the task editor are not checked for at all, and it is conceivable that unidentified inconsistencies could result in an incorrect analysis. In the list of RapidRMA fields below, we discuss special considerations for values in order to maintain the model in an internally consistent state. For the general meaning of these fields in the model, see the regular RapidRMA documentation.
The minimum set of attributes required for an import file are "Task Name", "Period", and "Amount of Work". The distribution for period and work default to "Deterministic" ("Period Selection", "Amount of Work Selection").
|
||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||