Monday, February 09, 2009

ITSM 6.1.x Tip for the Week : Errors with DTC Setup

"Exception of Type 'Fusion:FusionException' was thrown. The partner transaction manager has disabled its support for remote/network transactions."
Last week I came across this error when setting up a connect (and also using the application). ITSM (or GMEE) will still allow you to create the connection and connect to the application server but will through this error and prevent saving of the object if you have the BPML engine running.
The issue is with the security setup of the Microsoft DTC service on both the ITSM and SQL Servers. There is a very helpful article from technet about 'New functionality in the Distributed Transaction Coordinator service in Windows Server 2003 Service Pack 1 and in Windows XP Service Pack 2'

This outlines the settings that need to be enabled to allow the ITSM and SQL servers to communicate.

Monday, January 19, 2009

ITSM Tip for the week: Opening Self Service to a new Incident not the dashboard

Normally in ITSM  (and in all 5.x versions)  linking to Self Service would involve going to the users dashboard via the http://[itsmserver]/Servicemanagementweb/SelfServiceLogin.aspx where [itsmserver] would be the name of the server (without the []).

In 6.1.x you can now link directly to an object with the following format.

http://[itsmserver]/ServiceManagementWeb/IntegrationInfo.aspx?CommandName=SHOWSINGLEBUSOB&Role=SelfService&Param1=Incident&Param2=[RECID]

where [itsmserver] would be the name of the server and [RECID] is the RecID of the object you would like to open (without the []).

You can use the same formatting to link directly to a new object in SelfService. For example, if you wanted a self service user to go straight to the new incident screen without having to go to the dashboard and then click the "new incident" option. You can use the same format as about but simply leave out the [RECID]

http://[itsmserver]/ServiceManagementWeb/IntegrationInfo.aspx?CommandName=SHOWSINGLEBUSOB&Role=SelfService&Param1=Incident&Param2=


Monday, January 05, 2009

ITSM Tip for the week: Adding a count to the Journal Tab

I’ve had a whole host of customers ask for this so I thought I'd add the details up. The script below counts the number of Journals that are related to the incident. 

How I’ve been using this script is to display the journal tab as “Journals (1)” (like the tabs in a HEAT system does). To do this you will need to add a field to the Incident that stores the Journal count (which I usually call JournalCount). Assign the script to the Field as a Calculation. Finally change the label of the tab to be a Named Expression. That Named expression should be of the Simple Calulation Type and would look something like this -> 'Journals ('+TRIM('{$[FIELD]Incident.JournalCount$}')+')'. 

The same principle will also apply for any other tab.

Journal Count Script 

import System

import Fusion

import Fusion.Api

 

class FusionScriptWrapper implements IScriptWrapper

{

     function FusionScriptWrapper()

     {

           // place constructor logic here

     }

 

     function Process(currentBusinessObject : Fusion.Api.BusinessObject, currentField : Fusion.Api.Field) : Object

     {

           var objReturn : Object

           var numberofjournals : int

          

           // Initialisation

           objReturn = true

          

           // Get all the Journals

           var bizCollectionJournals : Fusion.Api.BusinessObjectCollection

           bizCollectionJournals = currentBusinessObject.GetRelationship("IncidentContainsJournal").BusinessObjects

          

           // Check for Journals from the Relationship

           if(bizCollectionJournals != null)

           {

                     // Count the number of Journals

                     numberofjournals = bizCollectionJournals.Count

                     objReturn = numberofjournals

               

           }

 

          // Return the number of Journals

          return objReturn

     }

}

Monday, December 22, 2008

6.x tip for the day : URL and HTML Support

In 6.x the text fields now support both URLs and HTML code. The following describes how to set them up.

 

Activating URL Support

You can enable URLs (hyperlinks) to be rendered properly in text box controls, so that users may click on live hyperlinks to access a particular resource.

The following types of URL schemes are supported:

• HTTP ( http://example.com/ or https://example.com )

• FTP ( ftp://example.com )

• mailto: ( mailto:admin@example.com )

• Local Files ( file:///C:/notes.txt )

• Windows network path, or UNC ( \\ QA-Server1\Backups )

 

Note: It is important to note that URL Support is activated at the control level

(within the Description text box, for example), and not at the field level. A field

must be associated with a control to enable URL support for that field.

In the following example, URL support is activated for the

Incident.Symptom field (in this case, “Description”) on the Incident form.

 

To activate URL Support:

1. Launch the Administrator. Navigate to a Business Object for which you will activate URL support. For example “Incident”.

2. Right-click on the text box for which you will add URL support (in this case, “Description”). In the context menu, choose Properties. The Control Properties screen appears.

3. Select the Behavior tab and activate the URL Support check box. Click the Close button to apply this change.

4. If there are other perspectives, for which URL support should be activated, repeat steps 2 and 3 for the text box "Description" in all other perspectives.

5. Commit the changes in the Administrator.

 

Activating HTML Support

To enable display and editing of HTML stored in a business object, use the property settings for the text field containing the HTML. This option is available in the Properties panel for the control.

 

1. Launch the Administrator and open the definition set containing the desired business object.

2. Navigate to a business object for which you will activate an HTML control, for example: “Email.”

3. Right-click on the text box for which you will add HTML support.

4. In the context menu, choose Properties. The Control Properties dialog appears

5. Select the Behavior tab and click the Html Support check box.

6. Click Close to apply this change.

Merry Xmas!

Merry Xmas to all who read this blog! Hope you have a great 2009!

P.S. I'm aiming to update this a little more regularly in 2009!