usecase: Create new Version

public usecase: Create new Version
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 11.12.2005 2:32:43; Modified: 11.12.2005 5:45:53;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {F485E74E-AE26-4f86-A486-69E4686FE5B0}

Goto: Scenarios

See also: NewVersionForm, User

Appears in: UC Versions

Create new Version Scenarios
Scenario Type Detail
Show dialog Basic Path User choose from Main menu: Version -> Add new version ...
Program call EndEdit() to save version from applying simple transformation (if necessary).
Program show Dialog to offer possibillities of data source.
Dialog - enter values Basic Path Program initalize dialog NewVersionForm. After load, program fills up combo box with all table names using DBDataAdmin.Versions.FillUpComboWithTableName(...).

User fill name of new version.
User may choose from two types of source data.
a) from existing table
b) from CSV file

In case a) User choose table
In case b) User enter file name or list file using "Browse ..." button.

User create version using Create button.
Dialog - check user inputs Basic Path Program check if New version name is not empty.
Program check if table name is not empty (in case of Data from database)
Program check if file name is not empty and exists.
Dialog - create version Basic Path Program call DBDataAdmin.Versions.VersionFromTable (in case Data from database), check return value (>= 0) and close dialog.
Program call DBDataAdmin.Versions.VersionFromFile (in case Data from file name), check return value (>= 0) and close dialog.
Refresh tree view Basic Path Main application refresh tree view. And call BeginEdit() to enable/disable buttons and prepare for using simple transformation.