Related fields on new record

A place for users and developers of the Xataface to discuss and receive support.

Related fields on new record

Postby wisni1rr » Fri Mar 23, 2012 8:07 am

I was wondering how I could add related fields to the new/edit record screen? I understand that I can do this with widget:type=grid fields to an extent. I want to have my related field appear as it was just an extension of the first table.

Can anyone lead me on the path to finding this answer?

Thanks a lot!
wisni1rr
 
Posts: 107
Joined: Mon Feb 13, 2012 9:03 pm

Re: Related fields on new record

Postby shannah » Fri Mar 23, 2012 12:35 pm

Currently there's no automatic way to do this. This will be a new feature in 2.0 when it is released (as part of the ajax_form module) that is currently in development.

You could sort of simulate this with transient fields then use the afterInsert() or afterSave() trigger to add them to the related record.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Related fields on new record

Postby wisni1rr » Fri Mar 23, 2012 3:12 pm

Thanks, Steve!

If its not asking too much, can you give a small example.

From the sound of it, this would work. It also seems like the record would be missing when loading the record for an edit situation. Is there a way to pull the values with an ON LOAD style event to place the data in the transiet field. Maybe I'm over thinking this...

Your help is always appriciated!
wisni1rr
 
Posts: 107
Joined: Mon Feb 13, 2012 9:03 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 25 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved