How to use a mapping object to replace values in a data array of objects

The requirement was to show abbreviated values for the shipping item label values sourced from the NetSuite side in a React JS web application. For this, I created a map object and stored the original names and abbreviations as key-value pairs. Used a map function to replace the values in the data object before rendering.… Continue reading How to use a mapping object to replace values in a data array of objects

Tips for creating an effective ‘Readme’ file for a software project

A README file in a software project is a text file that provides a detailed description of the project. It serves as a guide for other developers and users, offering information about the project, its purpose, how to install and run it, and any other relevant details. You can find this file in most project… Continue reading Tips for creating an effective ‘Readme’ file for a software project

How to create a React-JS application and host it on the NetSuite file cabinet

We can use the ‘Vite.js’ development tool for creating a React-JS application and deploying it to the NetSuite file cabinet. To install Vite, use the command in CMD: To create a new Vite react project(replace ‘project-name’ with actual project name): You will be able to select the framework (react) and variant(typescript) executing the previous command.… Continue reading How to create a React-JS application and host it on the NetSuite file cabinet

How to display a date object as a date value in another timezone

In Javascript, the date object does not store any specific timezone value. The time is stored in the value of the local timezone relative to GMT(Greenwich Mean Time). If we print the time object, we can see that the time is represented as a value with a sign and offset from the UTC(Coordinated Universal Time)… Continue reading How to display a date object as a date value in another timezone

Different Timezone Abbreviations and Time Offset values for Date Object Creation

Following is a list of country codes, their timezone identifiers, the timezone offset in each of these regions with respect to UTC, and the standard Timezone abbreviations for each location. These are very useful when you want to convert the time object value in a specific time zone to a time object value in a… Continue reading Different Timezone Abbreviations and Time Offset values for Date Object Creation

Uploading files to Azure cloud server via API in JavaScript

We can upload files to the Azure server through API ‘PUT’ request in JavaScript. Follow the steps: Set up a remote server location in Azure Cloud Server. This can be done through the ‘Microsoft Azure Storage Explorer’ application by creating a blob container. Generate the upload link with the authorization parameter for the ‘Blob container’.… Continue reading Uploading files to Azure cloud server via API in JavaScript

How to run an existing NetSuite Integration React WebApp project in a new system

We might need to edit or update an existing NetSuite Integration React WebApp project in a new system. Here are the steps for that: Clone the repository in VS Code. Choose the correct repository branch before cloning. Open the project directory in cmd. Make sure the correct Node Virtual Machine is installed. Use ‘nvm install… Continue reading How to run an existing NetSuite Integration React WebApp project in a new system