Clarity Service Management

CA Service Desk - Create a new Menu Tree - New node - out-of-box 

07-21-2015 04:42 PM

Improving our knowledge and in continuation of CA Service Desk - Create a new table - out-of-box and improved by cdtj How to create custom BREL/QREL/LREL attribute this article is show for us how create a new menu node on CA Service Desk.



Images
Open CA Service Desk using one administration account
Open a Administration menu
001_WIN 2008 R2 x64 SP1-2015-07-16-15-06-22.png

Open on Administration Menu

> Security and Role Management

>>Role Management

>>>Menu Tree

 

Select Admin_tree

002_WIN 2008 R2 x64 SP1-2015-07-16-15-07-05.png

On the admin_tree Menu detail (register),


Click on File

Click Copy


and provide a "Menu Tree Name" and "Code". Click 'Save' button.

003_WIN 2008 R2 x64 SP1-2015-07-16-15-08-21.png

Type information's menu

 

Menu Tree Name

Code

Description

Click on Save button

004_WIN 2008 R2 x64 SP1-2015-07-16-15-08-50.pngOn right side screen click on Customize Menu
005_WIN 2008 R2 x64 SP1-2015-07-16-15-09-49.png

Open menu on

Service Desk >> Application Data > Codes


Right click on Codes (or where you would like to add the node),


Click - Create New Node

006_WIN 2008 R2 x64 SP1-2015-07-16-15-17-18.pngClick Resource
007_WIN 2008 R2 x64 SP1-2015-07-16-15-20-52.png

Creating a new resource

 

OP=SEARCH+KEEO.SEARCH=1+FACTORY=ztable

008_WIN 2008 R2 x64 SP1-2015-07-16-15-21-28.pngor insert your form´s name
009_WIN 2008 R2 x64 SP1-2015-07-16-15-21-55.pngClick Save
010_WIN 2008 R2 x64 SP1-2015-07-16-15-23-02.png

You need create Your objects forms to finish these last steps, following these nexts steps you´ll create you new forms for your´s objects


Open a WSP  - Web Screen Painter

Click New

011_WIN 2008 R2 x64 SP1-2015-07-16-15-23-26.pngselect list.template on analyst interface and click new
012_WIN 2008 R2 x64 SP1-2015-07-16-15-24-01.pnginsert fields
014_WIN 2008 R2 x64 SP1-2015-07-16-15-26-45.png

Create detail.template

Click publish

015_WIN 2008 R2 x64 SP1-2015-07-16-15-27-47.png

Refresh web cache

 

pdm_webcache -H

016_WIN 2008 R2 x64 SP1-2015-07-16-17-06-17.pngyour node
017_WIN 2008 R2 x64 SP1-2015-07-16-17-06-27.pngyour form
013_WIN 2008 R2 x64 SP1-2015-07-16-15-26-07.pngIf you see AHD05528: Could not find HTMPL file after refresh your web cache.


Click here and see too how gbruneau could created a new administration tab


References:

CA Service Desk - Create a new table - out-of-box

How to create custom BREL/QREL/LREL attribute

 

CA CMDB Technical Reference Guide 12.5

Web Screen Painter Help Release 12.9.00

     To add new tables to the database

     To add new columns

     Test new Schema

      Publish Schema Modifications

CA Service Desk Manager | CA Service Management Cookbook@

 

 

More documents: Tiago MACUL's Blog   -   Summary CA Service Management Community

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

08-26-2015 01:46 PM

Hi gbruneau,

 

Thank You, great, you found solution for your case.

 

Thank You for sharing your own solution, help us to improve.

 

Regards

Tiago Macul

08-26-2015 12:15 PM

I figured out how to solve my query.  What you need to do is duplicate the Administration Web form.  I created a new one and named it Administration Modified.  The resource field in the web form is what contains the link to the new Menu Tree.  $cgi?SID=$SESSION.SID+FID=123+OP=DISPLAY_FORM+HTMPL=admin_main_role.htmpl+KEEP.tree_code=<New_menu_tree_code>+KEEP.ALLOW_MENU_TREE_EDIT=1

