Assets - Tables
From VersaVision Support
- OVERVIEW
- Tables is an area where users can create customized tables to store data. These tables can be used for a number of different options. Examples would be Part Numbers, Materials, Employee Names, etc.
- The Advantages to this repository is to allow the user to easily update existing images in one place. Any updates made to the files here will automatically reflect in any application that is using/accessing the files.
- NAVIGATION
- ADD A TABLE
- Click on the Description field and enter a description for the Table if needed. This description will show on the Tables List.
- The Next step in the process is to setup the columns needed for the Table. By default, there is a Key field already added. The data in this cell is what will be used when a command is created to look up data from the table. This field is setup as a Primary Key.
- An example of this would be Employee ID is the Key (Primary Key) the second column would be added for Employee Name. The system would look for the Employee ID then return the Employee Name.
- The Primary Key cannot have the duplicate data, each one must be unique.
- Click in the Column Name field and enter a Name for the column in the table. Leave the Primary Key switch toggled. Our example will show the Employee ID/Name table used above.
- Click on the Description field and enter a description for the Column if needed. This description will show when editing the Setup/Definition of a Table.
- The Type field is used to define what type of data will be stored in the Column. There are multiple options available when the down arrow is selected. Select the appropriate Type - the example here will be Integer.
-
- Text - any combination of characters/text can be entered into this cell.
- Integer - only a number can be entered into this cell.
- Boolean - the cell can only be on or off.
- Decimal - the cell can accept a number with decimal places.
- Date/Time - only a date and time combination can be entered into this cell.
- Date - only a date can be entered into this cell.
- Time - only a time can be entered into this cell.
- Identity - this is a number that will be automatically entered when new data is added to the table.
- Click on the Add Column button at the top of the New Table window. Generally, a table will need more that 1 Column.
- The New Column properties will appear below any other Columns. Click in the Name field and enter a name for the column.
- For this example, the Primary Key toggle is in the Off position. This table will use the Employee ID as the primary key.
- Click on the Description field and enter a description for the Column if needed. This description will show when editing the Setup/Definition of a Table.
- The Type field is used to define what type of data will be stored in the Column. There are multiple options available when the down arrow is selected. In this example the Text option is being used.
-
- Text - any combination of characters/text can be entered into this cell.
- Integer - only a number can be entered into this cell.
- Boolean - the cell can only be on or off.
- Decimal - the cell can accept a number with decimal places.
- Date/Time - only a date and time combination can be entered into this cell.
- Date - only a date can be entered into this cell.
- Time - only a time can be entered into this cell.
- Identity - this is a number that will be automatically entered when new data is added to the table.
- Toggle the Allow Nulls switch to On (Allow) or Off (Not Allow). If there is a need for the cell to be blank, contain no data, turn the switch On. In this example, the switch is Off as there will always be a Employee Name associated with an Employee ID.
- Select the "X" next to the Save button to close the Table properties window and return to the Tables list.
- EDIT A TABLE
- To Edit the setup of a Table (Name, Columns, Description, Type or Nulls) click on the 3 dot menu to the right side inline with the Table name.
- Click on the Primary Key toggle to turn it On or Off. We suggest that you do not turn off an field that is already set as the primary if you have entered data into the table.
- To Remove an existing Column from the table, click on the 3 dot icon on the right side of the Column cell.
- Select the Delete option from the pop-up menu. Then will NOT be any warning message, the column will automatically be removed.
- Once all changes have been made to the Table, click on the Save button next to the Add Column button.
- COPY A TABLE
- To create a Duplicate/Copy of an existing Table, click on the 3 dot menu to the right side inline with the Table name.
- A Copy Table window will pop-up. The Table Name will show the Table you copied plus COPY. We suggest you change the Name of the table.
- Edit any of the Column fields required. Once all of the changes have been made, click on the Save button.
- DELETE A TABLE
- To Delete/Remove an existing Table, click on the 3 dot menu to the right side inline with the Table name.
- A warning message will appear on the screen. Select Delete to remove the Table or select Cancel to keep the Table.
- ADD DATA TO A TABLE
- A new page will load showing the layout of the table. Click on the Add Row button in the top right corner of the page.
-
- File:Asset-Tables-38.png|link=Assets - Tables
- A New Record menu will pop-up. All Columns setup in the Table will show as fields. Click in the 1st field and enter the required information.
- Repeat the process to enter information into all required fields. Once all required fields are filled out, click on the Save button to save the record/data to the Table.
- EXPORT TABLE DATA
- IMPORT TABLE DATA
- To Import data to an existing Table, click on the 3 dot menu to the right side inline with the Table name.
- A File Explorer window will automatically open. Navigate to the CSV or Excel file containing the Table Data - double click on the file.
- There are 2 Import Options available - "Delete Existing Records" or "Update Existing Records". Select the appropriate option.
- Select Import to Delete or Update the data in the table. Select Cancel to not make any changes to the Table data.