Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Hello again filemakers,

I have 2 tables one has contact data and the other has job data. They are related by a serial customer id number. I have already made a button that users can click and create a new job. Now i need to make a button that will allow them to view only the jobs for the customer they are looking at. So if i'm looking at my customer the Poop Bank, i want to have a button that will take me to the other table and display only the jobs that were made for the Poop Bank.

Here's the script i have tried so far but it's not working:

Go to Layout ["Billing Entry" (Billing Entry)]

Set Variable [$ID; Value:Contacts::Customer ID]

Enter Find Mode[]

Perform Find [Restore]

Exit Script []

That will pull up the correct jobs if the customer i'm looking for was the last one i created a job for. If i try to go to a different customer it will continue to pull up the same customer as with the first find.

Is it not putting new data in the variable?

Thanks

Taylor

Posted

pretty close! Grab the customer ID while still on the customer layout where the button exists...

Set Variable [$ID; Value:Contacts::Customer ID]

Go to Layout ["Billing Entry" (Billing Entry)]

Enter Find Mode[]. <------- remove this line as unnecessary

Set Error Capture [ on ]

Perform Find [Restore] <----- the restore should select BillingEntry::CustomerID and put $ID as the value

If [ not Get ( FoundCount ) ]

Show custom dialog [ no records found ]

Go to layout [ original layout ]

Exit Script []

End If

  • Like 1

This topic is 4442 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.