• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another FMP question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another FMP question


  • Subject: Re: Another FMP question
  • From: David Graham <email@hidden>
  • Date: Tue, 7 Nov 2000 21:59:42 -0800

At 7:39 PM -0800 11/7/00, Paul Berkowitz wrote:
> Am I totally missing the way the way the object model works?

Well, yes, but then so it appears did the FMP AS implementers! I'm sorry I
insisted on 'document': of course you're right that layout is an element of
database, too. But that shouldn't make 'cell 1 of layout 1 of database 1'
the same as 'cell 1 of database 1', except via a coercion.

Not true. See below for default containment in FileMaker.

What if 'cell 1 of layout 2 of database 1' is a different cell than cell 1 of layout 1 of database 1? Which one is meant? (see below for my guess)
<snip>

At 4:07 PM +1100 11/8/00, Shane Stanley responded:
If you don't specify a layout, it assumes you mean layout 0, which is an
imaginary layout containing all fields in the order they were defined.

Actually, if you don't specify a layout it assumes the current layout, and not layout 0.

Additionally, the cell class is kinda confusing since it's actually an intersection of a record (or request) and a field. It allows you to set a specific field for that particular record (or request) vs. setting the value of all fields which is kinda like the ScriptMaker 'Replace' command. If you haven't read through the FM Apple Events Reference database then I highly recommend it.

Here's the skinny on FM's default containment:

FileMaker Pro provides "default containment" to help make scripts shorter and determine which object to use if none is specified. Normally, to specify an object, you must explicitly provide the containment of the object. Default containment means that FileMaker Pro makes assumptions about the containment path. For example, FileMaker Pro will assume the frontmost window, document, database, or layout if an object specifier is not given.

Note that if no record is specified, FileMaker Pro assumes the first record, not the current record. To access the current record, use the current record property of a database. FileMaker Pro always assumes the current found set unless you explicitly specify the database object, in which case all records from the database are considered. Cells and fields of requests must be specified explicitly.

Object* Default containment substitutes
----------------------------------------------------------
record record 1
layout current layout
window frontmost window
database frontmost database
document frontmost document (current found set)

*Assuming the object has not been specified


- Dave

--

==============================================================

David Graham Partnerships With Industry
MIS Manager 7540 Metropolitan Dr., #105
voice : 619.681.1999 San Diego, CA 92108
fax : 619.681.1990 http://www.pwiworks.org
AOL IM: dmgraham22 mailto:email@hidden

"We assist persons with disabilities to work in the community"
==============================================================


  • Follow-Ups:
    • Re: Another FMP question
      • From: Paul Berkowitz <email@hidden>
    • Re: Another FMP question
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Another FMP question (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Another FMP question
  • Next by Date: Re: Another FMP question
  • Previous by thread: Re: Another FMP question
  • Next by thread: Re: Another FMP question
  • Index(es):
    • Date
    • Thread