CA Service Management

Add button to get ticket url! 

Oct 30, 2015 02:14 PM

Hi guys, last week i've made something that everyone find very usefull. So i'm gonna share it with you and hopefully your users will thank you.

 

When someone want to send a email with a link to a specific ticket, this button paste the ticket url to the clipboard.

 

This example is for detail_in.htmpl

 

function CopyToClipboard()
{
   var text="http://servicedeskServerAddress:8080/CAisd/pdmweb.exe?OP=SEARCH+FACTORY=cr+SKIPLIST=1+QBE.EQ.ref_num=" + "$args.ref_num";
   if (window.clipboardData && clipboardData.setData)
   {
       clipboardData.setData('text', text); 
       alert("URL pasted to clipboard");
   }
}



ImgBtnCreate("COPYURL","URL",
  "CopyToClipboard()", true, 0);

 

Ce document a été généré à partir de la discussion suivante :The specified item was not found.

Statistics
0 Favorited
7 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.