Export to Simple Table
The Export to Simple Table will export the data, according to the rules applied, to a Simple Table that has been applied to a Project.
The data exported will only be available, if required, to the current Specification from which it was started.
Export to Simple Table
Tables, using the Simple Table template in the Define Tables task, can have new records inserted or existing records updated by creating an Export to Simple Table document.
Create an Export to Simple Table Document
Before you beginWhen creating an Export to Simple Table Document a table that uses the Simple Table template must exist in the Project.
With your Project open in DriveWorks Administrator go to Stage 4. Output Rules then Documents - Data.
- Click Add to open the Create Document wizard.
- Export to Simple Table from the Documents list and enter a name to identify the export.
- Click Next.
- Select the Table that the data is to be exported to, from the Table drop down field.
- The export must include at least 1 Control Field. From the Fields list, in the Field Type column, select the Field that is to be the Control Field.
Control FieldsControl Fields determine if a row is inserted, updated, or ignored.
- If the values in the Control Fields of a row do not match an existing row in the table then DriveWorks will insert a new row.
- If the values in the Control Fields of a row match an existing row in the table then DriveWorks will update the existing row.
- If any of the values in the Control Fields of a row are blank, then DriveWorks will ignore the row.
Common FieldsCommon Fields can make it easier to export to multiple rows where certain columns always have the same value in each row.
For these columns, you may only want to build one rule, instead of a separate rule for each row. To do this, mark the column as a Common Field, and DriveWorks will automatically use the same rule for the column in all rows.
- Click Finish.
The wizard will close and the Data Export Rows table will open in the Documents window.
Add the Rows to be Exported into the Document
With the Data Export Rows table open in the Documents window:
- Click the Add Row button from the command bar. Row 1 will be inserted if no other rows have been added before.
- From Row 1 click in the cell that is required to have a rule built. Click the Build Rule button from the command bar to launch the Rule Builder.
- Build the rule in the usual way in the rule builder and click Ok when done.
- Repeat steps 2 and 3 for all other cells that are required to be exported as a row.
- Click OK when done.
When will the Export Happen?
As with all Documents the automatic release is covered by the Release Documents Task. When using the Default Specification Flow this Task is applied to the Completed State on the Enter State Event.
A manual release can be applied by having a Macro Button on the user form and assigning the Release Documents Task to a Specification Macro.
Additional Resources
MyDriveWorks - Tech Tips
Table Actions
Learn how to add, edit, delete and copy data from a Simple Table inside DriveWorks with this Tech Tip. The demonstrated functionality can be applied to other Table t
Table Control
Learn more about manipulating Calculation Table data as well as Simple Table data inside DriveWorks Projects.
Item List
This example demonstrates how to simulate an Item List, using a Simple Table Control and Macro Buttons to give you more control over your user-interface.
Shopping Basket
This Project allows a user to select from a range of products and specify a quantity. This is stored in a Simple Table, used to create a summary and total price.
Tech Tips Index
View all available MyDriveWorks Tech Tips.
DriveWorks Tech Tips Index