My Stuff

User_KC8S1 Red Ribbon

Comments

  • Is there a reason why you can't just call each type separately, perhaps using switch statement? Seems to me you would have to have switch in there somewhere even if they sent a multi-type result back to you for different records. Mixing the types is just an "added feature" of the ER, the real meat and potatoes is the…
  • Thanks for the quick reply. A hardcoded '03/01/2008' works so the field wants that format. The DateToString function seems to be working but then I get a TypeError: Cannot find function getFullYear var vduedate = nlapiDateToString((nlapiGetFieldValue('startdate')+30)); Yeah, something is up. I can't remember if I ever…
  • Have you trying performing the mail merge operations in SuiteScript as a workaround? Thanks, Yang Hi Yang, I am doing that for some of our email messages that we send, but for faxes it doesn't help (until I have access to nlapiSendFax) and even then there are many use cases where I need to go through the UI. For example,…
  • javascript and DOM grab an animated gif somewhere... something like: http://www.pashchimi.org/images/loading.gif (although that ones not animated, but you get the idea) place the image in a <div> &lt;div&gt;&lt;img src=""&gt;&lt;/div&gt; hide the div with css style="display:none; create javascript method to show and hid…
  • Is it possible to modify the Role on the Employee record through scripting .... Do you want to modify an existing role in the list (IE: change or remove) or add a new role to the list? the 'role' sublist isn't listed in the help, so this makes me think that it isn't supported (yet).
  • I'm sorry for being pushy, I know the day isn't over yet. I was planning on working waaaaay into the wee hours on this tonight and was wondering if you were still planning on getting back to me on this? It's the last big hurdle that I have. Anyone else creating fulfillments with SuiteScript? If so, can you paste your code…
  • I would experiment setting the date with a string, determine which format it wants and if that is EVEN the problem. Then I would try using nlapiDateToString... actually, maybe try that first. Have you tried the method I posted for adding 30 days? I'm using that code and it works fine, so you might want to try it if you…
  • BUENO! :) I didn't know these other flags existed, cool! Are they in the docs somewhere? The full list and what they mean?
  • Already done, here is the case# 653468 BTW, I'm fulfilling a serialized item, not sure if that matters. I have the serial number entered in the SO and have confirmed that after nlapiTransformRecord the serial number made it to the fulfillment, so I don't think it matters. What type of item are you testing with, I will try…
  • Hi, That is how mine is running as well, OnAfterSubmit for a Sales Order record. -Steve
  • Good point. It probably should be. There is however a search join from tasks to transactions. You could try using this as it gives you far more filtering flexibility. For a list of all search fields/columns/joins for the task record, take a look at the new and improved help center reference guide which is now organized by…
  • This is to prevent read inconsistent views of an existing record to anyone (or program) trying to read a record. For example how the letter merge system doesn't fire UE scripts? Is that what you mean? Either way, I will modify my script accordingly. Thanks for the update.
  • ah, it's happened again, like a bad nightmare... keeps coming back to ruin my life! :p We have ANOTHER bloated government document we need to merge in NetSuite. Problem is, like 90% of our merge docs it relies on data from many, many custom records. I have tried the following solutions in the past:[LIST=1] [*]create a TON…
  • It sure is! "Defining the User Event Execution type Argument" Thanks for the tip, the help is SOOOO much better! :)
  • Thanks for the update. This is the one issue that has been blocking me for a couple days now and I've been VERY eager to find out what I'm doing wrong. I'll stay tuned and wait to hear from you! Thanks, Stvee
  • Another nlobjSubList question... There are four sublist types available: editor, inlineeditor, list, and staticlist. The doc indicates list = "List machine with editable fields (similar to billable items machine)". Unfortunately we don't use billable items (don't even think it is active in our account) so that comparison…
  • The part that I don't get is the current implementation of nlapiLoadrecord() returns the new ID of the record. The only thing I'm suggesting is that nlapiLoadRecord() store that id into the magical field that is hit by getId(). I'd do it myself, but I don't know what the field name is or if it's exposed. It would also be…
  • /* * Returns a GUID (or, close enough) - it's possible that this function could * return the same exact value if two machines call it at the same time and * are running at the same speed. For our needs this is 'unique' enough */ function generateGuid() { var result, i, j; result = ''; for(j = 0; j &lt; 32; j++) { if( j ==…
  • I was thinking of User Event as if a user loaded the record, but I see now that any other script loading this record would raise this event. The hunt begins! Thanks for the reply, Steve
  • what is 'soID'? Also, you should prefix parameters with 'custparam' Something like: var params=[]; params['custparamsalesord'] = <some valid ID>; Then again, I just noticed you are using sendRedirect() not setRedirectURL() so I'm not sure what format sendRedirect() wants things to be in. I could be totally wrong :) -Steve
  • I might have a use for my function after all! :p Unless there is a supported way to get a reference to the nlobjForm object from a client script? I looked over the docs and am not seeing anything. I had designed my solution for loading an existing record, but when creating a new record I would like to do the following:…
  • Yang: You are a wonderful man... a wonderful man. :) (Although the docs should have an example or mention of this)
  • No Kidding! :) (I feel a little foolish...)
  • I've just been trying to get this to work as well. I tried nlobjRequest.getParameter(name) but it always returns null. As a debug step I tried this: var params = request.getAllParameters(); for(var i = 0; i &lt; params.length; i++) { log('parameter: ' + params[i]); } they are 'undefined' when logged. I checked the docs and…
  • I created two cases: #642289 - "Message field recordtype returns null" #642290 - "setting Message fields 'record' and 'recordtype' throw UNEXPECTED ERROR"
  • Hi, It's cool, I'm just happy it works. I'm dreading the change of the name however, I will put some very defensive code in place to try both field names and log/email a warning when the secondary succeeds, at least then I shouldn't have any faults. Key word being "shouldn't" Am I attached to the issue? Will I know when…
  • Thanks Yang, rectype works. I submitted a case and the response from support was "we can't help you with your code, read the docs" - ha! Anyway, my hack is complete and works like a charm, I can now attach a message to a custom record using Web Services with a little SuiteScript sprinkled on top. -Steve
  • You may find the following code helpful. It displays the most current attachment (in our case tif files) on a separate tab. It hasn't been cleaned up at all, but you should get the idea and see some examples of searching, sorting and accessing file records and fields. /* * We want to encapsulate this functionality so that…
  • This is by design. UE scripts are triggered from everywhere (scheduled scripts, UI, web services, CSV import, etc..) except when the submit occurs during a UE script. Having said that there have been discussions to lift this restriction a bit. Thanks for entering an ER. Thanks, Yang Yang (and everyone), Enhancement 135071…
  • This code: var attachmentCount = nlapiGetLineItemCount('mediaitem'); alert('file count: ' + attachmentCount); Running on this record: returns -1 for the count. I'm missing something.