When a user open up the default categorised view in a database (eg. Bulletin
Board), it is always good to always open up a certain sub-category (eg. Today's
or This Month) in the view, instead of either collapse all categories, or not
to collapse all.
To achieve this, you can make use the Postopen event of the database script.
Main View layout:
Daily News
Today's
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Historical
Events
This Month
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Future Event's
Historical
Others
Formula in Postopen event of Database Script :
@Command([ViewExpandAll]) ;
@Command([OpenView] ; "Main View" ; "Daily News\\Historical");
@Command([ViewCollapse]) ;
@Command([OpenView] ; "Main View" ; "Events\\Future Event\'s");
@Command([ViewCollapse]) ;
@Command([OpenView] ; "Main View" ; "Events\\Historical");
@Command([ViewCollapse]) ;
@Command([OpenView] ; "Main View" ; "Others");
@Command([ViewCollapse]);
@Command([OpenView] ; "Main View" ; "Daily News\\Today\'s");
@Command([ViewExpand]);
@Command([OpenView] ; "Main View" ; "Daily News")
This was first published in November 2000