Difference between revisions of "Default Properties Tab on New Ticket Creation"

From SDU
Jump to: navigation, search
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
__NOTOC__
 +
[[Category:Customizations]]
 +
{{Global Header}}
 +
{{Global Announcement}}
 +
 +
== Overview ==
 
This article contains instructions for configuring the Properties Tab to have the initial focus when creating a new ticket.  
 
This article contains instructions for configuring the Properties Tab to have the initial focus when creating a new ticket.  
  
Line 7: Line 13:
 
''Notice: This customization does not appear to work in Firefox if '''Avoid Popups''' is disabled.''
 
''Notice: This customization does not appear to work in Firefox if '''Avoid Popups''' is disabled.''
  
 
+
== Procedures ==
== Step 1. Edit the Detail Form ==
+
=== Step 1. Edit the Detail Form ===
 
{| border="1" style="width:400px;"
 
{| border="1" style="width:400px;"
 
|-
 
|-
 
! Ticket Type
 
! Ticket Type
 
! Detail Page File Name
 
! Detail Page File Name
 +
! Default Tab ID
 
|-
 
|-
| [[Request]]
+
| Request
 
| detail_cr.htmpl
 
| detail_cr.htmpl
 +
| 7
 
|-
 
|-
| [[Incident]]
+
| Incident
 
| detail_in.htmpl
 
| detail_in.htmpl
 +
| 7
 
|-
 
|-
| [[Problem]]
+
| Problem
 
| detail_pr.htmpl
 
| detail_pr.htmpl
 +
| 8
 
|-
 
|-
| [[Change Order]]
+
| Change Order
 
| detail_chg.htmpl
 
| detail_chg.htmpl
 +
| 1
 
|-
 
|-
| [[Issue]]
+
| Issue
 
| detail_iss.htmpl
 
| detail_iss.htmpl
 +
|
 
|-
 
|-
 
|}
 
|}
<br>
+
 
Add the following single line of code as the first line of the loadAction function found in the HEAD of any of the files listed above:<source lang="html4strict">
+
Add the following single line of code as the first line of the loadAction function found in the HEAD of any of the files. Be sure to replace ''X'' with the Tab ID from above.<source lang="html4strict">
if("$args.id" == "0" || "$args.KEEP.MAKE_COPY" == "1" ) show_tab_src(7);  
+
if("$args.id" == "0" || "$args.KEEP.MAKE_COPY" == "1" ) show_tab_src(X);  
 
</source>
 
</source>
 +
 +
For r11.x releases it is recommended that you edit your pages via the [[Web Screen Painter]].
  
Note: The number in the show_tab_src function is the tab number beginning with 0. By default 7 is for Properties for Requests, Incidents, and Problems.
+
=== Step 2. Clear the web cache ===
 
+
For r11.x releases it is recommended that you edit your pages via the [[Web Screen Painter]].
+
 
+
 
+
== Step 2. Clear the web cache ==
+
 
The final step is to clear Service Desk's cache. Publish your changes via the [[Web Screen Painter]]. The process of publishing automatically initiates a [[pdm_webcache]].
 
The final step is to clear Service Desk's cache. Publish your changes via the [[Web Screen Painter]]. The process of publishing automatically initiates a [[pdm_webcache]].
 
 
----
 
<div align='center'><font color="red">To make corrections or additions to this article, select the ''edit'' tab above.<br>
 
To discuss or ask questions about this article, select the ''discussion'' tab above.</font></div>
 
 
[[Category:Customizations]]
 

Latest revision as of 00:54, 27 July 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

This article contains instructions for configuring the Properties Tab to have the initial focus when creating a new ticket.

By default the Activities Tab is the first tab and the one to receive the initial focus. However, considering there is never any content in the Activities Tab during ticket creation and considering that the Properties Tab often has content that is vital for ticket creation, it only makes sense to have the Properties Tab have the initial focus. This customization does not change the order of the tabs, only changes the tab that will receive default focus during ticket creation.

The instructions that follow were designed for r11.x releases only.

Notice: This customization does not appear to work in Firefox if Avoid Popups is disabled.

Procedures

Step 1. Edit the Detail Form

Ticket Type Detail Page File Name Default Tab ID
Request detail_cr.htmpl 7
Incident detail_in.htmpl 7
Problem detail_pr.htmpl 8
Change Order detail_chg.htmpl 1
Issue detail_iss.htmpl

Add the following single line of code as the first line of the loadAction function found in the HEAD of any of the files. Be sure to replace X with the Tab ID from above.<source lang="html4strict"> if("$args.id" == "0" || "$args.KEEP.MAKE_COPY" == "1" ) show_tab_src(X); </source>

For r11.x releases it is recommended that you edit your pages via the Web Screen Painter.

Step 2. Clear the web cache

The final step is to clear Service Desk's cache. Publish your changes via the Web Screen Painter. The process of publishing automatically initiates a pdm_webcache.