My Stuff
Comments
-
I actually agree with david.smith from the note that we mentioned on the comment. You should try using the internalid values and not the item code on the filter since the item is a select field and per consideration of the need, it should really be internalids and not item code.
-
D3 and HighCharts are my personal choice for my graph needs
-
MChammaTX , For this concern, since the loader function triggers all the time, I would rather suggest filing a support case so that we could work with our engineers regarding the mentioned scenario.
-
Hi karenn Just wondering if salesSearch = search.load({ id: 'customsearch_pe_campaignitemsales' }); salesSearch.filters.push(search.createFilter({ name: 'leadsource', operator: search.Operator.IS, values: internalid })); salesSearch.filters.push(search.createFilter({ name: 'item', operator: search.Operator.ANYOF, values:…
-
Same thoughts as david.smith , there is a label option for the Column object. Also, if you are trying to retrieve the value, more or less, you should have an object that replicates the Column and feed it to the getValue function of the result.
-
We could consolidate on this thread https://usergroup.netsuite.com/users/forum/platform-areas/customization/suitescript-2-0-custom-code/421260-automated-export-of-saved-search-result-as-csv-to-netsuite-file-cabinet-or-external-ftp-server-dropbox-cloud
-
For the sample provided by JacksonP it really works well with the file cabinet. If you want to push it to external services like dropbox, you should first learn how to use their authentication model and their saver api (https://www.dropbox.com/developers/reference). If you want to save it on external SFTP, you may checkout…
-
The purpose of the loader function is only whenever the value for a given key is no available in the cache, it would automatically handle the placing of the values for each keys through the return of the loader function. It shouldn't trigger unless a value for the key is present in the cache. The loader function is the one…
-
Hi starlingMark I would first suggest for you to get the field type by loading the record then .getField() then .getType(). From there you may isolate the formatting that the format module that you would try. Another thing, do you have any other scripts deployed on the workorder which might have triggered on XEDIT event…
-
N/ui/serverWidget is a module limited only to server script which is common misconception. :)
-
I agree with Jason. Best approach is performing a search against the record type. But on thing to note, is the usage units that you have. A better approach is to use a paginated search using Search.runPaged() instead of the usual search and on the restlet request, add the page parameter to enable the improved performance…
-
Hi MChammaTX , On my testing, it may depend as well on the complexity of other criteria and columns that you plan to have on the search. I would rather suggest that you refine that big amount of internal ids to be passed as it may also impact the performance of the search. If you plan to use the search on M/R, better have…
-
The restrictions for the module loading whether it is a server only, client only or for server and client would still apply. The concept of conditional loading is rather related to calling a module compatible to the script type depending on the scenario without loading it before the script runtime.
-
The forward slash is fine since you are using absolute page. Just using define(['/SuiteScript/util'], function(util){.....})
-
This is a good thing that you have pointed out which can be considered soon regarding better APIs. Thanks for the note.
-
One thing also is for the sublist object in Form object in N/ui/serverWidget is referred as group, while currentRecord and record uses sublistId.
-
Hi elie , Have you tried using 'F'. When I am dealing with checkboxes in Suitelets in 2.0, I still use 'F' while dealing on client scripts linked to suitelets, I use true or false.
-
This actually happens as well when you are creating a newly uploaded script with the scenario the I have mentioned e.g. define([], function(){ var a = 0 function myFieldChangedFxn(context){ var currentRecord = context.currentRecord; var x = a; var sublistId = context.sublistId; var fieldId = context.fieldId; if(sublistId…
-
From what I see from my testing, if you placed an initialization inside the main callback function and is referred within the functions used by the entry points, you may encounter this concern.
-
Hi Jarod Tavares , We have already filed Issue 435362 for this concern. We may subscribe to the mentioned issue and we will keep you posted for it
-
Hi slarsen Kindly file a support case for this concern so that we would be able to work on the mentioned concern on our end in NetSuite.
-
Here is the code for rescheduling script in Suitescript 2.0 [CODE] [SIZE=2][COLOR=#7f0055]function[/COLOR][/SIZE] reschedule(rescheduleParams) { [SIZE=2][COLOR=#7f0055]var[/COLOR][/SIZE] scriptTask = task.create({ taskType : task.TaskType.SCHEDULED_SCRIPT }); scriptTask.scriptId =…
-
You may also load the record in the script debugger, perform a getField() then perform a getSelectOption() on your customerstatus field
-
If you want to do it in scheduled script in 2.0, no. You can use Map/Reduce and build the code keeping in mind that the code runs with parallel context. I also agree with Eric from the statement above that it is rather a matter of better logic or placing of the functions e.g. why not use submitFields() instead of load and…
-
From my experience using it with M/R script, it makes thing easier when retrieving data that would be used on the parallel phases or also store information from a RESTlet scheduling an M/R script that is too big or too complicated to be stored on parameter fields
-
On my case, I normally write the to the cache on either getInputData or map then retrieve them on reduce (If I write it in getInputData) and summarize (if I write into the cache using the parallel phases) also for the fact that I would want to consolidate things on summarize where I do the post-run reports of the M/R…
-
Also, one good approach is to iterate on the mapSummary, reduceSummary errors object on the summarize phase
-
HarriVayrynen My suggestion on this would may depend on what information you want to use. You can use search module or record module's lookupFields() to retrieve information and dynamically construct an HTML string using the values from the recrod data using either search module or record module.
-
Hi Chris, When you added it on require.config() e.g. require.config({ paths : { moment : "<path to your momentjs>" } }) define(['moment',...], function(moment, ...){....}) Have you referred the alias to the momentjs?
-
You can check it out on N/url module. There are a number of options that would generate the URL similar to the functionalities of nlapiResolveURL()