CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Codecharge Studio Solution Creation?

Print topic Send  topic

Author Message
steveni

Posts: 33
Posted: 03/08/2004, 4:34 AM

I have substantially modified the store solution to suit my needs. Ideally I would like to save this solution so I may reuse it as a solution rather than copy the project and modify.
Is it possible to save projects as new solutions?
If not, what is the recommended method of reusing a project as a template for new projects?

Thank you.
View profile  Send private message
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
View profile  Send private message
steveni

Posts: 33
Posted: 03/09/2004, 11:30 PM

Thanks Peter,:-)
Looks like a comprehensive solution.
I will give it a try and see how it goes.
Regards,
Steven I
Active Online
Australia
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.