Home Cireson Uploads
image


IT Monkey will place code here as examples of what Cireson's consulting team has to offer as well as examples for public consumption to benefit the Microsoft System Center community as a whole.

DISCLAIMER

All files and projects located here come as is and without any warranty or support. We will attempt to improve the projects as time goes on based on customer and community demand. Comments and improvements are welcome as well as customization requests. Your use of these Cireson Uploads is subject to our Terms of Use.


Cireson's support team has no information on these projects outside of what you have available and will not provide support for these enhancements, extensions, and scripts.

Dont forget to checkout solutions uploaded by our customers, partners and community members here.

Auto Show History

Geoff_RossGeoff_Ross Cireson Consultant O.G.
edited January 2022 in Cireson Uploads
This solution is already up here but buried in a thread somewhere so I thought I'd drag it out for all to see.

It removes the need to click the Show History button once the History tab is selected and just auto loads the history data instead.

Enjoy.

UPDATE New Add-In just released for this:

https://kb.cireson.com/article/user-guide-add-in-auto-show-history/2615

Geoff

Comments

  • seth_coussensseth_coussens Member Ninja IT Monkey ✭✭✭✭
    On addition I would suggest here is having a check for the current page to see if you actually want the script dynamically loaded on that page. For instance in this example you would only want this script to load on work item pages, that way you aren't dynamically loading ALL your scripts on each page that doesn't actually utilize that code.
  • Brian_WiestBrian_Wiest Customer Super IT Monkey ✭✭✭✭✭

    One of the biggest performance complaints we get for the portal is the time it takes history to load. Especially on the older incidents. Is there a way to add that once the work item is loaded the history loads even before the user clicks the history tab?

  • Martin_BlomgrenMartin_Blomgren Customer Ninja IT Monkey ✭✭✭✭
    @Brian_Wiest

    Just remove the need to click on history tab first and the xhr request to show history will fire instantly!

    Comment out (or remove) these lines in AutoShowHistory.js
    app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {<br>&nbsp;&nbsp;&nbsp; //bind a function to the form ready event<br>&nbsp;&nbsp;&nbsp; formObj.boundReady(function () {<br>    &nbsp;&nbsp;//$('a[data-cid=History]').on("click", function () { <== remove this<br>&nbsp;&nbsp;      &nbsp;pageForm.viewModel.view.loadHistory();<br>&nbsp;&nbsp;&nbsp;      $('#historyView').prev('div').hide()<br>&nbsp;&nbsp;    //}); <== remove this<br>&nbsp;&nbsp;&nbsp; });<br>});
  • Marek_LefekMarek_Lefek Customer Advanced IT Monkey ✭✭✭
    Is there a possibility to add this feature for closed activities?
  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
Sign In or Register to comment.