Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Customizing Worker Console to Display Department

Updated: 21 May 2010 | 5 comments
babadi's picture
0 0 Votes
Login to vote

Hi all,

Is there a way for us to customize the worker console to display the contact's department? The reason for this is because as techs receive incident assignments, they would like to print  the incident and be on their way into the field with all of the pertinent information on their printout. 

Thanks in advance for any leads. 

discussion Filed Under:

Comments

MBHarmon's picture
08
Oct
2009
0 Votes 0
Login to vote

WorkItemView.ascx

You can customize your WorkItemView.ascx to add a line to display that information when "Viewing" the incident.

Just insert the following line between your SubContactInfo and SubAsset Info Lines. 

<aw:Label id="lblDepartment" runat="server" ItemDataField="contact_department" label="Department:"></aw:Label>

If you're using a text editor that will count your lines for you (like notepad++) the number you'll need to put it at should be around 235

- Matt

Jeanne's picture
01
Nov
2009
0 Votes 0
Login to vote

Worker account info being overwritten

Hi Ya'll,
I have a new worker when I entered him as a new worker it creates his account but did not add his email address so he does not receive email notifications. I have gone in and put his email address in the correct field but everyday it appears to be overwritten. Is there a place where I can edit my worker accounts so this stops happening? I have added other new users without a glitch but I think his AD account was not fully qualified when he was added so it missed something.

Jeanne

mclemson's picture
03
Nov
2009
0 Votes 0
Login to vote

Jeanne, Most likely the

Jeanne,

Most likely the worker's e-mail address is being overwritten with a blank value from a source you're synchronizing with, like ActiveDirectory.  Is his e-mail address set correctly in ActiveDirectory?

Mike Clemson, Systems Engineer
Intuitive Technology Group -- Symantec Platinum Partner

matzebru's picture
06
Nov
2009
1 Vote +1
Login to vote

First of all, you should make

First of all, you should make sure you are following the Customization Best Practices in the Altiris Helpdesk Product Guide, page 186. I copy and rename the default files I am going to use for the modified \Worker console from the \Templates directory to a \Worker\Custom directory and then use a custom.config file to point to the custom, renamed files I've customized. If you're already aware of this kudos otherwise check out the section on Customization in the Product Guide.

I did what you want to do for a Change Control in May 2008. My changes also include the Location and Job Title, in addition to the Deparment. These are the modifications I had to make:

1) Add the following code (in BOLD) to the WorkItemView.ascx page for the \worker console:

    <aw:SubTemplate id="stContactInfo" runat="server" Template="subContactInfo" ColSpan="4" label="sidLblContact"></aw:SubTemplate> (existing code - shown for placement)

' Insert Contact labels for Location, Department, Job Title
            <aw:Label ID="lblLocation" RunAt="server" ItemDataField="contact_location" label="sidLblLocation"></aw:Label>
            <aw:Label ID="lblDepartment" RunAt="server" ItemDataField="contact_department" label="sidLblDepartment"></aw:Label>
            <aw:Label ID="lblJobTitle" RunAt="server" ItemDataField="contact_title" label="sidLblJobTitle"></aw:Label>
' End Insert of Contact labels for Location, Department, Job Title

    <aw:SubTemplate id="stAssetInfo" runat="server" Template="subAssetInfo" ColSpan="4" label="sidLblAsset"></aw:SubTemplate> (existing code - shown for placement)

' Insert horizontal separator between Contact/Asset fields and rest of ticket
    <aw:Separator ID="sepItemInfo" Runat="server" ColSpan="4" />
' End insert

    <aw:Label id="lblCategory" runat="server" ItemDataField="workitem_category_tree_value" label="sidLblCategory"></aw:Label> (existing code - shown for placement)

2) Add the following code (in BOLD) to the subWorkItemEditGeneral.ascx page VB section under the LoadDataSources subroutine:

        lblNumberEdit.Visible = true (existing code - shown for placement)

' Insert code to expose Contact Location, Department and Job Title if ticket exists
        lblLocation.Visible = true
        lblDepartment.Visible = true
        lblJobTitle.Visible = true
' End Insert code to expose Contact Location, Department and Job Title if ticket exists

        lblNumberEdit.text = TryString("sidNumberSymbol", w.current.workitem_number) (existing code - shown for placement)

NOTE: This code is needed to "hide" the 3 additional Contact labels when the ticket is "new". The Contact labels will expose automatically if the ticket is pre-existing and in "edit" mode.

3) Add the following code (in BOLD) to the to the \worker subWorkItemEditGeneral.ascx file:

 <aw:Label id="lblNumberEdit" runat="server" label="sidLblItem" Visible="false"></aw:Label> (existing code - shown for placement)
' Insert Contact labels for Location, Department, Job Title
            <aw:Label ID="lblLocation" RunAt="server" ItemDataField="contact_location" label="sidLblLocation" Visible="false"></aw:Label>
            <aw:Label ID="lblDepartment" RunAt="server" ItemDataField="contact_department" label="sidLblDepartment" Visible="false"></aw:Label>
            <aw:Label ID="lblJobTitle" RunAt="server" ItemDataField="contact_title" label="sidLblJobTitle" Visible="false"></aw:Label>
' End Insert of Contact labels for Location, Department, Job Title
 <aw:ControlBar ID="cbItemAsset" RunAt="server" Label="sidLblAsset"> (existing code - shown for placement)

- Bruce

 *** If a forum post solves your problem, please flag it as a solution. If you like an article or forum post, vote it up. ***

matzebru's picture
06
Nov
2009
1 Vote +1
Login to vote

Before and After

Before and After views of the mod:

Before:

1_orig ticket view page.jpg

After:

2_modified ticket view page.jpg

- Bruce

 *** If a forum post solves your problem, please flag it as a solution. If you like an article or forum post, vote it up. ***