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

Constrain Found Set - different behaviour on Windows


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

Recommended Posts

Posted

Hello,

In a script I'm using, the data is constrained using the Constrain Found Set feature.

On OSX this works fine, and if there are no results found no records are displayed. However, in Windows, if no results are found the records are displayed before the found set is constrained, which means the results are wrong.

Is there any way around this?

Thanks. :)

Posted

I doubt that there is a diff in behavior btw win and mac. Perhaps if you share the code, we can pinpoint what little thing is causing the difference in your circumstances.

Posted (edited)

Hi. Thanks for your reply.

The code is:

Enquiries > Sales Conversion 

Set Error Capture [ On ] 

If [ Get ( WindowMode ) = 0 ] 

Enter Find Mode [  ] 

[ Pause ] 

Else 

End If 

Perform Find [  ] 

Set Field [ salesman details::Conversion Found; Get ( FoundCount ) ] 

Constrain Found Set [ Specified Find Requests: Find Records; Criteria: Contact Data::Sold_Tunit: "Sold" ] 

[ Restore ] 

If [ Get ( FoundCount ) = 0 ] 

Exit Script 

End If 

Set Field [ salesman details::Conversion Sold; Get ( FoundCount ) ] 

Set Field [ salesman details::Conversion Percent; salesman details::Conversion Sold / salesman details::Conversion Found * 100 ]

The "If [ Get ( FoundCount ) = 0 ]

Exit Script

End If" was my attempt to fix it, but it didn't work!

Edited by Guest
Posted

not the most elegant script, but this step raises a question:

Criteria: Contact Data::Sold_Tunit: "Sold" ]

[ Restore ]

are you in the right context for this field? It doesn't match the other TO "salesman details".

Posted

The salesman details and Contact Data tables are linked, if that's what you mean?

The script works absolutely fine on OSX and on Windows unless there are no results returned, which is why I'm a bit confused.

Posted

What version of FMP are you running - there is conflicting information in your avatar.

FMP 7 was quite "buggy".

Posted

No. Do you recommend doing this?

I'd rather be sure it isn't a problem with the script before I update the program as we run Filemaker on multiple machines and this may cause other problems.

Posted

Hi.

I'll have to do the update tomorrow as all of the Windows machines are in use. However I can test my script tonight on Filemaker 9 to see if the problem persists.

I'll post back here with details.

Many thanks for all of your help. :)

Posted

Just an update. The script works fine in Filemaker 9, so obviously it's a bug in 7. I'll install the updated on the Windows machines tomorrow and post the details.

Posted

7.01 was extremely buggy. Anybody using it should most definately upgrade to 7.03

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