![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Field1 is always set to one of the following: Entered, Approved, Completed, See Notes. I want to use a script to find all records where Field1 is not Completed. |
#4
| |||
| |||
|
|
I am a newbie to filemaker and scripting. Field1 is always set to one of the following: Entered, Approved, Completed, See Notes. I want to use a script to find all records where Field1 is not Completed. I tried starting out with the following by looking at other scripts in our db that the developer put in. Allow User Abort [Off] Set Error Capture [On] Go to Layout ["Admin"] Enter Find Mode [] Insert Text [Select, "Field1","Approved"] Perform Find [Replace Found Set] Go to Layout ["Layout2"] Enter Browse Mode [] The admin layout has the Field1 on it. Layout2 is a list view. If I go to Layout2 and show all records and then run the script, I still show all records in the list view instead of just the ones that are marked approved. |
|
So, I would appreciate help with getting the find to work as well as finding all records except Completed. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
In article <1166559224.037567.304270 (AT) 73g2000cwn (DOT) googlegroups.com>, "krollenhagen" <keith.rollenhagen (AT) gmail (DOT) com> wrote: So, I would appreciate help with getting the find to work as well as finding all records except Completed. There's two basic ways to achieve this. A. You can find both "Entered" AND "Approved" records and then use the "Show Omitted" script command to swap the Found records with the 'unfound' records: Enter Find Mode [] Set Field [Field1, "Entered"] New Record / Request Set Field [Field1, "Approved"] Perform Find Show Omitted snip |
\
#7
| |||
| |||
|
|
Thank you. Got that working. Now, I would also like to be able to show all Field1 NOT "Completed" AND DatePromised < a user entered date. How do I get a text entry box to pop up in a script and capture the user input and then use that as a variable in the script. |
![]() |
| Thread Tools | |
| Display Modes | |
| |