SeedCodeComplete3

Recent Items

Overview

On the Home Layout Selectors there are filter switches for looking at "recent" items. These are records that have been modified within the specified time period from the current date and time.

What constitutes "Recent"?

What makes an edit fall into the "recent" view?

Recent is defined in the Home Selector scripts in the SeedCode Control file. These scripts are named like Return Company IDs Home ( Criteria ; StaffID ; Recent) and each script has its own definition of "recent" so what's recent for a Company may not be "recent" for an Invoice.

Once you've located the appropriate script in the SeedCode Control file, then you should just need to define the variables $sc_RecentDaysAgo and $sc_RecentHoursAgo

The calculation defining $sc_RecentDaysAgo has some additional logic for handling Mondays, i.e. On Mondays, look back 2 days, all other days, look for edits in the last 1 hour.

These "Recent" scripts will search the contacts table for modifications made within those time frames. Once it finds modified records, it looks at the change log for each record to see if any of certain fields were edited. New records always count as edits.

Extending "Recent"

How do I add new fields or actions to recent items?

As described above, any edit to a field in the change log will cause the record to show up in "Recent" so all you have to do is make sure your new field is a part of the change logcalc for ChangeLog in that fields table in SeedCodeCompleteModel.

(855) SEEDCODE
[email protected]
Follow us: