I think the problem here is, that the Date Field has to be on the
Layout for the Insert Calculated Result to work. Which means that Nic
will have to run the find in the Related file using Perform Script >>
External
On Jul 4, 2008, at 10:24 PM, Jens Selvig wrote:
The calculation has to return a text result and it has to be in the
form of "mm/dd/yyyy...mm/dd/yyyy" and be inserted as in an "insert
calculated result" script step. You must also be inserting into a
'date' field in your find request.
I don't believe this to be a correct statement. From the Online Help
for v6
"Finding ranges of information"
Within the range you specify. A range is first to last character in
the alphabet for text (A - Z); least to greatest for numbers (1 -
10) ; and earliest to latest for date and time
Try making a new database as a test to verify this.
If you still can't get it to work, you might try recovering your DB
and then reimporting into a clean empty version of the DB. Or post
an exact copy of your script so we can analyze it more carefully.
Jens
On Jul 4, 2008, at 8:34 PM, Nicholas Geti wrote:
Yes. I tried both text and date.
----- Original Message ----- From: "Lee Smith" <[EMAIL PROTECTED]
>
To: <[email protected]>
Sent: Friday, July 04, 2008 8:52 PM
Subject: Re: Cannot enter date field for FIND from script
Is the result of the Calculation field = Date?
On Jul 4, 2008, at 5:02 PM, Nicholas Geti wrote:
I tried it with and without the RESTORE.
Please note that the Actual Invoice Field is a calculated result
from a related table. I think that this is the problem. I have
several other examples where this technique works but the date
field is a normal, noncalculated value.
----- Original Message ----- From: "Hal Heidtman" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 04, 2008 7:49 PM
Subject: Re: Cannot enter date field for FIND from script
Nic,
When you enter the FIND mode....is the "restore" causing a
problem???
I think I saw that in your original post.
Hal
On Jul 4, 2008, at 7:31 PM, Nicholas Geti wrote:
Insert Calculated Result doesn't work. The resulting field
remains blank in
the Find mode. I can enter a range of dates manually and this
works.
The COPY/PASTE option doesn't work either.
----- Original Message ----- From: "Lee Smith" <[EMAIL PROTECTED]
>
To: <[email protected]>
Sent: Friday, July 04, 2008 6:22 PM
Subject: Re: Cannot enter date field for FIND from script
and use Insert Calculated Result
Insert Calculated Result [ AnyDate,
DateToText(Status(CurrentDate)) &
"..."& DateToText(Status(CurrentDate)+60) ]
On Jul 4, 2008, at 2:11 PM, Steve Cassidy wrote:
IIRC in FMP5/6 it was not possible to Set a date field with
anything
except a proper date -- even in Find mode. So you cannot use
Set Field
in a script in order to set up a find on a date range.
Instead, you have
to use the Paste Result command -- or was it called
something else in
FMP5/6? It was a long time ago...
The original poster seems to have a number of problems all
rolled into
one question. Certainly the attempt to copy from a field in
find mode
will not work. And I'm not sure that two periods (..) works
to set up a
date range; it should be three (...). It may take a bit of
sifting
through the possibilities -- and maybe doing some manual
finds -- to get
this working.
Steve
On 4 Jul 2008, at 21:50, Jonathan Fletcher wrote:
Make the global a plain text field: you need _text_ to set
into the
date field in Find mode. If it is a date field it will not
store your
date range.
Be sure to use the proper date range search syntax.
E.g. "7/1/08...7/3/08" or "07/01/2008...07/03/2008"
Jens Selvig
...Lost in Montana...