Pass a Value from the Before Submit to the After Submit Script

Requirement: A developer wishes to use a transient variable between the Before Submit and After Submit entry points of a User Event script. Solution: One of the ways to have this done is to define a session object on the Before Submit script using the ‘runtime.Session’ method found in the runtime record. The After Submit… Continue reading Pass a Value from the Before Submit to the After Submit Script

Backbone.cache.model

A simple module to add a localstorage cache to Backbone.sync. Objects you have already fetched are retrieved from the local cache. If the object isn’t cached, it falls back to ‘Backbone.sync’ which does not need to be the default implementation, so it should be compatible with any custom sync implementations. To use, extend Backbone.CachedModel instead… Continue reading Backbone.cache.model

Async functions

An async function is a function declared with the async keyword. Async functions are instances of the AsyncFunction constructor, and the await keyword is permitted within them. The async and await keywords enable asynchronous, promise-based behavior to be written in a cleaner style, avoiding the need to explicitly configure promise chains. Async functions may also… Continue reading Async functions

Google Apps Script

What is Google Apps Script . . .  Google Apps Script is a scripting platform developed by Google for light-weight application development in the Google Workspace platform. Google Apps Script was initially developed by Mike Harm as a side project whilst working as a developer on Google Sheets. It is based on JavaScript 1.6, but… Continue reading Google Apps Script

BackboneJS

BackboneJS is a lightweight JavaScript Library that allows to develop and structure client side apps that run in web browserBackboneJS offers an MVC framework which abstracts data into models, DOM into views and binds these two using events. BackboneJS communicate via events BackboneJS has a soft dependency with jquery.js and hard dependency with underscore.js Features… Continue reading BackboneJS

Optimizing images for Advanced PDF templates in Netsuite

Netsuite has a data limit of 15Mb (current limit, may be revised in future) for file transfers, so it is recommended to optimize the assets that will be included while a new advanced template is created since PDF templates can use pretty large and graphics-intensive files/images. Note: Netsuite may or may not throw a data… Continue reading Optimizing images for Advanced PDF templates in Netsuite

Customer Deposit PDF Print

Make a Custom Button in Customer Deposit Record And Clicking on the Button it will Render a Advanced Pdf Template User Event Script For Button Creation Client Script For UE Function Triggering Suitelet For Pdf Rendering

Excel macro for inserting images from a Netsuite link

An excel macro that can be used to insert images stored in NetSuite cloud to an excel workbook. Requirement for the macro: Adding images to an excel workbook is a straightforward task in usual cases but files behave differently when NetSuite links are used. Files are usually accessed from file cabinet using the NetSuite file… Continue reading Excel macro for inserting images from a Netsuite link

Finding Text Similarity using Python

Cosine similarity is a measure of similarity between two non-zero vectors of an inner product space that measures the cosine of the angle between them. Similarity = (A.B) / (||A||.||B||) where A and B are vectors. nltk.tokenize: It is used for tokenization. Tokenization is the process by which big quantity of text is divided into… Continue reading Finding Text Similarity using Python