Jump to content

Related Selection


ZippyT

This topic is 2884 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am pseudo-new to Filemaker.

Currently I have a related FK field appearing on a related layout (Contacts::Contact_ID on the Task Details layout. I would like to be able to add a new task that is related to a specific contact. I particularly like the idea of having a popover window showing a list of contacts, selecting a name, and replacing the contents of Tasks::Contact_FKID with this name. The idea for this solution comes from the Invoices solution/template that ships with FMP15 Advanced (Customer Popover). I have gotten to the point where the list of All Contacts/popover appears but I can't seem to click on the name and have it added to the field in a new record on the Tasks Details layout. Essentially I just want to create a related record on another layout from the Contact Details layout.

Any help is appreciated.

Thanks.

Edited by ZippyT
Wrong subject
Link to comment
Share on other sites

Right-click the field and choose Button Setup to assign a script to run when you click the field.

The bones of the script would be something like:

Set Variable( $id ; contact::id )
Go to layout( Tasks Details )
New record
Set field( contactID ; $id )

 

Link to comment
Share on other sites

This topic is 2884 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.