Create dynamic HTML page using Data source

  var instform = file.load({ id: ‘fileno’ }); var html = instform.getContents(); var renderObj = render.create();   //render create and add content   renderObj.templateContent = html //Adding ThirdParty Libraries   renderObj.addCustomDataSource({   format: render.DataSource.OBJECT,   alias: “libraryPath”,   data: libraryPath //this should be an object or array by strighify version   }); var finalRender =… Continue reading Create dynamic HTML page using Data source

Render HTML Markup on a Suitelet From an HTML File in File Cabinet

Scenario A user wants to create their own form/HTML page using a Suitelet. Instead of concatenating a string that represents HTML markup, the user would like to use an HTML file uploaded into their File Cabinet and render it onto a Suitelet. Solution This can be accomplished by using the write method of the ServerResponse object,… Continue reading Render HTML Markup on a Suitelet From an HTML File in File Cabinet

Use primevue library in single html script that use vue cdn

Add the below script tags     <script src=”https://unpkg.com/primevue/umd/primevue.min.js”></script>     <script src=”https://unpkg.com/@primevue/themes/umd/aura.min.js”></script> Add the necessary primevue component in the script as shown below const app = createApp({ // rest code }) app.use(PrimeVue.Config, {     theme: {         preset: PrimeVue.Themes.Aura,         options: {          … Continue reading Use primevue library in single html script that use vue cdn

Customized html alert popup

Scenario: Show a popup mentioning insufficient credit limit balance on SO. Refer the below code for reference. Here uses a html alert popup and embedded into a inlinehtml field. const PENDING_APPROVAL = ‘A’; const beforeLoad = (scriptContext) => { if (scriptContext.type === scriptContext.UserEventType.DELETE) return; try { let soForm = scriptContext.form; let soRecord = scriptContext.newRecord; let… Continue reading Customized html alert popup

what is srcset? what is its relevancy?

The srcset attribute in HTML is used with the <img> tag to define multiple image sources for different display conditions, such as screen size or resolution. It allows browsers to choose the most appropriate image based on factors like the screen size or pixel density (DPR—Device Pixel Ratio). <img src=”image-default.jpg”      srcset=”image-320w.jpg 320w,   … Continue reading what is srcset? what is its relevancy?

Pass CSV file data from suitelet and create the csv file in the html page

Scenario: We have a html page, which contains a generate report button. On clicking the button, the csv file should be downloaded. From the html page we are passing the values to the suitelet. From the suitelt the response data is returning to the html page. Solution: HTML: function call on button click:   var… Continue reading Pass CSV file data from suitelet and create the csv file in the html page

Styles for creating static headder

<!DOCTYPE html> <html lang=”en”> <head>   <meta charset=”UTF-8″>   <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>   <title>Floating Header</title>   <style>     body {       font-family: Arial, sans-serif;       margin: 0;       padding: 0;     }     /* Style for the floating header container */     .header-container {… Continue reading Styles for creating static headder

HTML for creating search input

`<!DOCTYPE html> <html lang=”en”> <head>     <meta charset=”UTF-8″>     <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>     <title>Search Bar Example</title>     <style>         .search-container {             position: absolute;             top: 30px;             right: 10px;    … Continue reading HTML for creating search input

Understanding the Impact of HTML Structure on SEO

In the ever-evolving landscape of Search Engine Optimization (SEO), web developers and digital marketers are constantly exploring avenues to enhance a website’s visibility and ranking on search engine result pages (SERPs). One crucial aspect that often comes under scrutiny is the HTML structure of a webpage. Foundation of SEO: HTML Structure HTML, or Hypertext Markup… Continue reading Understanding the Impact of HTML Structure on SEO