Always Open A Certain Category In A View

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

Dig deeper on Domino Resources - Part 2



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...