Hiding the Incident Extensions Tab

Hiding the Incident Extensions Tab

  • Comments 4
  • Likes

Maybe after you have customized the incident class using the Authoring Tool to extend the class and customize the form you want to hide the Extensions tab. How do you do it?

Simple – import this MP:

http://cid-17faa48294add53f.office.live.com/self.aspx/.Public/Examples/HideIncidentExtensionTab.xml

Before:

image

After:

image

 

Update (Sept. 16 2010): Note: If you customize a form, behind the scenes the Authoring Tool will create a new <Form> element in the MP.  This new Form effectively "replaces" the out of the box form.  If you want to hide the extension tab on the Incident form in this case you need to change the Target attribute of the Category to point at the new <Form> element's ID instead of the one in the MP example I provided above.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Wondering how does that really work... MP is so simple! Some hidden (built-in) magic in SCSM?

  • @djk - Yes, Magic!  The incident form has some code behind that runs when the form loads that looks for the existence of this Category.  If present it doesnt show the Extensions tab.

    BTW - although I havent tried it, this will probably work for any Form.  You would just need to change the Target attribute value in the Category element to point to a different Form element.

  • Travis, thank you! Another hair-pulling moment adverted...

  • Thanks Travis, from your information, from that, I did this:

    First you need to create an Alias referencing the UI Administration section. So in between the <References></References> add these lines below:

    <Reference Alias="Admin">

    <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Administration</ID>

    <Version>7.5.1561.0</Version>

    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>

    </Reference>

    Verify the <Version> and <PublicKeyToken>. They are probably not the same as this example. The <Version> might be fine, but confirm the <PublicKeyToken>. If you look at the other <Reference> in the management pack, the information should be available, simply select the proper one!

    Once the <Reference Alias="Admin"> is added, now add the <Category> in <Categories>. In the <Category>there are 3 properties: ID, Target and Value. Give an ID, any string will do, just kept it short. The Target will be found in the <Presentation><Forms><Form>, it is the ID. Simply copy it, it will point the proper form. Then add this Value "Admin!Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.Enumeration.HideExtensionTab".

    Here how it should look like:

    <Categories>

    <Category

    ID="HideExtension"

    Target="CustomForm_7fc9297a_8e75_4a5e_b8d0_6f966109a680"

    Value="Admin!Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.Enumeration.HideExtensionTab">

    </Category>

    </Categories>

    <Presentation>

    <Forms>

    <Form

    ID="CustomForm_7fc9297a_8e75_4a5e_b8d0_6f966109a680"

    Accessibility="Public" Target="CustomForm_7fc9297a_8e75_4a5e_b8d0_6f966109a680_TypeProjection" BaseForm="Alias_6d3e0e7d_65b2_4264_8e73_66cc02faeb37!CostCenterForm" TypeName="Provance.ServiceManager.Itam.Presentation.CostCenterForm">

    <Category>Form</Category>

    <Customization> … </Customization>

    </Form>

    </Forms>

    </Presentation>

    Have fun customizing your forms!!!