Difference between revisions of "Changing Announcements Order By"

From SDU
Jump to: navigation, search
(How to change the order by on the result list for announcements)
 
m
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
n R11 you can easily add a node to your scoreboard for 'Announcements'. But quickly I noticed that unlike the 'View->Announcements' form, it sorts Ascending by default and most would want to see the most current announcements, not ones from a year ago.
+
__NOTOC__
 +
[[Category:Announcements]]
 +
[[Category:Customizations]]
 +
[[Category:r11]]
 +
{{Global Header}}
 +
{{Global Announcement}}
 +
== Overview ==
 +
In Service Desk release 11.x you can easily add a node to your scoreboard for 'Announcements'. But quickly I noticed that unlike the 'View->Announcements' form, it sorts Ascending by default and most would want to see the current announcements, not ones from a year ago.
  
You can easily correct this by copying %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic
+
== Procedures ==
  
edit the %nx_root%/site/mods/majic/cm.maj
+
=== Step 1: Copy File ===
 +
Copy ''%nx_root%/bopcfg/majic/cm.maj'' to ''%nx_root%/site/mods/majic''
  
search for: "OBJECT cnote {"
+
=== Step 2: Open File For Editing ===
scroll down to: "SORT_BY "posted_date";"
+
Edit the ''%nx_root%/site/mods/majic/cm.maj''
change to: "SORT_BY "posted_date DESC";"
+
  
Note that we only added 'DESC' after the posted_date field.
+
=== Step 3: Search File ===
 +
Search for: "OBJECT cnote {"
 +
<source lang="text">OBJECT cnote {</source>
  
restart services and the default sort order will be descending for the list_cnote.htmpl
+
=== Step 4: Scroll to Line ===
 +
Scroll down to: "SORT_BY "posted_date";"
 +
<source lang="text">SORT_BY "posted_date";</source>
 +
 
 +
=== Step 5: Make Edit ===
 +
Change to: "SORT_BY "posted_date DESC";"
 +
<source lang="text">SORT_BY "posted_date DESC";</source>
 +
 
 +
=== Step 6: Reset System ===
 +
Restart services and the default sort order will be descending for the list_cnote.htmpl.
 +
 
 +
== Notes ==
 +
We only added 'DESC' after the posted_date field on step 5.

Latest revision as of 15:12, 8 August 2008

To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

In Service Desk release 11.x you can easily add a node to your scoreboard for 'Announcements'. But quickly I noticed that unlike the 'View->Announcements' form, it sorts Ascending by default and most would want to see the current announcements, not ones from a year ago.

Procedures

Step 1: Copy File

Copy %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic

Step 2: Open File For Editing

Edit the %nx_root%/site/mods/majic/cm.maj

Step 3: Search File

Search for: "OBJECT cnote {" <source lang="text">OBJECT cnote {</source>

Step 4: Scroll to Line

Scroll down to: "SORT_BY "posted_date";" <source lang="text">SORT_BY "posted_date";</source>

Step 5: Make Edit

Change to: "SORT_BY "posted_date DESC";" <source lang="text">SORT_BY "posted_date DESC";</source>

Step 6: Reset System

Restart services and the default sort order will be descending for the list_cnote.htmpl.

Notes

We only added 'DESC' after the posted_date field on step 5.