• 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: More FMP8 Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More FMP8 Questions


  • Subject: Re: More FMP8 Questions
  • From: Tim Mansour <email@hidden>
  • Date: Sat, 27 Jan 2007 12:58:19 +1100

set my_list to cell "InvoiceID" of (every record of table "Invoices" whose cell "Status" is equal to "Open") fails if there is one found record (displaying the characters of the found cell as a list {"1","0","0"}) thing

Returning a list for the contents of one field would be normal if InvoiceID is a repeating field (with 3 repetitions) but otherwise, I'm not sure why you're getting that.



Can you think of any way to figure out the number of records in a found set in a different fashion? If I can find out the number of found records without dealing with the list command we were discussing, I can probably work around this, but I don't know of any other way.


To work with the found set you use the "document" object. So you can say, for instance:

show (every record of table "Invoices" whose cell "Status" is equal to "Open")
set num_found to count of records of document 1


or if it's just the number of records you want:

set num_found to count of records of (every record of table "Invoices" whose cell "Status" is equal to "Open")

PS. If you need to, use document "windowname" instead of document 1 (which will address the found set of the frontmost window).

--
Tim Mansour <email@hidden>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >More FMP8 Questions (From: Chris Prew <email@hidden>)
 >Re: More FMP8 Questions (From: Tim Mansour <email@hidden>)
 >Re: More FMP8 Questions (From: Chris Prew <email@hidden>)
 >Re: More FMP8 Questions (From: Tim Mansour <email@hidden>)
 >Re: More FMP8 Questions (From: Chris Prew <email@hidden>)

  • Prev by Date: Re: Where does Mail store deleted messages?
  • Next by Date: Re: More FMP8 Questions
  • Previous by thread: Re: More FMP8 Questions
  • Next by thread: Re: More FMP8 Questions
  • Index(es):
    • Date
    • Thread