This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:process_steps:worksheet:wsheet_use [2021/05/24 10:12] tiger [Creating a new workbook with its first worksheet] |
en:process_steps:worksheet:wsheet_use [2024/02/18 01:56] (current) tiger |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| ====== WSheet Use ====== | ====== WSheet Use ====== | ||
| - | |||
| - | **See the older version 1 of this step (before May 2021) below** | ||
| WSheet Use is the most frequent process step in Djeeni to tell that the process has something to do with a worksheet. It does much more than just ' | WSheet Use is the most frequent process step in Djeeni to tell that the process has something to do with a worksheet. It does much more than just ' | ||
| Line 18: | Line 16: | ||
| * you can specify dynamic path like c: | * you can specify dynamic path like c: | ||
| * even combine Excel functions with Djeeni formulas like c: | * even combine Excel functions with Djeeni formulas like c: | ||
| - | * **File type**: Djeeni currently supports standard XLSX and CSV (Comma Separated Values) files. We are continuously expanding the covered file types. | + | * **File type**: Djeeni currently supports standard XLSX, XLS and CSV (Comma Separated Values) |
| * **Using Template**: Fill this optional parameter if you want to copy the content and formatting of another worksheet to it. It can be used only for Target worksheets (see the next parameter). The template data will overwrite the existing content. If you use it then you should follow the Excel syntax by adding the worksheet Excel name behind the workbook path separated by an exclamation mark. Example: if you want to use the worksheet **EmptyBudget** from the workbook **c: | * **Using Template**: Fill this optional parameter if you want to copy the content and formatting of another worksheet to it. It can be used only for Target worksheets (see the next parameter). The template data will overwrite the existing content. If you use it then you should follow the Excel syntax by adding the worksheet Excel name behind the workbook path separated by an exclamation mark. Example: if you want to use the worksheet **EmptyBudget** from the workbook **c: | ||
| * **Use worksheet as**: You can choose from Source and Target. Source worksheets will be protected by Djeeni and their data will not be accidentally overwritten or otherwise modified. Target worksheets can still be used to read data from them for processing. | * **Use worksheet as**: You can choose from Source and Target. Source worksheets will be protected by Djeeni and their data will not be accidentally overwritten or otherwise modified. Target worksheets can still be used to read data from them for processing. | ||
| * **Target worksheet Exists / Not exists action**: It can be specified what should happen if a target worksheet already exists or does not exist yet. Possible settings: | * **Target worksheet Exists / Not exists action**: It can be specified what should happen if a target worksheet already exists or does not exist yet. Possible settings: | ||
| - | * //If the worksheet does exist then use it as is; If the worksheet does not exist then stop with error:// this option is useful when we want to add data to an existing worksheet | + | |
| - | * //If the worksheet does exist then use it as is; If the worksheet does not exist then create it:// this option is useful when we want to create a worksheet and then add data to it (e.g. start a new worksheet every month and then add daily data to it) | + | |
| - | * //If the worksheet does exist then delete and recreate it; If the worksheet does not exist then create it:// this option is useful when we want to create the worksheet always from scratch (e.g. if the source is modified after an error is discovered in it then everything should be reprocessed again) | + | |
| - | * //If the worksheet does exist then stop with Error; If the worksheet does not exist then create it:// this option avoids accidentally overwriting an existing worksheet (probably an older version that must be kept) | + | |
| * **Options**: | * **Options**: | ||
| * **UpdateLinks**: | * **UpdateLinks**: | ||
| Line 47: | Line 45: | ||
| ==== Adding a new worksheet to an existing workbook ==== | ==== Adding a new worksheet to an existing workbook ==== | ||
| - | As it will be a new worksheet the **Use worksheet as** parameter must be set to **Target**. The **Target worksheet Exists / Not exists action** can have two values: either **Delete and Recreate / Create** or **Error / Create**. You do not have to take care of the workbook. If it does exist then Djeeni simply uses it. If it does not exist then Djeeni will create it as your request to have a new worksheet in this workbook implies that the workbook also must exist. | + | As it will be a new worksheet the **Use worksheet as** parameter must be set to **Target**. The **Target worksheet Exists / Not exists action** can have two values: either **Delete and Recreate / Create** or **Error / Create**. You do not have to take care of the workbook. If the workbook |
| ==== Creating a new workbook with its first worksheet ==== | ==== Creating a new workbook with its first worksheet ==== | ||
| Line 55: | Line 54: | ||
| CSV files contain exactly one ' | CSV files contain exactly one ' | ||
| - | ===== WSheet Use - version 1 ===== | ||
| - | |||
| - | **Note: this version is still supported but made obsolete. For new processes use the latest version and also update your processes to the new version.** | ||
| - | |||
| - | WSheet Use is an acronym for worksheet use - in this process step the user can specify the worksheet and the workbook that will be used in the next steps of the process and define the parameters, such as writing permissions (declaring the worksheet either as a source or a target), updating links and passwords. | ||
| - | |||
| - | {{djeeni: | ||
| - | |||
| - | Every worksheet that is used during a process (either source or target) should be declared within Djeeni with the following parameters: | ||
| - | * **Worksheet Djeeni name:** this name identifies the worksheet during the process | ||
| - | * **Workbook folder:** The physical location of the workbook to be used | ||
| - | * **Workbook name (without filetype/ | ||
| - | * **Workbook filetype/ | ||
| - | * **Worksheet Excel name:** name of the worksheet as displayed in Excel that you would like to use | ||
| - | * **Use worksheet as:** here you can either choose Source or Target (default). Source worksheets are not allowed to be modified so Djeeni protects your data sources from accidentally being overwritten. Target worksheets on the other hand can be modified in consecutive process steps | ||
| - | * **Update links in the workbook?: | ||
| - | * **If Target then worksheet action:** It can be decided what should happen if the worksheet already exists or does not yet exist. Possible settings: | ||
| - | * //If worksheet does exist then use it as is; If worksheet does not exist then stop with error:// this option is useful when we want to add data to an existing worksheet | ||
| - | * //If worksheet does exist then use it as is; If worksheet does not exist then create it:// this option is useful when we want to create a worksheet and then add data to it (e.g. start a new worksheet every month and then add daily data to it) | ||
| - | * //If worksheet does exist then delete and recreate it; If worksheet does not exist then create it:// this option is useful when we want to create the worksheet always from scratch (e.g. if the source is modified after an error is discovered in it then everything should be reprocessed again) | ||
| - | * //If worksheet does exist then stop with Error; If worksheet does not exist then create it:// this option avoids accidentally overwriting an existing worksheet | ||
| - | * **Workbook open password (Optional): | ||
| - | * **Workbook write-reserved password (Optional): | ||
| + | {{ : | ||