Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Default for foreign key of mash subform new record

Locked
agnar
Posts: 37
Joined: Sun Apr 21, 2013 10:58 pm

Default for foreign key of mash subform new record

Unread post by agnar »

I have a customer (company) table and a customer_contact table.

Code: Select all

customer
   customer_id
   ...
customer_contact
   customer_contact_id
   cct_customer_id
   ...
For the customer edit screen I have a mash subform of all contacts of that customer.

When I click [Add record] on the customer_contact subform, I want the value of the cct_customer_id to be preassigned (and preferably read-only) with the value of the current customer_id.

How do I do that?
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Default for foreign key of mash subform new record

Unread post by massiws »

Agnar,
you have to use the hash #browse_filter#: have a look at this video http://www.youtube.com/watch?v=6d_nYErMGPI)

Hope this helps,
Max
agnar
Posts: 37
Joined: Sun Apr 21, 2013 10:58 pm

Re: Default for foreign key of mash subform new record

Unread post by agnar »

Thanks.

Finally, I got the idea of how this works...
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Default for foreign key of mash subform new record

Unread post by admin »

.
Locked