Jeff Watkins <[EMAIL PROTECTED]> writes:

> I'm diving into the DataController goodness to support Ajax (via a  
> specialised controller
> AjaxDataController) and I was wondering how  the CRUD layer was planning to 
> handle relations.
> 
> It would be really nice if I could access the following URL:
> 
>      /user/jeff/email_addresses
> 
> and receive a list of all of my email addresses. I could then have  URLs 
> similar to:
> 
>      /user/jeff/email_addresses/1/delete
> 
> to remove an address, or:
> 
>      /user/jeff/email_addresses/1/update?city=Newburyport
> 
> or even:
> 
>      /user/jeff/email_addresses/create?street=3+Market+Square+Apt +3&city=...
> 
> Am I just crazy here?

For the first one, I am in doubt.  For the last alternatives I think you are
:-)  Specially because it will be very complicated to map things from one
class -- user? -- to another -- email_addresses -- and activate the right
methods.

On the other hand, writing this on your own is possible.  I just think that
this is not that simple.

I see where you want to get -- and I really like the idea -- making this into
a drilldown form.

If this goes in the direction that Qt implements this kind of control, it will
be awesome (http://doc.trolltech.com/3.2/designer-manual-8.html).

But I think I'd be happy if it allowed me to insert an URL in one of the
fields that led me to the specialized control for that specific item.  So,
when I clicked one of the email addresses -- in your example --, I'd be taken
to a new page -- that can have a filter, to restrict which records I'll be
seeing and in this case it will show all emails associated with user "jeff" --
with the record that contains the email select (i.e. open for editing).

But being able to have an "infinite" drilldown would be really nice.


-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to