My Stuff
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Intelligent Payment Automation version 1.0.3 is now available in the SuiteApp Marketplace. The SuiteApp, powered by BILL, lets you automate payments, manage vendor details, and bank account information within NetSuite. Learn more
Comments
-
I've seen that, and it was indeed caused by endless loops in my cases
-
Here are the problems with your script: function sampleFieldChanged(type, name); { if (name == 'custentity_test_training_test') { Problem 1: Var with a capital will not work. It must be var. Javascript is case sensitive var todays_date = new Date(); var todays_date_ms = todays_date.getTime() Problem 2: the string…
-
Don't know if it's a typo, but you are missing a " at that start of test@test.com
-
The problem is most likely that the GP value is trying to be written in a Percentage type field, and for some reason negative percentages are not allowed. The solution is to switch to a free-form text field type.
-
Use nlapiScheduleScript to schedule a script, and then pass your script parameters. Pass along enough information so the Scheduled script can reproduce the search by itself. For example, to figure out which records need updating, I imagine you run an nlapiSearchRecord, right? So perhaps simply pass along the filter values…
-
Throwing an error usually works, yeah.
-
Out of curiosity, with nlapiSearchRecord, was what with Run As Admin or not? Thanks
-
Yes I can, and do. Problem is, any user looking at the list is going to see that sort arrow on the wrong column and assume the sort is incorrect. It's a display bug. I have no problem with the sorting feature as an enhancement, but would like the sort arrow to be classified as a defect right now. IMO it would be fine to…
-
Yes, I have noticed a similar problem, but never tried to confirm or log an Issue. But yes, it definitely failed for me too.
-
Do you have Admin rights? I usually code with Admin so I'm not sure, but come to think of it I'm pretty sure you'd need admin to set the script as admin (security issues and all). So, yeah, ask for Administrator rights, or have an Administrator perform this step.
-
You need to set your script to run as Admin (its a checkbox on the deployment record) This is something commonly done on scripts specifically to avoid the problem you mention here.
-
In my experiece average meaning of "Now" is anywhere between a few seconds to a few minutes, actually. Milliseconds are not realistic (for Netsuite). Don't hook up any medical equipement to scheduled scripts, ya know ;)
-
nlapiGetNewRecord is tricky. Under some conditions it will not return fields that have not been modified. When in doubt, use nlapiLoadRecord is my word of advice.
-
It seems to return the right stuff when I test it but when it runs under other users I get a null pointer exceptions Have you marked that script to Run as Admin? You could be having permission problems. Perhaps this wouldn't work for you, but it might be simpler to use nlapiLogExecution to log the values of the script from…
-
Is there an API that sets the display type of UI objects like field, button or tab? For example, during page initialization, I want to programmatically set a field from "Normal" display type to "Disable" or "Hidden" given a certain condition, like if field A is equal to "apple", field b will be rendered in view or disable…
-
You can't read text values in server-side, just values, which means the entire hierarchy is not written anywhere. You'll have to go through entity for that, and recursively read the Parent fields of the entities to build your hierarchy.
-
entity_display does not sound like a supported field. I think you want to use 'entity' if you are trying to get the customer from a sales order
-
I don't see a problem with any of this. You are on the right track. Make sure to set your User Event script to After Submit though - otherwise you will not be able to grab the SO internal id (it isn't created before then).
-
Here is a non-recursive top-level parent getting function I made once. You start it by calling it and whatever entity id you have. So from the SO, you'd call it: var rootParent = getRootParentId(nlapiGetFieldValue('entity')); function getRootParentId(immediateParentId) { var parent = immediateParentId; var stop = false;…
-
The entire content? A big 'for' loop based off record.getAllFields(). I'm not sure how useful that would be. It would be better if you could narrow down your problem and figure out specifically what fields seem to not be working.
-
Have you try/catch the error to see what is has to say for itself?
-
No, I haven't, I think I read it in the help that you could do it. You could also try setting the label to ''. Setting a column's label to blank is an old trick I've used often when I needed to hide columns, but still access them using scripting.
-
Here's what I did once - 1. On form init, stick in a global variable the current line count 2. On recalc, compare current line count with global variable. If inferior, it's a line removal. 3. Regardless of above result, Update global variable with current line count.
-
You can either use field.setDisplaySize(0) or field.setDisplayType('hidden')
-
Should be, yes. That's how it would normally be done.
-
Ok thanks Kate
-
Thanks Amit
-
You need to submit the change function SetToEmpty() { var str=" "; var searchresults = nlapiSearchRecord( 'item', 178 , null, null ); for (var itemcount=0 ; itemcount < searchresults.length ; itemcount++) { var item = nlapiLoadRecord(searchresults[itemcount].getRecordType(),searchresults[itemcount].getId() );…
-
No. You can't touch anything relating to Other Relationships.
-
If I recall correctly, what you're trying to do doesn't work. BUT, good news is that you can read all that by calling a Search, which ought to do exactly the same thing as reading each line.