×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Jonathan Vargas
Added: Apr 30, 2020 10:49 PM
Views: 4317
Tags: no tags
  1.   var urldata = url.resolveScript({
  2.                     scriptId: 'customscriptpresupuesto_pdf_st',
  3.                     deploymentId: 'customdeploypresupuesto_pdf_st',
  4.                     returnExternalUrl: false
  5.                 });
  6.                 urldata += "&recordid=" + scriptContext.newRecord.id + "&recordtype=" + scriptContext.newRecord.type;
  7.                 var form = scriptContext.form;
  8.                 form.addButton({
  9.                     id: 'custpage_sector',
  10.                     label: 'Distribuir en Planeacion',
  11.                     functionName: ' new function(){ window.location.href="' + urldata + '";;};'
  12.  
  13.                 });