Hi:

In fact I have gone thru the documentations before already. 
I also have the EOModel set up already. too used to the normal DB lingo...yah...got to call them entities, attributes and objects.

as i have mentioned, I have the 2 entities COMPANY and COUNTRY already. I want a WOPopup in a web component (called newCompany) to display all the ctryNames of COUNTRY. And when user selected the country name, and click submit, the corresponding ctryID (from COUNTRY) should be placed in the ctryID attribute of COMPANY. The newCompany web component has other fields which are binded with different attributes from COMPANY. I tried creating a To-One relationship between COUNTRY and COMPANY and do the binding but seems not to work. 

so how do I do such binding and relationship? 

Warmest Regards,
Jim Wong




On 02 Feb 2006, at 11:29 AM, Jerry W. Walker wrote:

Hi, Jim,

The vocabulary of your message implies that you don't yet have an EOModel for your two tables and that you're thinking of them as tables, rows and columns rather than Entities, objects and attributes.

There is a section of the distributed WebObjects documentation that provides good tutorial information on the concepts you're asking about. You should be able to find it on your system here:


If you're not on a machine containing the downloaded documentation, you can get it online here:


If you read through that document and do the example, you should have the information to do most of what you're asking here.

Good luck,

Regards,
Jerry

On Feb 1, 2006, at 9:59 PM, Jim Wong wrote:

Hi:
help help!!

I have 2 tables. COMPANY and COUNTRY. in COMPANY, i have a country(integer type) attribute. in COUNTRY, i have ctryID(int type) and ctryName(string). Each ctryName will have a unique corresponding ctryID. 

in a web component, user will select from a WOPopup(which draws out all the ctryName from COUNTRY for display) a country of the company. Upon submit, I want the corresponding ctryID from COUNTRY to be in country of COMPANY. 

How do I create the relationships and make the bindings etc for the 2 tables and WOPopup? what codes do I have to enter manually like addObjectsToBothSidesOfRelationshipWithKey etc.?

thanks.

Warmest Regards,
Jim Wong



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]


--
__ Jerry W. Walker,
   WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems

    jerrywwalker@gee-em-aye-eye-ell.com
    203 278-4085        office




 _______________________________________________
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