• 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: File Maker field definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Maker field definition


  • Subject: Re: File Maker field definition
  • From: ehsan saffari <email@hidden>
  • Date: Mon, 31 Dec 2001 00:00:02 -0600

On 30/12/2001 19:36, Brian Loomis <email@hidden> wrote in part:

>In the past to rebuild my own databases I have used applescript to pull all
>the field names from the database and write them to a text file, then used
>Excel to take the text file and import the excel file into filemaker letting
>me make new field names off the excel headers. I can also pull the
>calculations fields as text too. This works great if the number of fields
>in filemaker is less than the total column limitation of excel.

There's a better way, use the merge format. Write a merge file and drop
the file on FMP, a new db will be made using the field names, all of them
text though. You can change types and definitions later. To see how,
export in merge format from a db with one blank record, examine the
resulting text file's format.

>tell application "FileMaker Pro"
> activate
> set xfields to name of fields of layout 0 of database xcurrent
>
> repeat with x from 1 to number of items in xfields
> set xField to item x of xfields
> show document xclone
> create field with properties {name:xField}

Fields (and rels, vls and layouts) cannot be defined or edited via AS,
period. That's were the error message comes from. Take a close look at
the classes and their properties in the FMP AS dictionary, those marked
[r/o] are read only, thus not modifiable.

>(*get properties of field "TodaysDate" of document "MainMenu.fp5"
> get formula of field "TodaysDate" of document "MainMenu.fp5"
> get best type of field "TodaysDate" of document "MainMenu.fp5"
> get class of field "TodaysDate" of document "MainMenu.fp5"
> get default type of field "TodaysDate" of document "MainMenu.fp5"
> get choices of field "TodaysDate" of document "MainMenu.fp5"*)
>
>
> end repeat
>
>end tell
>
>And I get the message "objest or property not modifiable. I have looked in
>some news groups and done some google searches and am starting to thing that
>I can't create a file with AS, maybe am just going to have to define them
>and then use AS "get formula" to "cut and paste" the calculations.

With a lot of help from OneClick (http://www.westcodesoft.com) you can
use a text file as a source for the elements of a db's definition and
have OneClick drive the UI and build the db for you. But strictly
speaking creation/modification of a db is still mostly a human's job.

cheers
ehsan


  • Prev by Date: Re: Panorama and AppleScript
  • Next by Date: Re: OO Programming (kinda like BDSM, but more painful and less fun...)
  • Previous by thread: File Maker field definition
  • Next by thread: Re: [META] proper use of mailing list (was something else, but who cares?)
  • Index(es):
    • Date
    • Thread