Home CMDB Portal

CMDB Config Item Page Titles

Geoff_RossGeoff_Ross Cireson Consultant O.G.
edited March 2019 in CMDB Portal
Hi Community,

I'm loving the new CMDB with Config Item editing but I'm not such a fan of the 'CI' title on every page.



Little snippet of code to put the class name in its place, just like on Asset Management forms.
app.custom.formTasks.add('ConfigItem', null, function (formObj, viewModel) {
	$(document).ready(function(){
		$('.page_title > span').first().text(pageForm.viewModel.FullClassName)
	});
	return;
});
Much better I think.



Ensure you add to custom.js via the script loader. Message me if you need any help.

Geoff

Comments

  • Margarete_JussenMargarete_Jussen Customer Adept IT Monkey ✭✭
    Thanks for this I changed it in our Environment. :) In your example you have Business Service in your Display. How can I expand the cmdb view to see Business Services? Maybe you also know how I can expand the view for a single config item with our custom fields. We have a custom Hardware asset form.
  • Bart_LevingBart_Leving Customer IT Monkey ✭

    Hi Geoff,

    Thank you for this function. We are running this in version 12 (maybe 11), but notice this is no longer working.

    In the Dev-tools, pageForm.viewModel.FullClassName still gives Business Service as the Class name, but the title does not longer change and says "CI".

    How can we get this working again?

Sign In or Register to comment.