I hereby claim:
- I am benjsicam on github.
- I am benjnextpay (https://keybase.io/benjnextpay) on keybase.
- I have a public key whose fingerprint is 1769 F783 B7E7 5D01 EE13 2DB6 5978 B4D5 4DEC 4FC9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Executes when the wizard page loads. Binds a function/callback on the Browse button. | |
| * @returns {Void} | |
| */ | |
| function onPageInit() { | |
| var fileUploadButton = jQuery('#browse'); | |
| if (fileUploadButton.length == 0) return; |
| /** | |
| * File Upload Suitelet. | |
| * @param {nlobjRequest} request Request object | |
| * @param {nlobjResponse} response Response object | |
| * @returns {Void} Any output is written via response object | |
| */ | |
| function main(request, response) { | |
| if (request.getMethod() == 'GET') { | |
| /* Build the upload form. */ |
| /** | |
| * Executes when the wizard page loads. Binds a function/callback on the Browse button. | |
| * @returns {Void} | |
| */ | |
| function onPageInit() { | |
| var fileUploadButton = jQuery('#browse'); | |
| if (fileUploadButton.length == 0) return; |
| /** | |
| * File Upload Wizard. | |
| * @param {nlobjRequest} request Request object | |
| * @param {nlobjResponse} response Response object | |
| * @returns {Void} Any output is written via response object | |
| */ | |
| function main(request, response) { | |
| var assistant = nlapiCreateAssistant("File Upload Wizard", true); | |
| assistant.setOrdered(true); |
| /** | |
| * WIZARD CODE | |
| * This is the step where you create your file upload page. | |
| */ | |
| if (step == 'custstep_upload_file') { | |
| var fileField = this.wizard.addField('custpage_file', 'select', 'File'); | |
| var uploadButton = this.wizard.addField('custpage_btn_upload', 'inlinehtml', 'Browse'); | |
| fileField.setPadding(2); | |
| fileField.setMandatory(true); |
| private void getFileAndSaveLocally() throws IOException { | |
| //Login to NetSuite Web Service | |
| /* | |
| * Get the File from NetSuite by invoking the get operation | |
| */ | |
| _console.writeLn("Enter Internal ID of the File: "); | |
| String internalID = _console.readLn(); | |
| RecordRef NSFileRef = new RecordRef(); | |
| NSFileRef.setInternalId(internalID); |
| <!-- Declare HTML5 DOCTYPE. This is needed because Bootstrap will no work if the DOCTYPE isn't HTML5 --> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Registration Form</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <!-- Include Bootstrap CSS from CDN --> | |
| <link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> |
| /* | |
| * Demonstrates how to use the utility. | |
| */ | |
| var dateTimeInUSWestCoast = new Date(); | |
| var convertedDateTime = DateTimeZoneUtils.getCurrentDateTime(1); | |
| var convertedDateTimeText = DateTimeZoneUtils.getCurrentDateTimeText(1, 'datetimetz'); | |
| var convertedCompanyDateTime = DateTimeZoneUtils.getCompanyCurrentDateTime(); | |
| var convertedCompanyDateTimeText = DateTimeZoneUtils.getCompanyCurrentDateTimeText('datetimetz'); |