My Stuff

User_KC8S1 Red Ribbon

Comments

  • This has come up again... I would really like to instantiate nlobjRecord to move large data sets around between some methods. The structure of nlobjRecord is perfect for my needs. I'm really stumped why I can't create an instance from a UE or SuiteLet script? Anyone have any other suggestions? NetSuite: On the server side…
  • (dramatics edited out) I can do what I want, it IS possible. A considerate and knowledgeable person helped in two ways: [LIST=1] [*] confirmed it IS possible (gave me home and reason to keep trying) [*]offered up a search term which ultimately pointed me to this post[/LIST] Now, I must say, in this case the error message…
  • function OnBeforeLoad(type) { if(type == RECORD_STATE.DELETE) { return; } if(type == RECORD_STATE.EDIT) nlapiSetRedirectURL('RECORD', 'customrecord_phys_order', '71', false); } This works. At this hour my brain is not capable about handling anything I didn't start in the last few hours, this officially falls outside that…
  • I tried firing this one off to support in hopes that it might sneak past and get some attention. It did.... but then I was nicely shut down with the ol' "can you show us where in the documentation this is support?" Uhhh.... but... I need it! ;) So, you all ("<cough>Yang!") are my best hope at this point. I tried the…
  • Yang, What is "w.r.t"? I can accomplish similar functionality with composition, adding a nlobjRecord instance as a field to my object. The downside is that I either need to expose a public acessor/getter or implement all the required methods. I would rather not wrap the entire object and exposing the internal nlobjRecord…
  • This works all day long: nlapiSendEmail('sender_internal_id, 'destination@domain.com', 'subject', 'msg');
  • I have not disabled server suitescript. As I mentioned, Customers trigger the UE fine and saving an SO from the UI triggers the UE fine.
  • Found it. I had another script that was deployed against SOs that was throwing an exception. Apparently if one script throws an exception other scripts ignore the record. Anyhoo, all good now.
  • No, I abandoned trying to authenticate and instead I'm using a simple hash key to authenticate. So when I make a request against my public SuiteLet I pass the key along with other parameters and the SuiteLet checks it. I've thought quite a bit about this and as far as I can tell it's secure enough for us.
  • Have a look at "Web Services to UI Single Login" in the Help docs: SuiteFlex (Customization, Scripting, and WebServices) : SuiteTalk (Web Services) : SuiteTalk (Web Services) Platform Guide : Platform Features : Web Services to UI Single Login It's a bit of a misnomer because it has almost nothing to do with Web Services,…
  • I don't see a type field in the UI on the standard case form. It could be that I don't have a feature enabled. Either way, tips to find field IDs: [LIST=1] [*]the help has a list of support fields and their IDs [*]page source (use Find for the label) this is a good way to get field IDs and list values/IDs[/LIST]
  • Hi, Pretty complex:p function SandBoxExecute(request, response) { response.writeLine('SuiteLet executed'); }
  • You are posting in this in the scripting forum, but suspect you may be after a saved search solution? If you want to do this with script then I think this is possible. Are you wanting the count of events that have already passed or the amount that will occur? Execute a search that returns your events, then create a date…
  • It is a very powerful script that has enabled us to do things other applications are capable of, I'm glad you see the value in it. AND... nice work, your solution does indeed work. I must say it's counter intuitive and smells like a defect. But it works and right now that's all I care about ;0) Thanks for the help, Steve
  • Also, how do I specify where the field will show up? By default, placing it on the "Main" tab seems to just insert it after that last field in the header, whereas I need this drop-down to display directly below the "Product" drop-down. Is this even possible? Ideas? Customize the form and you can move fields around.
  • Thanks for the reposnses - unfortunately we don't use the "item" field on the case form, only the "Product", and that doesn't seem to be available as a source list... I don't have a 'Product' field on my standard case form. What is the difference between 'item' and 'product'?
  • Ah, Yang... once again you save the day. Thank you!
  • Hi Yang, scheduling the script to run each hour would be the easiest, but I need to increment the starting ID so it doesn't just process the same records over and over again. I could create a custom record and store the last id processed (YUCK!!) Maybe I'm misunderstaning how this should work. To me it seems that I should…
  • Although not what you asked for, here is an example using inline html var field = form.addField('message', 'inlinehtml', 'Automation Message'); // Enter the URL to the image you want to display, // set null if no image is desired var iconUrl =…
  • I found out that nlapiScheduleScript is returning null. I have no idea why. The help says: A String whose value is QUEUED if the script was successfully queued by this call, or it returns the script's current status or null (if the script is undeployed or invalid). OK great, but what would make it invalid? It's set to run…
  • The class that I encountered this snag is a caching class, basically an "Identity Map" (if you have read Fowler's ent. pattern book) The concurrency management aspect of the class will force a record to be submitted under certain, rare circumstances. Anyway, I've got references to the cached nlobjRecord instances out in…
  • Think of rec and rec2 as pointers to nlobjRecords. rec2 and rec both referenced the same object when you printed the 2nd line. However later on in your program you changed rec to reference a new object which had no effect on rec2. I was thinking of it as rec -> nlobjRecord and rec2 -> rec - so if rec 1 changed, rec2 would…
  • UPDATE: I changed the status to released and works now. Looks like I need to re-read the docs on deployment and try find where it explains this. status: testing Here is a screenshot of the deployment settings http://pmddirect.com/temp/phys%20mgr%20client%20deployment%20settings.png
  • But depending on your upgrade schedule, that could be a ways away. In the meantime, if you want to debug client scripts you can use FireFox and the Venkman debugger. I've never really used it because most my scripts that are worth debugging are server, but I hear great things about it.…
  • One idea I had to workaround this was to wrap the nlobjRecord instances in a proxy object and only expose these proxies from the map. Yeah, that doesn't work, same thing, just abstracted a layer :rolleyes: Last thing I will try is to assign all the values of the records rather than replace the record instance. If this…
  • Looks like the stacktrace is a different type for server and for client. I modified my code to create the stack trace by looping through result of getStackTrace() like so: var stacktrace = ex.getStackTrace(); for ( var i = 0; stacktrace != null && i &lt; stacktrace.length; i++ ) { if ( i == 0 ) { msg += 'nStack Trace'; msg…
  • That was casual, I would have expected an all day parade through the streets of San Francisco, a fireworks show maybe followed by a free Beastie Boys concert to announce the greatest-feature-ever!! :) My bubble is small, but it's MY bubble.
  • I think it has to do with trying to find a function matching your implied signature. I'm no authority so I'm probably wrong, but I suspect the interpreter is looking for: string Date::getFullYear() (which doesn't exist) hence the error.... OK, fire away... :rolleyes:
  • Is there a way to override the behavior that will prevent scripts in Testing mode from executing for non-owner users? [LIST=1] [*]I don't have a sandbox account [*]A BUG in NetSuite prevents Custom Centers from working in a Deployment > Links list. The workaround is to create custom Center Links with hardcoded paths to my…
  • It will work because you are forcing it to a String object. My comment was addressing your original question about the "Cannot find function" error. You could do something like: var yearString = new String(new Date().getFullYear()).substring(2); Basically just constructing a new String instance with the int year.