Jump to content
ddinisco

Save Find as script step

Recommended Posts

ddinisco    0

Is it possible do a Save Find as a script step? Couldn't find it, but just seems like that is something they would have added in v10.

Thanks

Share this post


Link to post
Share on other sites
Lee Smith    147

It is a v10 goody, see the Videos Link

We even have a topic about them Link

Share this post


Link to post
Share on other sites
ddinisco    0

Thanks for the link. The question still remains though, can Saving a Find be scripted, so that the user is unaware that a save is even happening?

Share this post


Link to post
Share on other sites
Lee Smith    147

You can save a scripted find, in fact you could always save a find. All you had to do is to perform the find, and then create a script using the Find Script Step you had just performed. In v7, you could can modify these finds within the Script Step editor, where as in the previous versions you had to redo the find manually, and then replace the step. They also added the ability to create the find steps within the editor. In v10 you can perform a find, and then save it in the new feature. This would be just duplicating what you have already created were doing with script

From your explanation, I get the feeling that what you are really asking, is a way to save the criteria that the user has used, in some kind of Audit file.

HTH

Lee

Share this post


Link to post
Share on other sites
comment    1,382

can Saving a Find be scripted, so that the user is unaware that a save is even happening?

No. The most you can do is open the 'Edit saved Finds…' dialog for them.

Share this post


Link to post
Share on other sites
ddinisco    0

Thanks for taking the time to answer my question. To be perfectly clear, I guess what I am asking is...

I do a find which returns a found set, in that set I may omit records, constrain or extend the found set. Once I have the list just the way I want it, can I use the new Save Find feature to return me this found set, and because I cannot use the toolbar in my solution, how do I script that?

Thanks again

Share this post


Link to post
Share on other sites
comment    1,382

can I use the new Save Find feature to return me this found set

No. Saved Finds stores your find requests, not the results.

Share this post


Link to post
Share on other sites
Lee Smith    147

can I use the new Save Find feature to return me this found set,

No, but you can mark the records of the found set using something a script and a filed. I use this file, Link, scroll to the bottom of the page, as it is the last demo listed "[color:blue]Custom Record Selection System"

HTH

Lee

Share this post


Link to post
Share on other sites
Søren Dyhr    2

Although I by and large try to avoid tagging records, is Lee right here, unless the duration the found set's existence would fit inside a "session" or a possibly a shorter while - then would I do it this way instead:

http://www.sumware.net/robfm2/?p=4

--sd

Share this post


Link to post
Share on other sites
Lee Smith    147

Although I by and large try to avoid tagging records, is Lee right here

Who knows? At least he has a few things to choose from.

I use "Custom Record Selection System" when I want to have a selected group, but not lose it when doing additional finds for other criteria. A second script can remove the marked status when your done.

I hadn't seen this Article before, the technique looks helpful, thanks for the link.

Lee

Edited by Guest

Share this post


Link to post
Share on other sites
jakedeg    0

I know this topic is old, but I just wanted to comment on what an awesome solution this is. The Nightwing demo that Lee linked to is very old (and only a FileMaker 5 file) but I did some searching and found a slightly newer (and much improved) FMP 8 version here: http://www.nightwing.com.au/FileMaker/demos8/demo802.html

 

I am using a modified version of it with great success!

Share this post


Link to post
Share on other sites

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


×

Important Information

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