My Stuff

nyokee Newbie

Comments

  • You can try using nlapiSearchGlobal(keyword). The documentaion of this can be found in Netsuite Help Center. This is the same as "Global Search" in Netsuite UI. Hope this helps.
  • Try converting your online form to a suitelet form (Available without login). Upon submission, create the custom record data along with the file you want to upload.
  • You can create a custom record that has a field source in the Role. Type = Multi Select List/Record = Role This custom record can be now used as reference in the script parameter in the salesorder. On your beforeLoad uservent, you can access the this script parameter via nlapiGetContext().getSetting('script',…
  • A suitescript workaround can do this. With the help of jQuery 1. Download the jQuery lib (jquery-1_3_2.js) 2. Upload jQuery Library in SuiteScript Document Path - jQuery_Path = https://system.netsuite.com/core/media/media.nl?id=225amp;c=NETSUITEACCTNUM&h=776e44a8a9f5906ca9bc&_xt=.js - You can check the js path by going to…
  • Try initializing the record first then call the .getAllFields API... On beforeLoad you can do: var recRef = nlapiGetNewRecord(); var arrRecFld = recRef.getAllFileds(); *** You can also load the record first (if the record exist) using nlapiLoadRecord() then call .getAllFields() HTH. - nyox :)
  • Hi Elie, There's a new SuiteScript API related to CSV import, nlapiCreateCSVImport(). Probably, you can combine scheduled script with this to do the CSV import. I have not tried testing the new API, but I think this will help minimize creating a custom record in mimicking the NS csv import process.
  • Hi Joe, This is undocumented, you can use the nlapiGetContext() to get the user preference. Below is a sample code: // == Getting User Time Zone Preference: var ctxObj = nlapiGetContext(); var userTimezonePref = ctxObj.getSetting('PREFERENCE','TIMEZONE'); // === Hope this helps. - nyox (Member, LinkedIn Netsuite Dream Team)
  • Olivier is correct.... you should stringify it when you pass it... then read it on receiving end by using JSON.parse(parameter)... This is what I'm doing in my suitelet when I'm trying to use JSON as an script parameter...
  • Check your Date format Preferences, your date preference is getting a "MM/DD/YYYY" format, this is the reason why it is returning a "January" month instead of "June". You can check this in 2 ways: 1. User Preference: Home > Set Preferences > General Tab (Formatting) 2. Company Preference: Setup > Company > General…
  • If you are having problems with permission, you can try to use an external suitelet instead of restlet. Just use the nlapiRequestURL api to call the suitelet. Just make sure the external suitelet does have an Administrator role access. In accessing the multi select field, just get the value of the field and try to parse…
  • I've also encountered this permission role error. Most of the time search/lookup functionalities does not apply to some of the users. One alternative workaround for this is using nalpiRequestURL API that calls an external suitelet. The suitelet will do the search and this always has an Administrator access role. You can…
  • Another workaround you can do is store the value of the execution type via beforeLoad using form.addField functionality. From here, on the client side, you can do your "if" or "case" statement. Below is a sample code: // On Userevent: function beforeLoad(type, form) { var functionName = 'beforeLoad'; var processMessage =…
  • Hi Tris, You need to call/define it in the client script that you created. Page Init Function: pageInit - nyox
  • yep... that's right... :cool:
  • Hi Tristan, You may need a little DOM cheat for this. Here's what you can do: 1. Create a client script (No need to deploy since you will be calling this to your suitelet using "objForm.setScript") 2. Create a pageInit function to your script and add this line >> "ShowmainMachine("sl_bill_lines");" 3. Below is a sample…
  • Package Weight is a sublist type. You can try "nlapiGetLineItemValue('package', 'packageweight', 1);" Hope this helps. -- nyox :cool:
  • Hi Alex, You can do this via beforeLoad (if your doing this in userevent). You need to create a search for filtering. Below is a sample code in suitelet that you can use as reference: function main(request, response) { try { var fobj = nlapiCreateForm('Test'); var filterCompanyName = 107; var vendorFilterTypeValue = 5; var…
  • Hi Clinton, I can;t replicate the error that you are getting. You can add this in your suitelet. See if this works. function customerCenter(request, response) { var myRole = nlapiGetRole(); var ADMINISTRATOR_ACCESS = '3.0'; var CUSTOMER_CENTER_ACCESS = '14.0'; //response.write(myRole); if (myRole != ADMINISTRATOR_ACCESS ||…
  • oopppsss my mistake.. It should be... "if (myRole == ADMINISTRATOR_ACCESS || myRole == CUSTOMER_CENTER_ACCESS)" not "if (myRole != ADMINISTRATOR_ACCESS || myRole != CUSTOMER_CENTER_ACCESS)" - nyoks:D
  • Hello Nathan, I don’t know the reason why are you doing this via Client-Side scripting, wherein, you are trying to create a new record. Client-Side scripting is designed specifically for form validation. If you are trying to create a new record, best practice would be, do it via server-side scripting. Since, you are…
  • The above code is reference from case #969380.
  • @fulanku you can try "location.href" instead of "document.location"
  • Hello Nick, Perhaps you can try doing this via suitelet in getting the time entry internal id. What you can do is in your script create a timebill search. In your search, add a date filter. If you want to narrow down it to a specific employee, you can also add a employee filter. To illustrate this in script, you can check…
  • You can try this one: var record = nlapiLoadRecord('vendor', tvendorintid); var expenseaccountValue = record.getFieldValue('expenseaccount'); alert(expenseaccountValue);
  • Hi, I'm not that familiar with C#. I'm using java in my ws apps. I was able to connect in ODBC using the code below. Perhaps, you can use this as a reference: /*** ############ start ODBC Connect Test ############ ***/ static Connection conn; static Statement st; public static void odbcConnect() { try { // Step 1: Load the…
  • A defect was already filed for this: Defect 172028: WS > Update Customer Record > Add Credit Card > Adding Credit Card in Customer record wipes out all existing Credit Cards even if "creditCardsList replaceAll" field is equal to false. BELOW IS THE WORKAROUND: 1. Add new credit card in the UI. 2. Perform the "Get" method…
  • You can try to use "getText" instead of "getValue". For webstore, I usually use external suitelet to access the item record details. I use ajax jsonp to access the external suitelet (JSONP is the workaround for cross-domain access). In my suitelet, I'm using the searchRecord api, then use the "getText" to get the url…
  • Hi Tristan, You can restrict your script running on "Customer Center" using nalpiGetContext() API. Below is a sample code: var ctxObj = nlapiGetContext(); if (ctxObj.getRoleCenter() == "CUSTOMER") { // DO YOUR STUFF HERE } HTH - nyox
  • Hi Margot, You can try jQuery to remove this. This is the same workaround in removing the "De-Escalate" button. Though this is a DOM-based workaround, it is worth a try testing this. You can check the link below: https://usergroup.netsuite.com/users/showthread.php?p=106664#post106664 - Nyox
  • You can follow this steps: 1. Download the jQuery lib (jquery-1_3_2.js) 2. Upload jQuery Library in SuiteScript Document Path - jQuery_Path = https://system.netsuite.com/core/media/media.nl?id=225amp;c=NSACCOUNT&h=776e44a8a9f5906ca9bc&_xt=.js - You can check the js path by going to Documents > File > SuiteScript > Click…