![]() | |
#1
| |||
| |||
|
|
.... 2) just show records that they haven't already marked for deletion... but that "delete me" checkbox isn't cooperating. I can find the checked boxes fine (great for the upcoming "show me my deleted records" feature), but I'm not having any luck finding delme!=0, delme<0, delme=1, delme=? etc. I put another "edit box" version of the delme field on my layout and the value seems to be 0 for checked and ? for unchecked. Originally, I figured I wanted a 0 or a 1 in there, so I made value list consisting of 0 and 1. After doing some reading here in c.d.fm I changed my value list to just 1... but I'm obviously not getting the hang of this checkbox. I'd appreciate any pointers on what I should be doing to come up with a list of addresses belonging to a single owner that haven't been flagged for deletion. |
#2
| |||
| |||
|
|
I'm using FM7 to assemble a database for managing a company-wide email list. After processing our mail server's log, I end up with a list of addresses we've sent mail to, along with the "owner's" email address - which I'm then bringing into FileMaker. I want owners to be able to review their list of email recipients, and mark addresses for deletion - the perfect place for a "delete me" checkbox... or so I thought. From my "owner profile" layout I send users off to a "View My List" layout - which I'd like to 1) limit to just their addresses (working fine - setting a global to the owner's email address on the way out of the owner profile layout, then finding matching records for display on the "View My List" layout) and 2) just show records that they haven't already marked for deletion... but that "delete me" checkbox isn't cooperating. I can find the checked boxes fine (great for the upcoming "show me my deleted records" feature), but I'm not having any luck finding delme!=0, delme<0, delme=1, delme=? etc. I put another "edit box" version of the delme field on my layout and the value seems to be 0 for checked and ? for unchecked. Originally, I figured I wanted a 0 or a 1 in there, so I made value list consisting of 0 and 1. After doing some reading here in c.d.fm I changed my value list to just 1... but I'm obviously not getting the hang of this checkbox. I'd appreciate any pointers on what I should be doing to come up with a list of addresses belonging to a single owner that haven't been flagged for deletion. Eventually the database will be shared on FMSA 7.03 to both mac and PC clients. |
#3
| |||
| |||
|
|
On Thu, 16 Nov 2006 18:45:12 -0500, Helpful Harry helpful_harry (AT) nom (DOT) de.plume.com> wrote: As you've already discovered, to find the records with the checkbox "on", you just need to search for the records that have the field set to "1". (Obviously this is via a script since manually you can just turn the checkbox on.) eg. Enter Find Mode [] Set Field [CheckboxField, "1"] Perform Find [] To find the records with the checkbox "off", you can perform a "Not" find using the Omit function to leave out those that are checked "on" (there's no such thing in FileMaker as Find "!="). eg. Enter Find Mode [] Set Field [CheckboxField, "1"] Omit Record Perform Find [] This is the same as using the small Omit checkbox in FileMaker's side-toolbar when performing Finds manually. Another way is to search for records that have the field empty using the "=" symbol in the field by itself. eg. Enter Find Mode [] Insert Calculated Result [CheckboxField, "="] Perform Find [] You can't use Set Field here due to a peculiarity in the way FileMaker wants that command to function. Using the Insert Calculated Result command works, but you do HAVE to be on a layout that has the field on it ... unlike Set Field which works whether or not the field is on the current layout. Thanks for your help. Somewhere along the way I did find the FieldName= instructions, but was unable to get it to work ... now I see why. I'm certain I was just trying to Set Field with it. As I worked my way through the options on this, another one that looked like it might work, but didn't - is specifying the find details in the Perform Find step. If memory serves me right, I had success specifying a field to be this value or that value, but I wasn't having any luck getting it to process the value for globals: wner. FM kept wanting to stick theliteral string "globals: wner" in there for the search. It's an unrelatedrecord - I suppose that's the problem - but is there a way around that? |
wner" put into a
wner""]
wner]![]() |
| Thread Tools | |
| Display Modes | |
| |