To Add Print Button and Edit Button In the Suitelet Page

    let subsidiaryId = SubsidiaryArray[i].id;
   let currenturl = url.resolveScript({
    scriptId: "customscript_jj_sl_generate_iwo_aqb3799",
    deploymentId: "customdeploy_jj_sl_generate_iwo_aqb3799",
       params: {
                projectValues: projectValue,
                 subsidiaryIds: subsidiaryId,
                  custBtnClick: 0 // SuiteLet for PDF template page.
                }
      });
  // Create the HTML string for the combined content

let combinedContent = '<a href="https://3689903-sb1.app.netsuite.com/app/common/custom/custrecordentry.nl?rectype=424&id=' + subsidiaryId + '&e=T" style="color: blue; cursor: pointer;">Edit</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + SubsidiaryArray[i].name + ' <a href="' + currenturl + '" style="color: blue; float: right; cursor: pointer;" target="_blank">Print</a>';  
                              AssignSublist.setSublistValue({
                                    id: 'custpage_subsidairyname',
                                    line: i,
                                    value: combinedContent
                                });

Leave a comment

Your email address will not be published. Required fields are marked *