Thursday, May 2, 2019

Ability to get image width and height in Suitelet

NetSuite currently does not have a functionality to get the image's width and height attributes. The users can experience an error while trying so: '"Image" is not defined.'
However "Image" is not recognized as a class in NetSuite. It is a JavaScript DOM object according to W3Schools standards.

Suitelet example code to get image attributes



Disclaimer: The sample code described herein is provided on an"as is" basis, without warranty of any kind, to the fullest extentpermitted by law. NetSuite Inc. does not warrant or guarantee the individualsuccess developers may have in implementing the sample code on theirdevelopment platforms or in using their own Web server configurations.

NetSuite Inc.does not warrant, guarantee or make any representations regarding the use,results of use, accuracy, timeliness or completeness of any data or informationrelating to the sample code. NetSuite Inc. disclaims all warranties, express orimplied, and in particular, disclaims all warranties of merchantability,fitness for a particular purpose, and warranties related to the code, or anyservice or software related thereto.

NetSuite Inc. shall not be liablefor any direct, indirect or consequential damages or costs of any type arisingout of any action taken by you or others related to the sample code.

No comments:

Post a Comment