|
Solution
Copying forms is a relatively complex task because DriveWorks v5 uses named ranges in the design master to identify various dynamic properties of each control.
If the following is adhered to, copying forms becomes possible.
DriveWorks v6 will have copy and paste functionality with the addition of Rules Intelligence it even identifies if any control names exist and increments the name AND any rules that have been applied to the control.
Please follow the instructions below: -
Note - You must ensure that each forms and the controls on them have unique names that cannot exist in the project they are being copied to.
Project A is referred to as the project forms are copied to.
Project B is the project forms are to be copied from.
Projects A and B do not need to belong to the same group.
The following needs to be done on completion of the design of the forms.
1. Close DriveWorks
2. Copy the xml file created by Project B to the Project A location - (The location will be the directory selected when creating the project the xml file will be named ProjectBName.FormName.form)
3. Rename the xml file to the following format ProjectAName.FormName.form.xml (FormName needs to remain the same as originally created)
4. Open the design mater of Project A and Project B in Microsoft Excel
5. Rename the Input Worksheet of ProjectB to Input2
6. Move the Input2 worksheet of Project B to the Project A workbook
7. In the Input2 worksheet that is now in the Project A workbook Cut the entire row of all the form controls. (Click on the row number and drag down to select multiple rows)
8. Switch to the Input worksheet in Project A workbook and highlight the next blank row and paste.
9. In the Navigation worksheet of Project B copy the single row that identifies the form that has just been copied and copy to the clipboard.
10. Switch to the Navigation worksheet in Project A workbook, highlight the next blank row and paste the contents. The Top and Left numbers in column's G & H can be modified to ensure the form is apparent when opened in DriveWorks.
11. Save and close Project A workbook (don't save Project B in case it needs to be referred back to)
12. Open DriveWorks and the form should now be copied.
Note if there are any rules in the copied controls that refer to variables, constants, lookups etc. these will need to be copied to Project A in a similar way as steps 5 to 8 but with the DWVariable, DWConstant or DWLookup worksheets. |