My Stuff
Comments
-
Also, with 2018.1, every account will be upgraded to having 2 "processors." So check your upgrade date in the new release portal, this should be available in your account soon. Once its available, you can remove the queue reference from a script deployment record and the script deployment record will run in the first…
-
It could be related to permissions - if the user has a restriction that would prevent them from seeing the item, then this is the error you would expect. Have you tried testing using the administrator role?
-
Another major pain for me has been working with ui dialog and message. They all run asynchronoulsy which make them useless for client side validation, which is like 50% of the use cases. Can NetSuite provide a synchronous option to display these. Dialog looks SO much better than alert. Or as an alternative, how about an…
-
You could accomplish this by either creating a form suitelet and including your current HTML output in the value of an inline HTML field or iframe-ing the suitelet inside of a NetSuite page (record, Suitelet, Portlet, etc.) A HTML Portlet script is designed to do exactly what it sounds like you're describing. You get a…
-
Dialog is not a global object, so to display a dialog you would need something like define(['N/ui/dialog'], function(dialog) {...
-
michoel - Thanks for pointing that out, I wasn't aware of that new feature in SS 2.0! latchadev - No offense taken, glad you were able to get the information you needed!
-
Thanks for asking, I'm sure the community will have lots of good ideas. To kick off the discussion, how about control over the time-out when making a web request?
-
You can add additional fields after the last column of existing SubLists using Form.getSublist(options) and Sublist.addField(options). The only thing you cannot do is insert a field in the middle of an existing SubList.
-
Sorry if this is obvious, but have you double-checked that the inactive checkbox is not checked on item internal ID 387? Also, make sure that this item meets the saved search criteria if the custom form being used has its items filtered by a saved search.
-
Is the behavior any different if you trigger the mass update using the N/task module from a script running in another context?
-
I haven't run into that issue myself, but if I was struggling with it my next step would be to edit the script to put the field name into a variable and log the value in that variable prior to invoking currentRecord.getValue.
-
How about the ability for fields created dynamically via SuiteScript to use filtering, or, if possible, the ability to dynamically add filtering to existing standard/custom fields in the before load user event? There seem to be a lot of questions requesting that on this forum, so that addition could push a lot of users…
-
SuiteScript doesn't offer a supported way to show or hide fields in client scripts. But you have a few options: 1. Use a user event script (runs server side) and automatically refresh the page to trigger it. 2. Same as #1, but for a suitelet hosted within an iframe, so the whole page doesn't reload. 3. Build your fields…
-
I've used the document search approach, the web site hosting files approach, and SSPs, but ultimately I found the best solution for static content has been to host the HTML/CSS files outside of NetSuite where I have control over the URLs.
-
Have you tried runtime.executionContext in the N/runtime module? For example: //Add additional code ... if (runtime.executionContext === runtime.ContextType.USEREVENT) return; ... //Add additional code
-
Sorry if my response was overly complex - when trying to do something that SuiteScript isn't supposed to support, there are often work-arounds, but they can get tricky. As far as what SuiteScript is designed to do, it's actually pretty easy to use. You can click the HELP link at the top of any page and navigate to…
-
khultquist Is correct, those are both good approaches. Other approaches would include a mass update script or a map/reduce script since governance limits are for each record. As far as more details on a simple solution (applies to ss 1.0 or 2ss 2.0): [LIST=1] [*]Create a checkbox on the record type your processing…
-
Not sure what your layout looks like, but you can also use nlobjSubList.addButton to add a native NetSuite button to a SubList if that position would make sense for your use case.
-
My mistake, the SS 2.0 API method is Sublist.addButton(options). It doesn't give you the option to add a button anywhere on the page like you can with an inline HTML field, but it does give you one additional place on the page to add a button that could potentially work with your layout.
-
Sorry I can't help with a native SuiteScript solution, but you can make a web request to a SOAP endpoint from SuiteScript: https://system.na1.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2017_1/schema/record/transactionbodycustomfield.html
-
If your only goal is improving the way the error message displays on the screen, you can throw a string: throw 'my error';
-
I imagine the error reads that way because the custom transactions feature shares underlying code with the custom GL lines feature. Anyways, although I'm not familiar with the error, since you said it works in a Suitelet, have you tried calling a suitelet/restlet from your user event script via nlapiRequestURL to create…
-
How about log.debug({ title: 'Server Request Parameters', details: options.request.parameters.custparam_id });
-
Exactly: if(currentRecord.getValue('custbody_verify_price') == true){ ...} else { return true; }
-
What data type is the field? Unless the field is a drop-down and you're referring to dynamically populating the options, you can set the value of a custom field in the BEFORE LOAD user event as long as the field isn't set to "Store Value."
-
Also, you should return false in the case that you do want to prevent the save operation.
-
Have you considered running a search and using formula fields with SESSIONTIMEZONE to get the session time zone and DBTIMEZONE to get the database time zone? The difference in the TZ_OFFSETs between the two is the amount of time to add/subtract from the new date object.
-
Would you business process be adaptable to creating this custom transaction with a scheduled script that runs every 15 minutes instead?
-
I'd suggest an inlinehtml field and creating your own dropdown with HTML, but the problem with that is that I don't believe inline HTML fields can be used as transaction column fields
-
Are you referring to the SSS_INSTRUCTION_COUNT_EXCEEDED error? That error is based on the number of JavaScript statements and varies based on script type, with plug-ins offering the lowest limit and scheduled scripts offering the highest. I believe the limits range from 100,000 to 1,000,000 instructions. With a scheduled…