Once this webform is created navigate to a role, in my case Administrator.  Then open up the Resources tab.  Click the Update Tabs button.  This will open the Tab search screen, click Create New.  I named the tab "Administration tab with modified menu tree", and set the code to admin_mod.  The starting page is where you choose your new web form.  In my case Administration Modified.  Then set the menu bar to Administration. That's it!

 

Once you verify the new Administration tab works you can remove the original tab from the role.

 

Tiago if you found this helpful feel free to add it to your original document.

 

Note: for this to work you still need to follow cdtj's steps, but instead of modifying the default Administration web form make the changes on your modified form.  That way you can only make changes to the customized menu tree and not the default.

 

So following cdtj's steps my part 1 in his section is this,

$cgi?SID=$SESSION.SID+FID=123+OP=DISPLAY_FORM+HTMPL=admin_main_role.htmpl+KEEP.tree_code=admin_tree_modified+KEEP.ALLOW_MENU_TREE_EDIT=1

08-26-2015 11:50 AM

Hi Tiago,

 

Thank you for sharing, this document was very helpful.  I followed both yours and cdtj's instructions and I can't figure out how replace the default admin menu tree with this modified one.  Is that even possible?  What I did instead was remove the PDM_IF statement blocking the customize menu button for default menu trees located on detail_menu_tree_name.htmpl form.  After doing so I could then add the new menu tree resource to the default menu tree.  Is there something obvious I'm missing here?

08-03-2015 01:12 PM

Thanks for sharing this cdtj.

08-03-2015 11:33 AM

HI cdtj, Thank You for sharing your solution.

07-28-2015 04:23 AM

Hi Tiago!

I've faced a problem with adding new node to admin menu.

This might be caused due to role customization or something esle,

but I want to share my solution if someone else will face the same.

 

PROBLEM: Right mouse click on existent node don't display any options.

SOLUTION:

Option which prevents to edit Menu Nodes called allowMenuTreeEdit, located in hiersel_menu_tree.htmpl.

Code block looks like:

<PDM_IF "$args.KEEP.ALLOW_MENU_TREE_EDIT" == "1">

  var m_MenuNodeMenu = createMenuTreeMenu("menu_node");

  var m_MenuTopMenu = createMenuTreeMenu("menu_top");

  var allowMenuTreeEdit = 1;

<PDM_ELSE>

  var allowMenuTreeEdit = 0;

</PDM_IF>

So we need to set flag KEEP.ALLOW_MENU_TREE_EDIT = 1 to access node editing.

 

Part 1:

1. Open: Administration Tab -> Security and Role Management -> Role Managment -> Role List;

2. Select role that you want to make possibility to edit menu nodes.

3. Go to Resources -> Tabs;

4. Open Admin tab configuration form, when open Starting Page;

5. Add to Resource URL the followed code:

+KEEP.ALLOW_MENU_TREE_EDIT=1

it will look like:

$cgi?SID=$SESSION.SID+FID=123+OP=DISPLAY_FORM+HTMPL=admin_main_role.htmpl+KEEP.tree_code=admin_tree+KEEP.ALLOW_MENU_TREE_EDIT=1

 

Part 2:

Now we need to pass that attribute to menubar.

1. Open admin_main_role.htmpl;

2. Find the followed frame : NAME=frame id=frmAdmTree

Modifiy web_form_url from :

$cgi?OP=DISPLAY_FORM+SID=$args.SID+FID=$args.FID+HTMPL=menu_tree.htmpl+menu_name=$args.KEEP.tree_code+KEEP.POPUP_NAME=$args.KEEP.POPUP_NAME

to

$cgi?OP=DISPLAY_FORM+SID=$args.SID+FID=$args.FID+HTMPL=menu_tree.htmpl+menu_name=$args.KEEP.tree_code+KEEP.POPUP_NAME=$args.KEEP.POPUP_NAME+KEEP.ALLOW_MENU_TREE_EDIT=$args.KEEP.ALLOW_MENU_TREE_EDIT

 

Publish modifications.

 

I really really hope that there is an easier way, but this modification gives possibility to customize access to node editing.

07-24-2015 05:36 PM

Thanks for sharing.

07-22-2015 09:41 AM

Related Entries and Links

No Related Resource entered.