There is a scripting way without using searches to get the record type of a NetSuite record, if you have the internal ID: nlapiGetRecordType({internalid}) This can be run in the browser console on a NetSuite record page. You can also get the internal ID of the current record using: nlapiGetRecordId() Putting them together, you can… Continue reading List of Netsuite commands in browser console- to get the record type
Tag: #SCA
Javascript code to stop the touch movement when a Field is selected in an HTML form
This code can be used to pause the touch movement in mobile devices while entering an input to a field or you can use in canvas field for signature etc. Code snippet: //Additional code in the javascript view file events: { ‘touchstart #in-modal-sig-canvas’: ‘preventCanvasScroll’ }, preventCanvasScroll: function(event){ event.preventDefault(); }, //Additional code in the javascript view… Continue reading Javascript code to stop the touch movement when a Field is selected in an HTML form
How to call the get function of service controller upon page load
If you need to dispaly the results of a netsuite search in a sca webstore page in page load, you need to pass the required data as parameter to that page. In the router function, call the dervice file. You may call it directly or use the model file in which the service url is… Continue reading How to call the get function of service controller upon page load
Webstore subsidiary setup and item display
Items are displayed in an SCA webstore based on the subsidiaries chosen inside the website record in Netsuite. Only the items inside the subsidiaries chosen as online inside the website record is displayed inside the SCA webstore. The subsidiaries are listed inside the setup tab of the website record. Only the items from the subsidiaries… Continue reading Webstore subsidiary setup and item display
Customer application from webstore
MAR-359 Requirement Please add newaccount@marshallelectronics.net to email notification generated after application is completed. Please update the email template to include the following:Subject: New account application completedBody: A new account application has been completed for the following customer:Company Name: (Name) (link to record)ID: (Internal ID)Payment Method: Terms / Credit Card / Wire Transfer 220V checkbox is… Continue reading Customer application from webstore