Setup Filter for two sources

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 7
Joined: Sun Apr 03, 2011 4:06 am
PostPosted: Sun Apr 24, 2011 2:19 pm
I have a calendar with dates from two tables. It looks like the filters on the calendar layout need to be tied to one table or the other. Is it possible to filter both tables at the same time if the both sources are selected?
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Tue Apr 26, 2011 9:40 am
Hi,

You are correct that the calendar only supports the filters for Source No 1 "out of the box," but it can be modified to apply the filters to multiple sources as well. Basically, the script:

"Load Calendar Settings - On Startup --- Edit Configuration Here ---"

sets the filter fields including the table they belong to, i.e. SampleEvents. You could store the field names without the table occurrence, i.e. store "Summary" rather than "SampleEvents::Summary." Then when the filters are applied in the script:

"Apply Filter to Found Set"

You could add the context back in based on the context of the source, i.e.

Set Field By Name [Evaluate ( "Get ( LayoutTableName ) & \"::\" & $$sc_filterfield" & $sc_FilterNumber )

when setting up the find requests.

This is moving into somewhat advanced development, so please feel free to contact me at [email protected] if you might need some additional assistance with this.

Hope this helps and Best Regards,
-Jason

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 2 guests

(855) SEEDCODE
[email protected]
Follow us: