Rip's Domain

ICEGen: Part2 – Generation

Posted in ColdFusion, ICEGen by rip747 on July 29, 2007

In Part 1 I told you how to download and install ICEGen into your project.

Now that you have ICEGen installed, it’s time to start using the thing to generate some code! Fire up your favorite browser and browse to the directory that you installed ICEGen to. If everything is kewl, your page should look like this:

icegen main page

ICEGen only has 5 settings that you need to give it to start generating code.

1) DSN Name – Enter in the name of the DSN that you have setup in your CF Administrator that you want to generate code for.

2) DSN Variable – Enter the DSN Variable that ICEGen should use to reference the DSN Name within the generated code. This is the value the will go into the dsn attribute of the cfquery tag. It can be anything you want and you must surround it with pound signs.

3) Database Type – Choose the database server type that the DSN resides on. For now ICEGen only supports Microsoft SQL Server. In the future I hope this list grows to include other database servers.

4) Save Project Path – This is where you tell ICEGen what directory you want to save the generated code to. The directory doesn’t have to be created already as ICEGenwill create the directory path if needed. Remember that this setting is relative to the webroot of the project. The path must begin with a “/”. So let’s say you wanted to save the generated code to http://www.mykewlproject.com/mymodel directory; enter “/model” (without the quotes) into the field.

5) Library Path – Enter the library path, relative to the weboot, for the saved generated code. Most of the time, this will be identical to the “Save Project Path” setting. So using our http://www.mykewlproject.com/mymodel directory as reference; we would enter “mymodel” (without the quotes.).

That’s pretty much it, now click “Submit” and ICEGen will start to generate the code and save it to the directory we specified. When ICEGen is finished, you will get the message below telling you that it finished and how long it took to generate the code.

ICEGen - showing the finished message

In out next installment, we’ll look at the directories that ICEGen created. Later we’ll start exploring the code.

ICEGen Part 3 – Directories and Files
ICEGen: Part 1 – Installation

One Response

Subscribe to comments with RSS.

  1. […] ICEGen: Part2 – Generation ICEGen: Part 1 – Installation Posted by rip747 Filed in Uncategorized […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: