On Jun 23, 2009, at 2:21 PM, Colm Osiris wrote:
> Hi Experts
>
> I have a client using FMP9, who has a database which is pretty much
> a card system. There's a record for each contact. He does a find on
> the name so he can phone them.
>
> He wants to know whether it's possible to see at a glance the most
> recent, say 10, records viewed.
>
> With FMP10, I said he could use Script Triggers to set a timestamp
> when the record is viewed, and then sort on that timestamp. But I
> couldn't think of a way to do it in 9.
>
> Does anyone have any thoughts on how this might be achieved?
You don't need to go that far, all you need to do is capture the ID's
of the records as you view them. This can be accomplished by any
object/action that can fire the calculation engine on record display,
including unstored calculation fields, record level access (if not
using a [Full Access] account), and the web viewer.
For example, you can place an unstored field on a layout with the
following calculation:
Let ( $$lastViewedRecordsList = LeftValues ( Case ( IsEmpty
( FilterValues ( $$lastViewedRecordsList; YourPrimaryKey ) );
YourPrimaryKey & ¶ ) & $$lastViewedRecordsList; 10 ); "" )
This will place the IDs of the last ten visited records into the
global variable $$lastViewedRecordsList. You can then use this
variable as the basis for a Find operation or, via an unstored
calculation field, in a relationship to show those records in a portal.
This is a simple example - other requirements may necessitate a
different approach.
Cheers,
-corn
Corn Walker
The Proof Group
http://proofgroup.com/_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au