Guide to Hiding Fields, Buttons, and Columns using jQuery

Sure, I can provide a general guide on how to hide fields, buttons, and columns in a document using jQuery. Here is an example document and instructions: Guide to Hiding Fields, Buttons, and Columns using jQuery Introduction jQuery is a popular JavaScript library that makes it easy to manipulate HTML elements on a web page.… Continue reading Guide to Hiding Fields, Buttons, and Columns using jQuery

Call Suitelet by url

var url = ‘/app/site/hosting/scriptlet.nl?script=customscript_jj_po_rejection&deploy=customdeploy_jj_po_rejection’; The URL ‘/app/site/hosting/scriptlet.nl?script=customscript_jj_po_rejection&deploy=customdeploy_jj_po_rejection’ assumes that your Suitelet script has an ID of customscript_jj_po_rejection and a deployment ID of customdeploy_jj_po_rejection. You’ll need to replace these values with the actual IDs of your Suitelet script and deployment. You can find these IDs in the script deployment record or in the URL of the… Continue reading Call Suitelet by url

Customer deposit payment declined

The reasons for payment declination⦁ Insufficient funds: The cardholder does not have enough money available in their account to cover the payment.⦁ Incorrect card details: The card number, expiration date, security code, or billing address entered does not match the information on file with the card issuer.⦁ Fraudulent activity: The card issuer may decline a… Continue reading Customer deposit payment declined

Date formats

In SuiteScript, you can use the N/format module to format dates in different formats. The N/format module provides methods to format dates in various formats, including the standard formats defined by ISO 8601, as well as custom formats that you can define. Here’s an example of how you can use the N/format module to format… Continue reading Date formats

Convert your key

Windows – convert a .ppk file to a .pem file Start PuTTYgen Under Actions, choose Load, and then navigate to your .ppk file. Choose the .ppk file, and then choose Open. Clear the ‘Key passphrase’ and ‘Confirm passphrase’ fields. NOTE: The passphrase is used to encrypt the key and is an extra layer of protection. If your… Continue reading Convert your key

Identify sandbox and production

Differentiate production account and sandbox account using the host To get the host id we can use var host = url.resolveDomain({ hostType: url.HostType.APPLICATION}); It returns a domain name for a NetSuite account. options.hostType : The type of domain name you want to retrieve. Set this value using the url.HostType enum. options.accountId : The NetSuite account ID for… Continue reading Identify sandbox and production

JSON to XML

We can use this function to convert json data to xml format function OBJtoXML(obj) { try { var xml = ”; for (var prop in obj) { xml += obj[prop] instanceof Array ? ” : “<” + prop + “>”; if (obj[prop] instanceof Array) { for (var array in obj[prop]) { xml += “<” +… Continue reading JSON to XML