My Stuff
Comments
-
Sure you do. If you're going to access a method on an instance, you'll need some kind of reference to the instance. That's what "this" is. What I meant by that was that you don't need to qualify a variable or function with 'this' to access it from the same instance. C# example: Dog d = new Dog(); d.Test(); class Animal {…
-
This field cannot be set directly. It is auto-generated from the default billing address. Thanks, Yang UUUuuhhhhh..... that's a killer. Problem is, you guys seem to be setting it on a client event so when the address lines are modified server side the defaultaddress field goes stale. Then again, maybe not. I just realized…
-
OK, that makes sense as the owner is "-System-" when the phone call is created from a SuiteLet running as admin with no login required. What I mean is your comment makes sense but the behavior doesn't. I agree that user A shouldn't be able to delete user B's calls, but admin should be able to delete just about anything.…
-
I've already add "alert("");" in first line of my script after I deploy and test with my username it's work. but If I log with another user (difference e-mail) It's not work. no alert message. my script do only copy data from one field to another field The advice others have given is right on and it sounds like you have…
-
This field cannot be set directly. It is auto-generated from the default billing address. Thanks, Yang Enhancement 150934 - SSS: User Event Script > Ability to execute an error message when trying to change defaultaddress field in a customer record being a read only field
-
Hi Yang, I started to suspect I may be approaching this solution incorrectly. We are working with a 3rd party lead supplier and they will be posting new leads to a SuiteLet that I've created. I need to let them know if the submission succeeded or not. From my specification document: * 200 OK (lead data received and…
-
Defect 150709 - SSS > When sending a fax using nlapiSendFax(), an email to the registered efax account email address with a copy of the fax is not sent.
-
Defect 150708 - SSS > The body parameter of the nlapiSendFax() function is required, contrary to documentation.
-
Thanks Yang
-
Did you check "Execute as Admin" on the deployment? Thanks, Yang Checking "Execute as Admin" will make it work, although that freaks me out a bit. I will add some extra security measures to make sure things are safe (as safe as they can be) Thanks Yang.
-
Hi, Steve - This may take a couple of posts before I completely understand your situation, so let me start by asking if you referenced the Help topic called "Importing Existing SuiteScript Files info Eclipse." (In Help, search on the term "Installing the SuiteScript Plug-in" and scroll down the page until you see the…
-
It appears that the phone call record is created with the "God Role" because I can't delete it and I'm the Administrator! You do not have permission to perform this operation. Who does?? More Info: I can delete it if I first assign it to myself and save. This smells like a defect. Case# 762017
-
The recommended JavaScript editor for Eclipse is going to be Aptana (rather than JSEclipse). Aptana provides better support for SuiteScript API auto-suggestion/code completion and jsdoc (javadoc-like) reference information. Thanks, Kate Warning: Aptana studio looks great, but it's actually pretty weak and buggy. I…
-
I have some ideas I want to mention, see what everyone thinks and maybe NetSuite peeps will grab them if they think they are good ones. The NetSuite debugger is impressive and a huge time saver when it works well. I'm depending on it more and more. With that said, there is the unavoidable awkwardness of changing from your…
-
Update: Had a conference call and application sharing session with the Aptana folks. They were concerned about my experience and wanted to make sure they understood the problem correctly. As the meeting went on there was plenty of "Ah, yeah, I know why that's happening there" from the developer(s). Sounds like they are…
-
2) You can then create new SuiteScript files in Eclipse, right-click on the file, and select NetSuite > Upload to upload your .js file into the file cabinet. Thanks, Kate Hi Kate, I finally got around to trying out the plugin and ran into a potential deal breaker: I already have a directory structure in the file cabinet…
-
yes, sorry, I can't believe I didn't mention that. Wait, I did mention that in the second bullet :o
-
Sorry I meant to ask if the saved search was available to the 'admin' role? Thanks, Yang Yang, support is calling this an enhancement: If you don't get an error message when executing a private saved search using a non admin role I can file an enhancement request for you. Am I missing something?
-
I think there is a misunderstanding or I am not being clear. The script marked as admin DOES execute the search without errors (expected) but returns incorrect results. It ignores the criteria defined in the search and only considers the nlobjSearchFilter objects that are defined at runtime.
-
Out of curiosity, with nlapiSearchRecord, was what with Run As Admin or not? Thanks Hi Olivier, It's not set to run as admin.
-
The script *had* no explicit permissions set and was not public. I created it and I am the admin, so this is probably why it worked fine for me. I noticed the problem during a training when another user with a far more limited role was driving. Let me try to summarize again: [LIST] [*]Saved search, not public, no…
-
I just encountered this again. Same bug, slightly different results. [LIST] [*]User with role 'a' [*]triggers user event script that runs as Admin [*]script called saved search that DOES NOT have role 'a' assigned to it [*]the search has an additional criteria added by the script [*]the search returns results filtered by…
-
You could create different versions of the script and schedule version X when version Y times out. But I doubt that it will work as precisely as you are looking for. Hi Mark, I'm curious about your statement above. How would you detect when version x times out? I had tried some time ago to create a scheduled script that…
-
Having said that, the lag should drop significantly as we continue to increase our capacity. Oooohhh... I like the sound of that. Better performance!! On the 3rd point, it is important to differentiate between deployments that are actually scheduled to run at set intervals and deployments that are unscheduled and can be…
-
Scheduled scripts are designed to be asynchronous long-runnning operations. I appreciate the intended application of scheduled scripts. I am using them in a slightly different way, but I feel it's a valid application of the potential power of them. We aren't using web services for "midnight database synchronizations" - we…
-
short running scripts yes, but when UEs are queued up from a SuiteTalk list operation the scheduling will happen in a real tight loop which means that I can't count on the first scheduled scripts to complete and return to the deployment pool. FEEL MY PAIN!!..... How to multithread in SuiteScript!
-
Thanks Olivier, even though it's not great news. Hopefully they will find a way to tighten it up in the future so we can make some basic assumptions on performance.
-
scheduled scripts can't schedule themselves via nlapiScheduleScript. I think the only thing you can do is create 6 deployments and try to stagger the start times. The chances of this working in a predictable manner and on time are < 1%.
-
BTW, the documentation is incorrect/unclear on this part of nlapiScheduleScript() deployId {string} [optional] - The deployment internalId or scriptId (if empty, an available deployment is automatically selected if script is set to ‘Deployed’ and the deployment status is set to ‘Not Scheduled’ or ‘Completed’) You need to…
-
Update: I ran 10 more tests to determine the delta between scheduling and the invocation of the scheduled script. The results are much better than the 55 seconds I was seing. average: 16.75 seconds Still not great, I'd like to see 1500-2000ms max, but it's an improvement for sure.