On 3 Apr 2006, at 22:03, Jeffrey Pearson wrote:

So I created my EO Model and saved it in my xcode project directory.

I have added the model to my project by adding existing file and selecting it. It is now in my Web Components Group. I actually had it in the root of my project folder but it wasn't showing up. Once I moved the file into my Web Components group, WOBuilder recognized and added it to my keys. It shows up as publishersDisplayGroup.

EOModel needs to be in your Resources group - for a modern Xcode, that means it belongs to the Application Server target.

If your table (not eomodel) shows in WOBuilder as publishersDisplayGroup, that means you have added it to a WO component, which means that you don't understand the description you tried to give in the previous quoted paragraph - you missed the crucial couple of steps.

So now I added a WOString to my page to display the number of rows in the database. I bound it to [EMAIL PROTECTED] It comes back as the number zero. I also tried binding it to [EMAIL PROTECTED] It STILL comes back as the number zero. I know for a fact there are 94 rows in that table. If I go back to EOModeller, it DOES show the rows. I know I am probably binding to the wrong thing. What do I bind it to?

When you drop a table on a component, it pops up a configuration panel. You can also bring this panel up by double clicking on the check mark in the WO Builder browser. Make sure that "fetch on load" is checked in this panel, and that your database is running.

I am working from the WebObjects for Windows Developers book still...chapter 3 with the movie database example. Is there a better book I should be using?

The best beginner WebObjects books are the WROX press one (the first half of it, anyway), and the Joshua Marker one - go see Amazon. When you get a bit more experience, you'll want the book (maybe books, by then) by Chuck Hill.

Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to