Modify the default sort order in htmpl list pages.

Document ID : KB000026647
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

This document explains how to modify the default sort order in .htmpl list pages.

For example how to modify the sort order in the Change Workflow List,  list_wf.htmpl page, to be sorted by change order number and in descendent order.

Instructions:

Look for corresponding object and the corresponding majic file in $NX_ROOT/bopcfg/majic.

Then modify the sort order in the factory of the object by creating a .mod file in the $NX_ROOT/site/mods/majic directory.

As for the given example on the workflow list, the object is "wf", the majic file is wf.maj and the .mod file to create is wf.mod with the following contents:

MODIFY FACTORY wf { STANDARD_LISTS { SORT_BY "chg DESC"; }; };