peterr
Posts: 5971
|
Posted: 03/09/2004, 9:04 PM |
|
Here is sample process of creating a new solution:
1. Create "MySolutions" folder in {CCS}\Examples folder.
2. Copy your project folder into the new "{CCS}\Examples\MySolutions" folder.
3. Copy {CCS}\Components\Dialogs\Wizards\Examples\bookstore.js to {CCS}\Examples\MySolutions\mysolution.js
4. Edit the copied mysolution.js file as shown below (changes in bold):
#include ..\..\Components\Dialogs\Common\Common.js
#include ..\..\Components\Dialogs\Wizards\Examples\ECommon.js
var Application = ccPage.contextObject;
var ccObject = Application.Project;
var newProjectPath = copyExampleProject(Application.Options.Item("Paths","Root")+"\\Examples\\MySolutions\\NewProjectFolder\\NewProject.ccs",
Application.Options.Item("Paths","Root")+"\\Examples\\MySolutions\\NewProjectFolder\\database.mdb");
if (newProjectPath){
var newProject = Application.OpenProject(newProjectPath);
var result = RunDialog2("Wizards\\Examples\\ChangeTheme.html", Application, null, null);
}
5. Copy the file {CCS}\Components\WizardTemplates\Examples\ProjectStore.xml to MySolution.xml (keeping it in the same folder).
6. Edit the new file MySolution.xml as shown below (changes in bold):
<?xml version="1.0" encoding="ISO-8859-1"?>
<item name="My Solution Name" number="12" script="..\..\..\Examples\MySolutions\mysolution.js" img="ProjectWizard.ico"/>
7. Restart CCS. Your new solution should now appear when creating new projects and selecting the "Solutions" tab.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |