Publishing Data to your Website
Do you need to upload your CatBase data to your web site? There are two ways to do this:
-
Connect directly to a remote database, such as a MySql or SqlServer database, if you're using CatBase Data Chameleon Edition.
-
Export the data to a text file and import that into your web database. You can export data as:
-
csv
-
tab-delimited
-
XML
-
Excel
-
You could also set up an Event using the Event Scheduler to automatically export or upload the data according to a schedule you define (eg every night, once a week, etc.)
Updating a MySql/SqlServer database directly from CatBase
(Requires the Data Chameleon Edition).
There are just a couple of steps required to set CatBase up to publish data directly to your Sql database:
-
Set up a Database Connection
-
Set up a Publishing Stylesheet
Export the data from CatBase to a text file, and upload that file to your web database
This method requires a little extra work, but it will do the job!
The steps you need to take are:
-
Set up a Publishing Stylesheet to export the required data from catBase to your chosen text file format. This can be a delimited text file, XML, or Excel spreadsheet.
-
Publish the data using the Publishing Stylesheet you set up in Step 1.
-
Upload the resulting file to your web server.
-
Import the file into your web database.
Specifying which records to upload to the website
If you want to upload all the data to the website, you can ignore this :)
But maybe you only want to update certain records - just ones that have been added or modified within the past week, for example. In this case:
-
Create a Set to specify which records to publish. See the Joy of Sets tutorial for more info about Sets.
-
Select that set for the Publishing Stylesheet or the Publishing Project.
-
Publishing Stylesheet: Go to the Preferences tab and select the checkbox: Only publish records that are in the set:, then choose the appropriate set.
-
Publishing Project: Open the appropriate Publishing Step and choose the option Only publish records that are in the set: and select your Set.
-
Automating the job
You can automate the entire process:
-
Set up a Publishing Project.
-
Set up a Scheduled Event with the Event Scheduler.