We can clone the repository to the local system by using the following ways. Click the ‘Code’ button and copy the ‘Clone with SSH’ link. Open the ‘Open Git Bash Here‘ by right clicking from the folder C -> _repos Then type ‘git clone’ and paste the copied link. Select the folder to clone the… Continue reading Clone GitLab repository to the local system
Author: Jency Nidhin
Establish the connection between GitLab and the local system
SSH keys allow you to establish a secure connection between your computer and GitLab. For that, Create the SSH key. Copy the SSH public key and paste it in the GitLab Go to GitLab Edit the profile Click SSH keys Paste the SSH public key and the additional details. Save.
Create SSH key for GitLab
To create the SSH key for connecting the GitLab Open the Windows PowerShell type the following command. ssh-keygen -o -t rsa -C “emailid@jobinandjismi.com” If enter the file path else click enter. For “Enter passphrase”: click enter. For “Enter same passphrase again”: click enter After doing this, a public key and a private key will be… Continue reading Create SSH key for GitLab
Parsing and Formatting Dates in NetSuite Using the N/format Module
NetSuite’s N/format module provides useful functions for handling dates, making it easy to convert between string and date formats. The format.parseDate() function converts a date string into a JavaScript Date object based on the user’s date format preference. Conversely, format.formatDate() takes a Date object and converts it into a formatted string. Example: define([‘N/format’], function(format) {… Continue reading Parsing and Formatting Dates in NetSuite Using the N/format Module
Sending Bulk Emails in NetSuite Using the N/email Module
NetSuiteās email.sendBulk() function allows you to send bulk emails to multiple recipients in a single operation, unlike the more commonly used email.send(). This is especially useful for sending notifications, alerts, or updates to multiple users at once. In the example below, emails are sent to a list of recipients, with the system user (-5) as… Continue reading Sending Bulk Emails in NetSuite Using the N/email Module
Dynamically Creating Folders in NetSuite Using the N/file Module
By using the file.createFolder() function, we can programmatically organize the file cabinet by creating new folders under specific parent directories. In the example below, a new folder named “New Folder” is created within a parent folder with the ID 123. Example: define([‘N/file’], function(file) { function createFolder() { var newFolder… Continue reading Dynamically Creating Folders in NetSuite Using the N/file Module
Formatting Numbers as Currency in NetSuite Scripts Using the format Module
n NetSuite SuiteScript, you can format numbers with commas and decimal points across all types of scripts (not just Suitelets) using the format module. The format.formatCurrency() method converts numeric values into a currency format, adding commas for thousands and ensuring two decimal places. This is useful when you need to display or process numbers as… Continue reading Formatting Numbers as Currency in NetSuite Scripts Using the format Module
Usage of “removeSelectOption” and “insertSelectOption”
Create a search or function to return the selected options as a value and text. For example. 0: [value : 123, text: abc] 1: [value :456, text: xyz] then add the following code to display the selected options: Field.insertSelectOption({ … Continue reading Usage of “removeSelectOption” and “insertSelectOption”
Create Saved Search in the NetSuite using Debug Console
Provide the following code section in the console. if you don’t know the real field name, you can create the saved search by this method. require([‘N/record’, ‘N/runtime’,’N/search’], function (record, runtime,search) { var transactionSearchObj = search.create({ type: “transaction”, title: ‘FXAdjustment’, filters: [ [“posting”, “is”, “T”], “AND”, [“memorized”, “is”, “F”], “AND”, [“account.isinactive”, “is”, “F”], “AND”, [“account.type”, “anyof”,… Continue reading Create Saved Search in the NetSuite using Debug Console
Dynamically add options to a select field
In NetSuite, customizing select fields on forms enhances user experience by displaying relevant options based on specific criteria. The insertSelectOption and removeSelectOption functions in SuiteScript are essential tools for dynamically managing these dropdown lists. The insertSelectOption function allows developers to add new options to a select field by specifying parameters such as value, text, and… Continue reading Dynamically add options to a select field