Kicker3 Posted January 11, 2006 Posted January 11, 2006 Help I need to script a button to do a "find" without the use of the ststus area.(and show all records after it completes the find) I've worked all day on this & I know its easy to do but my mind is fried I think. Pleas can someone help me out?
sbg2 Posted January 12, 2006 Posted January 12, 2006 Do you want a script to perform the find or do you want to Enter Find Mode, have the user define a find and once the user completes the criteria then find the records? Simple scripted find: Enter Find Mode Set Field[MyField; "My Find Criteria"] Perform Find
Kicker3 Posted January 12, 2006 Author Posted January 12, 2006 They need to enter find mode, input find text, then continue all "without" the use of the ststus area. (the continue button is on the status area)
janedoe Posted January 12, 2006 Posted January 12, 2006 hi, you can just get the user to press enter afer inputting their search criteria. this will perform the find. but if the status area is hidden they won't be able to see how many records have been found, unless you add this to your layout. cheers, jd.
Kicker3 Posted January 12, 2006 Author Posted January 12, 2006 Will the above script find across all records?
sbg2 Posted January 12, 2006 Posted January 12, 2006 You might need to create a new layout just for the purpose of the find with two buttons: Find and Cancel When the user selects the Find button on the main layout run the script: Set User Abort[Off] Go To layout{MyFindLayout] Enter Find Mode[Pause] Perform Find Go To Layout [MyOriginalLayout] The Find button on MyFindLayout would be defined to Resume Script the Cancel button would trigger a new Script to go back to Browse Mode and return to the original layout.
sbg2 Posted January 12, 2006 Posted January 12, 2006 hi, you can just get the user to press enter afer inputting their search criteria. this will perform the find. I tried this with my users and most just don't get it. I gave up and have started to add a Find Layout with a Find and Cancel button. Of course if you can get them to use the Hit Enter method there is less work that needs to be done on your part. but if the status area is hidden they won't be able to see how many records have been found, unless you add this to your layout. I use the following calculation field on each layout: Right("00000" & Get(RecordNumber);5) & ¶ & Right("00000" & Get ( FoundCount );5) & ¶ & Right("00000" & Get ( TotalRecordCount );5) cheers, jd.
T-Square Posted January 12, 2006 Posted January 12, 2006 I've encountered this problem in the past, and in the past have created a special Find Layout. More recently, I have taken to staying on the active layout and entering Find mode via script. As mentioned, the enter trick works (if the user gets it--also mentioned). However, I set up my script so that if the system is already in Find Mode, to perform whatever find the user has entered, but to go into Find mode if the user is not. This way the user can click the Find Button at any time, and the right action is taken. I haven't had any complaints about this method, but do not know for sure whether my clients get it any better than the Enter key. I suppose I could set the button up to have one label in Browse mode, and another in Find mode. I also have a calculation that listst the number of records in the current found set. David
Recommended Posts
This topic is 6893 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