DefineTimelineHistogram Command

Two forms of histogramming requests are supported by Flexible Search: the Return Count requests and the Return Results requests. At most one histogramming request can be made within a single search request.

The Return Count requests can be used in addition to a simple request to return the number of items found in each category, range or time frame. Meanwhile, the data is returned, filtered and sorted without regard to category, range or time frame.

The Return Results requests are used in place of a simple request. In addition to the number of items being returned for each category, range or time frame, the actual data is filtered, sorted and returned by category, range or time frame for display.

The Return Count by Time Frame requests is one of the Return Count requests, and is used to return the number of records found for each of a number of specified time frames. A timeline index is used to define the time frames. Either all time frames defined by the index or a selected subset may be used.

Both the Return Count by Time Frame and Return Results by Time Frame requests use the DefineTimelineHistogram command. The Return Count by Time Frame request uses the DefineTimelineHistogram command with only two arguments to return the number of time frames containing items matching the search criteria, as well as the number of items matching the search criteria for each selected time frame.

To return a subset of the time frames containing results matching the search criteria, pass the name of an HTML variable, containing the list of base times, in the proper order, to the command as the second argument. A base time is the earliest or oldest date-time value within the time frame -- the beginning of the time frame. To return all time frames, pass the proper control character as the second argument: a plus sign (+) to display going forward, or a minus sign (-) to display going backward in time.

To select a specific list of time frames for display in a predetermined order, use the following format:

DefineTimelineHistogram( idx, lst );

DefineTimelineHistogram Arguments (Predetermined Order)

Argument

Description

idx

The timeline index to be searched.

lst

The name of the HTML variable containing the list of base times in the display order.


To select all time frames for display, sorted in either ascending or descending order, use the following format:

DefineTimelineHistogram( idx, ctl );

DefineTimelineHistogram Arguments (Ascending/Descending Order)

Argument

Description

idx

The timeline index to be searched.

ctl

The display control character ( + or - ). The display control character may be passed directly or within an HTML variable.


To select a specific list of time frames for display in a predetermined order, use the following format:

DefineTimelineHistogram( idx, lst, cnt );

DefineTimelineHistogram Arguments (Predetermined Order)

Argument

Description

idx

The timeline index to be searched.

lst

The name of the HTML variable containing the list of base times in the display order.

cnt

The maximum number of items to display for each time frame. The count may be passed directly or within an HTML variable.


To select all time frames for display, sorted in either ascending or descending order, use the following format:

DefineTimelineHistogram( idx, lst, cnt );

DefineTimelineHistogram Arguments (Ascending/Descending Order)

Argument

Description

idx

The timeline index to be searched.

ctl

The display control character ( + or - ). The display control character may be passed directly or within an HTML variable.

cnt

The maximum number of items to display for each time frame. The count may be passed directly or within an HTML variable.

 

Access the DefineTimelineHistogram Dialog Box by selecting the Timeline Histogram menu item under the Categories category of the Logic Template editor command menu.

Examples

Return the number of results found for each individual time frame identified by the timeline index "Date".

 

Command

Description

DefineTimelineHistogram( Date, PubDates );

Return the count for each of the individual time frames identified within the HTML variable, "PubDates".

DefineTimelineHistogram( Date, + );

Return the count for each individual time frame, displaying those time frames going forward in time.

DefineTimelineHistogram( Date, - );

Return the count for each individual time frame, displaying those time frames going backward in time.

DefineTimelineHistogram( Date, Direction );

Return the count for each individual time frame either going forward or going backward in time, as identified within the HTML variable, "Direction".

DefineTimelineHistogram( Date, PubDates, 5 );

Return up to 5 results for each of the individual time frames identified within the HTML variable, "PubDates".

DefineTimelineHistogram( Date, +, 5 );

Return up to 5 results for each individual time frame, displaying those time frames going forward in time.

DefineTimelineHistogram( Date, -, Count );

Use HTML variable, "Count", to determine the number of results to be returned for each individual time frame, and display those time frames going backward in time.

DefineTimelineHistogram( Date, Direction, 5 );

Return up to 5 results for each individual time frame either going forward or going backward in time, as identified within the HTML variable, "Direction".