Skip to Main Content
Practical Internet Groupware
book

Practical Internet Groupware

by Jon Udell
October 1999
Beginner content levelBeginner
521 pages
15h 28m
English
O'Reilly Media, Inc.
Content preview from Practical Internet Groupware

Using Docbase::Indexer

Example 7.17 shows a script that uses the services of Docbase::Indexer to build both static and dynamic navigational controls for the ProductAnalysis docbase.

Example 7-17. A Docbase::Indexer Driver Script

#! perl -w

use strict;

my $app = "ProductAnalysis";

my @indexed_fields = ('company','product','analyst','duedate');

use Docbase::Docbase;
my $db = Docbase::Docbase->new($app);

use Docbase::Indexer;

my $di = Docbase::Indexer->new($db,\@indexed_fields);

$di->buildIndexStructures;

$di->buildTabbedIndexes;

$di->buildSequenceStructures;

$di->buildStaticControls;      # optional, only for static version

You could arrange to run this script after each record is added to the docbase. More likely, you’ll want to schedule it to run periodically by using a crontab entry on a Unix-like system or an AT command on NT.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Web Operations

Web Operations

John Allspaw, Jesse Robbins

Publisher Resources

ISBN: 1565925378Catalog PageErrata