Home Search

DriveWorks Pro 22
Export to Group Table

Send Feedback

Export to Group Table

The Export to Group Table will export the data, according to the rules applied, to a Group Table that has been applied to a Group.

The data exported will be available, if required, to any new Specification started once the export has taken place.

Export to Group Table

Group Tables can have new records inserted or existing records updated by creating an Export to Group Table Document.

An example of a Export to Group Table Export

Create an Export to Group Table Document

Before you begin

When creating an Export to Group Table Document a Group Table must exist in the Group that the export is to take place in.

With your Project open in DriveWorks Administrator go to Stage 4. Output Rules then Documents - Data.

  1. Click Add to open the Create Document wizard.
  2. Select Export to Group Table from the Documents list and enter a name to identify the export.

    Example of a Export Group Table what has been given a name.

  3. Click Next.
  4. Select the Table that the data is to be exported to, from the Table drop down field.

    Export Group Table stage two making one of the columns a control column.

  5. 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 Fields

    Control 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 Fields

    Common 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.

  6. Click Finish.
  7. 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:

  1. Click the Add Row button from the command bar. Row 1 will be inserted if no other rows have been added before.
  2. 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.
  3. Build the rule in the usual way in the Rule Builder and click Ok when done.
  4. Repeat steps 2 and 3 for all other cells that are required to be exported as a row.

  5. 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.

DriveWorks Tech Tips Portal

Account Login

An alternative to standard DriveWorks security for creating users which uses a Group Table.

View all Tech Tips

Export To Group And Simple Tables

Demonstrates how to export data from a Specification into either a Simple or Group Table for later use.

View all Tech Tips

Incrementing Specification ID

Specification Settings can be used to create a Specification ID that increments separately for each user.

View all Tech Tips

DriveWorks Tech Tips Portal is available to DriveWorks Pro customers with an active subscription and support contract.

Tech Tips provide cut down projects that highlight specific functionality for faster and more effective learning.

To access the portal:

  1. Go to https://my.driveworks.co.uk/learn/tech-tips/
  2. Login with your DriveWorks Pro account credentials, if asked
  3. Click the Visit Tech Tips Portal button for access

The portal provides a search facility, start typing the name of the Tech Tip (as indicated above) to display the Tip you require.