Ask a Question related to FileMaker, Design and Development.

  1. #1

    Default Found Records

    is there a function that allows you to distinguish between found and
    omitted records? For example, a certain field = 0 for omitted, 1 for
    in the found set.

    Thanks.

    David Averbach
    UC Berkeley
    waveyd Guest

  2. Similar Questions and Discussions

    1. No records found for MySQL Table
      Hello, We have a MySQL table that we had been using PHP to query, but now we want to query the table using CF 5.0 on a windows 2000 server. The...
    2. no records
      Hi, I am writing a jsp page to get data from db. <%@ Language=VBScript %> <!-- #include file="ConnString.asp" --> <html> <head> </head>...
    3. [PHP] Form variables lost when duplicate records are found !
      --- Pushpinder Singh Garcha <pgarcha@adelphia.net> wrote: Of course. However, I don't understand what you need help with. There are many...
    4. [PHP] Form variables lost when duplicate records are found!
      then the forms variables are stored and NOT LOST ?? Have you looked into sessions? http://www.php.net/manual/en/ref.session.php
    5. Message for 0 Records Found
      if ($data = mysql_fetch_array($result)) { echo "<table>\n" do { echo "<tr>"; echo "<td>".$data."</td>\n"; echo "<td>".$data."</td>\n"; /* Add...
  3. #2

    Default Re: Found Records

    In article <708065a8.0308211336.6d8a5158@posting.google.com >,
    [email]averbach@mac.com[/email] (waveyd) wrote:
    > is there a function that allows you to distinguish between found and
    > omitted records? For example, a certain field = 0 for omitted, 1 for
    > in the found set.
    What would you do with such a function? You would only ever have found
    records.

    --
    Matthew Smith
    (to reply via email remove xxx)
    Matthew Smith Guest

  4. #3

    Default Re: Found Records

    In article <matty_d-823580.22214422082003@duster.adelaide.on.net>,
    [email]matty_d@macxxx.com[/email] says...
    > In article <708065a8.0308211336.6d8a5158@posting.google.com >,
    > [email]averbach@mac.com[/email] (waveyd) wrote:
    >
    > > is there a function that allows you to distinguish between found and
    > > omitted records? For example, a certain field = 0 for omitted, 1 for
    > > in the found set.
    >
    > What would you do with such a function? You would only ever have found
    > records.
    I would guess so that you can save a "found set" to come back to later.
    There isn't but you can write a script to do it:

    - Find your record set
    - Set the field to 1 using the Replace command.
    - Find Omitted
    - Set the field to 0 using the Replace command.
    - Find Omitted again to get you back to your original found set.

    You could get fancy and add a space and a higher number to the found
    records to save more than one found set.

    Kevin
    Kevin Hayes Guest

  5. #4

    Default Re: Found Records

    Actually, such a function would be highly useful to determine of a
    record is currently in the found set or not. But it is not possible.

    Matthew Smith wrote:
    > In article <708065a8.0308211336.6d8a5158@posting.google.com >,
    > [email]averbach@mac.com[/email] (waveyd) wrote:
    >
    >
    >>is there a function that allows you to distinguish between found and
    >>omitted records? For example, a certain field = 0 for omitted, 1 for
    >>in the found set.
    >
    >
    > What would you do with such a function? You would only ever have found
    > records.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Howard Schlossberg (818) 883-2846
    FM Pro Solutions Los Angeles, California
    Associate Member, FileMaker Solutions Alliance

    Howard Schlossberg Guest

  6. #5

    Default Re: Found Records

    [posted and mailed]

    Unless I don't understand your question correctly, how about a script...


    Enter Find Mode
    (Insert Query)
    Preform Find
    Replace Contents ("FoundStatus","1")
    Show Omitted
    Replace Contents ("FoundStatus","0")


    [email]averbach@mac.com[/email] (waveyd) wrote in news:708065a8.0308211336.6d8a5158
    @posting.google.com:
    > is there a function that allows you to distinguish between found and
    > omitted records? For example, a certain field = 0 for omitted, 1 for
    > in the found set.
    >
    > Thanks.
    >
    > David Averbach
    > UC Berkeley
    Brent Simon Guest

  7. #6

    Default Re: Found Records

    waveyd <averbach@mac.com> wrote:
    > is there a function that allows you to distinguish between found and
    > omitted records? For example, a certain field = 0 for omitted, 1 for
    > in the found set.
    Just in case this will do what you want, Status(CurrentFoundCount) gives
    you the currently found set.

    As to distinguishing whether a specific record is in the found set,
    there is no record specific marker or status function that will do that.

    You could capture all the currently found record IDs into a global, and
    determine by relationship from the global to the Record ID field whether
    or not a particular record was part of that relationship or not. This
    gives you an unstored calc, but still might do what what you want.

    --
    Lynn Allen Allen & Allen Semiotics
    FSA Associate Filemaker Consulting & Training
    [email]lynn@semiotics.com[/email] [url]http://www.semiotics.com[/url]
    Lynn allen Guest

  8. #7

    Default Re: Found Records

    In article <vkci9d3b079iab@corp.supernews.com>,
    Howard Schlossberg <howard@antispahm.fmprosolutions.com> wrote:
    > Actually, such a function would be highly useful to determine of a
    > record is currently in the found set or not. But it is not possible.
    But how would you use it? You would only ever be working on records in
    the found set. Those not in the found set would not be accessible. To
    get to those records not found would require you to do a new find, which
    would make them found.

    I think I would need to see an example of what you want to do to
    understand what you want. It just doesn't make sense to me.

    --
    Matthew Smith
    (to reply via email remove xxx)
    Matthew Smith Guest

  9. #8

    Default Re: Found Records

    What if you were looking at a record in a portal or in another way
    through a relationship? It wouldn't necessarily be in the found set for
    this. You might use it to flag a portal row to be highlighted if the
    record is currently in the found set.

    Matthew Smith wrote:
    > In article <vkci9d3b079iab@corp.supernews.com>,
    > Howard Schlossberg <howard@antispahm.fmprosolutions.com> wrote:
    >
    >
    >>Actually, such a function would be highly useful to determine of a
    >>record is currently in the found set or not. But it is not possible.
    >
    >
    > But how would you use it? You would only ever be working on records in
    > the found set. Those not in the found set would not be accessible. To
    > get to those records not found would require you to do a new find, which
    > would make them found.
    >
    > I think I would need to see an example of what you want to do to
    > understand what you want. It just doesn't make sense to me.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Howard Schlossberg (818) 883-2846
    FM Pro Solutions Los Angeles, California
    Associate Member, FileMaker Solutions Alliance

    Howard Schlossberg Guest

  10. #9

    Default Re: Found Records

    To all who are confused as to what the heck would want to do this for,
    I wanted to have a portal on the side of my layout that showed the
    names of all records that are found. Instead of scrolling through
    records, the user would just click on the name to jump to that record.

    Many thanks to those who suggested that simple script involving
    "replace contents." The functionality is there, but the problem is
    cosmetic. It takes about three seconds before the find, show omitted,
    and show omitted (again, to return to the original found set) kicks
    in. Well, that would be a great addition to the status function
    family, in my opinion.

    Best,

    David Averbach
    UC Berkeley
    David Averbach Guest

  11. #10

    Default Re: Found Records

    i've had to do this very thing myself, for a rather complicated
    statistical analysis. it's a small cheat but if you add a field for a
    flag of some sort, then you can put in a value that demarcates it for a
    later, easy to remember find

    i) find your original set
    ii) replace varFlag = 0 for all records
    iii) loop through record next, exit after last
    a)if record is to be omitted, set varFlag = 1
    b)else just go to next one
    iv) perform task with found set
    v) find the set where varFlag = 1

    waveyd wrote:
    > is there a function that allows you to distinguish between found and
    > omitted records? For example, a certain field = 0 for omitted, 1 for
    > in the found set.
    >
    > Thanks.
    >
    > David Averbach
    > UC Berkeley
    Foszae Guest

  12. #11

    Default Re: Found Records

    Its important to note that none of the suggested scripts for flagging
    records in a found set will work in a multi-user environment. As
    other users perform their own finds, they'll flag and de-flag the
    records the original user had flagged. If the original user were to
    do a search for the flagged records, they'd get a different recordset.
    Also, if the flag were used to show records in a portal, then the
    portal contents would change every time another user on the network
    performed a find & flag.

    There is a work around for this. First, each user must have a unique
    user ID stored in a global. The flag field would have to be a
    multi-key: when a user needs to flag records, you first remove their
    ID from the flag field in every record where their ID appears in the
    flag field (don't clear the flag; you might erase other User's IDs...
    just remove the current user's ID). Then append the current user's ID
    to the flag field for each record in the found set. Make sure to
    seperate user IDs in the flag field with carriage returns.

    Alternatively, if you just need to relate to the found records, as
    opposed to the omitted records, then you can use a global text field
    to store a list of carriage return delimited record IDs. Then you can
    create a self-relationship from the global multi-key to the record
    IDs. An important caveat the global text multikey is that it can only
    hold 64k. If you are using 6 digit padded keys, ie. 000023, then this
    key can only store approx 9,100 IDs before you exceed the text block
    (memory) limit.
    Mariano Peterson Guest

  13. #12

    Default Re: Found Records

    What do you suppose a good way to remove the flag field would be? I
    know insert text would work, but then you could insert it more than
    once and that would be hard to keep track of. Then there's the
    problem of removing it.

    What I would want would be to check the specific check box
    corresponding to the flag field through a button and script, not
    actually checking the box. Is there any way to do this?
    > There is a work around for this. First, each user must have a unique
    > user ID stored in a global. The flag field would have to be a
    > multi-key: when a user needs to flag records, you first remove their
    > ID from the flag field in every record where their ID appears in the
    > flag field (don't clear the flag; you might erase other User's IDs...
    > just remove the current user's ID). Then append the current user's ID
    > to the flag field for each record in the found set. Make sure to
    > seperate user IDs in the flag field with carriage returns.
    David Averbach Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139