Jump to content

Querying find request


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

Recommended Posts

Is there some way that I can get the status of the omit checkbox of a find request?

I know that if I am in find mode, the contents of the fields are the find criteria. I would like to be able to access whether the omit box has been checked also.

Link to comment
Share on other sites

I don't know of any way of statusing the omit box. Chances are if you change how you are scripting whatever you're doing, you won't need to. How about having the user click a global field check box for omit and then set omit for real in your script?

-bd

Link to comment
Share on other sites

I just happened to find this yesterday while I was fooling around. You can query the omit status with applescript. It goes like this:

code:


tell app "Filemaker Pro"

set IsOmitted to omitted of request 1

if IsOmitted

set cell "gOmitted" of current record to "1"

else

set cell "gOmitted" of current record to "0"

end if

end tell


This will set a global field gOmitted to 1 if it is an omit request, and 0 if it's a normal request. You will have to cycle through all requests to get the omit status for each.

This doesn't mean I recommend doing it this way, but you did ask. smile.gif

Link to comment
Share on other sites

This topic is 7853 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
 Share

×
×
  • Create New...

Important Information

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