Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
XML View Snippet
Hi Guys,
Sharing to you a snippet I made to quickly view the XML of the record.
Details: It adds two buttons, one will open the XML View on the same window, the other one will open it in a new tab hence the label NW.
/** * @NApiVersion 2.x * @NScriptType UserEventScript * @NModuleScope SameAccount */ define(['N/runtime','N/ui/serverWidget'], /** * @param {runtime} runtime * @param {serverWidget} serverWidget */ function(runtime,serverWidget) { /** * Function definition to be triggered before record is loaded. * * @param {Object} scriptContext * @param {Record} scriptContext.newRecord - New record * @param {string} scriptContext.type - Trigger type * @param {Form} scriptContext.form - Current form *
0