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

Constrain Found Set - different behaviour on Windows


Examinus

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

Recommended Posts

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. :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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".

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

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