Posts

Get Record Id RecordId in LWC

import  {  LightningElement , track, wire, api }  from   'lwc' ; import  {  CurrentPageReference  }  from   'lightning/navigation' ; export   default   class   InternalUserOrderScreen   extends   NavigationMixin ( LightningElement ) { @ wire( CurrentPageReference ) currentPageReference; connectedCallback() {          this .recordId =  this .currentPageReference.attributes.recordId;         setTimeout(() => {                  this .getOrderDetail();                  this .geOrdProducts();                  this .callPortDis();    ...

Insert attachment in script (vf page)

 <apex:page action="{!callMethod}" showHeader="false" controller="ConvertInWordController">     <html>         <head>             <meta charset="UTF-8" />             <meta name="viewport" content="width=device-width, initial-scale=1.0" />             <title>Document</title>             <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js'></script>             <script src="/soap/ajax/51.0/connection.js" type="text/javascript"></script>             <script type="text/javascript">                          function Export2Doc(element, filename = '') {                 alert('call ...

Word Wrap Html Content In Vf Page(PDF)

 public class convertTableResizingCtrl {     final static Integer LENGTH = 7;          public static string getHtml(String htmlContent) {          //String html2 = '<div style="width: 100% !important"> <h1><br data-cke-filler="true"></h1> <p data-placeholder=""> <span style="background-color: rgb(255,255,255); color: rgb(24,24,24);">{{{TableStarted___OpportunityLineItem}}}</span> </p> <figure class="table ck-widget ck-widget_with-selection-handle" contenteditable="false"> <div class="ck ck-widget__selection-handle"></div> <table style="background-color: rgb(255, 255, 255); border: 1px solid black; border-collapse: collapse; margin-left: auto; margin-right: auto;"> <thead> <tr> <th style="width: 80px; border: 1px solid black; padding: 0.5rem; overflow-wrap: break-word; word-break: break-all;" role="textb...