Dutchy Posted March 13, 2007 Posted March 13, 2007 Hi, can't seem to get my script right. Have set 6 values in a Status field (E/PI/O/M/C/F). For each record or project one can only fill in one of the above mentioned values. Now I would like to filter all records with a value E, PI and/or O in a separate layout (list view). Made a constrain found set: Project::status [E] AND [PI] AND [O]. But than non are selected or found because there is no record which contains all three values. I know I am doing something wrong here but somehow I am not getting it. The AND should be OR??? Thanks in advanced, Dutchy
Dutchy Posted March 19, 2007 Author Posted March 19, 2007 Hello John, This doesn't seem to be working for me. I am not trying to search for one value in three different fields but searching for three different values in one field. In the field one can fill in 6 different values and I would like to filter out 3 of those in a table or list view. It seems, I have to do something different then you proposed before? Can you help: I have tried everything I can think off and nothing is working properly. Thanks Dutchy
LaRetta Posted March 19, 2007 Posted March 19, 2007 You add a new Find Request and enter the second value in the SAME field, viz: Enter Find Mode [ ] Set Field [ yourField ; "O" ] New Record Request Set Field [ yourField ; "P" ] ...etc
Dutchy Posted March 19, 2007 Author Posted March 19, 2007 I have know idea what I have been doing wrong all this time, but it is working now. Thanks a million, LaRetta and John. Dutchy
Dutchy Posted March 27, 2007 Author Posted March 27, 2007 Hi John, New question concerning this post. I am trying to pre-fix a search or find button to search for records that have a status PI/O/E (status field) and are handled by a certain person, for example D (ID field). I would like this info to be pre-fixed because this search will be done often. However the name of the client can differ, so I need to keep the search open so that the client name can be filled in manually. The only script I can think of closes the find mode before I can fill in the client name. Can you help out? Hope I am clear? Here is what I have and is not working for me: Enter Find Mode [project::ID;"D"] Set field [project::status;"E"] New Record/request Set field [project::status;"P"] New Record/request Set field [project::status;"O"] Preform find Dutchy
mr_vodka Posted March 27, 2007 Posted March 27, 2007 Create a global field so that the user can enter a name or in this case ID (gNameID). Enter Find Mode [] Set field [project::ID; gNameID] Set field [project::status;"E"] New Record/request Set field [project::ID; gNameID] Set field [project::status;"P"] New Record/request Set field [project::ID; gNameID] Set field [project::status;"O"] Preform find [] This will find all records in which if "D" was the value of ID, would yield all of D's records where teh status field is "E", "P", or "O"
Dutchy Posted March 28, 2007 Author Posted March 28, 2007 (edited) Problem solved, thanks Edited March 28, 2007 by Guest
Recommended Posts
This topic is 6786 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