X2O lets you build database-driven Adobe® Flex®, Flash® and JavaScript apps
without any server-side development. This is the blog.
Wednesday, December 17, 2008
Coming Soon: Improved UI for adding relationships
by Ka Wai Cheung
In the next week or so, we're going to release some UI improvements to relationship management in X2O. The current way you build relationships on the X2O client is not as straightforward as it can be. Here's a sneak peek at what we're working on.

Adding a related item
In the upcoming update, we give you a bit more context into how to name both sides of a many-to-one relationship. Simply finish the sentences below...



Adding a related collection
For related collections, we now provide you the option of creating either a regular one-to-many relationship ("A style belongs to many recipes but a recipe has only one style.") or a many-to-many relationship ("A recipe has many ingredients, and an ingredient can belong to many recipes.").

As it stands currently, to create a many-to-many relationship, you have to create your own associative entity. Then, you create two many-to-one relationships from the associative entity (e.g. Recipe Ingredients) to each of the relating entities (e.g. Recipes and Ingredients).

With the new update, you won't have to implicitly create associative entities if you don't want to. When creating a new related collection, X2O will ask you if it is a many-to-many relationship (see below) and then automatically create an associative entity for you.



We're going through a pretty rigorous series of tests, particularly to ensure there are no naming conflicts with the autogenerated associative entity. If all goes as planned, we'll have an update for y'all within the next week.


0 Comments:

Post a Comment

<< Home

New to X2O?
Here's how to get started...
Subscribe to our RSS feed


Recent Posts
Previous Months
Also from the makers of X2O