home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / database / setqry.zip / README.DOC < prev    next >
Text File  |  1993-06-18  |  2KB  |  32 lines

  1.     This Zip Archive consists of the two screen files describing two 
  2. techniques to limit the display and editing of records in a table. This 
  3. is a similar to the "View" concept in SQL.
  4.  
  5.     The first example is called SetFltr.Fsl. This shows how to restrict
  6. your view of records by using the SetFilter method on a Secondary (or 
  7. probably Primary) Index. By pushing the proper PushButton, it limits 
  8. the set of records to those who live in the state of "CA".
  9.  
  10.     The second example (Qry.fsl) uses a Query as part of the basis for 
  11. the building of a Form. In this Query, the Key field is checkmarked. 
  12. Then other related fields are tied to this field. Any of the fields 
  13. with the exception of the Query field can be changed. This is a good 
  14. way to limit the records to be edited. Since the Query is only 
  15. returning the set of key field entries that match the Query criteria, 
  16. it executes fairly quickly. 
  17.  
  18.     The caveats for Qry.fsl are as follows:
  19.  
  20.     1. Once all of the linkages of the tables are set up, you'll need 
  21.        to go into the Data Model and reset the read-only attributes. 
  22.        "Right Click" on the Tables in the data model.
  23.  
  24.     2. Unfortunately, since these tables ARE look-up tables, you cannot 
  25.        perform searches for data elements like you usually can unless 
  26.        you write some ObjectPAL. What you would have to do is trap the 
  27.        Locate Function, check for the search being on the key field 
  28.        (allowing it to go through if it is), else open the table using 
  29.        a TCursor and search for the requested data in the table. Once 
  30.        found, you'll need to get the key value from that record and 
  31.        search in answer table for that key value.
  32.