kmerritt Posted May 29, 2003 Posted May 29, 2003 I am having a problem with a simple find script. here is the script Enter Find Mode[] Set Field["Talent", "ShowTalent::Talent"] Perform Find[] However when I run this script is continue to get the previous find request. I can't seem to override that info. I am sure this is something very basic I am doing wrong, but it is stumping me at this point. ------------------ Thanks, Kevin
Lee Smith Posted May 29, 2003 Posted May 29, 2003 Highlight the Perform Find and uncheck the box restore at the bottom, also when the dialog box comes check the "Replace" for the "Find" HTH Lee
Fitch Posted May 29, 2003 Posted May 29, 2003 Unless the "ShowTalent" relationship is defined with a global on the left side of the relationship, it won't work in Find mode. This is because, once you enter Find mode, you're no longer "in" a record, so only globals can retain their values from Browse to Find mode. And even if your relationshpt is set up with a global, it will only set it to the value in the first related record.
kmerritt Posted May 29, 2003 Author Posted May 29, 2003 Thanks! That was my problem. The variable I was using to set the Find field was not global. I added a global variable to hold the find request and everything worked fine. The resulting script looks like this: Set Field["GlobalVar", "ShowTalent::Talent"] Enter Find Mode[] Set Field["Talent", "GlobalVar"] Perform Find[] Thanks for the help. -Kevin
Recommended Posts
This topic is 7848 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 accountSign in
Already have an account? Sign in here.
Sign In Now