My Stuff

User_KC8S1 Red Ribbon

Comments

  • In the meantime, do you think I could hack my around this by digging through the NL code base for the file attach stuff? I'm not very experienced with web development so I'm not sure what challenges there are, but it seems that it *might* be possible, no? I know it would be unsupported, but if you have any hints for me I…
  • I didn't think that was possible. To make sure I have this correct: [LIST=1] [*]save SO [*]UE AfterSubmit (create context) load SO [*]make changes to field [*]submit SO [/LIST] Is that what you are suggesting? Is so, that is a very simple solution, much better than my crazy scheduled cleanup-script! I suppose I just…
  • Thanks for the suggestion, but that won't work. The only other option I can think of is to create a scheduled script that will cruise along looking for new Physician Order records, when it finds them it can update the linked SO. Not pretty, but it takes the assumption and finger-crossing out of the solution. -Steve
  • It really limits what you can do in certain situations. For example, I need to update a field on the SO. I can't do it in a BeforeSubmit because I need the ID of the SO. I can't do it in an AfterSubmit because I can't modify the record in that context. Finally, I thought my new record could handle updating the SO but even…
  • Not arguing, just trying to understand. Technically, this means that the sublist data is not submitted with the record hence the reason why the data is not available in SuiteScript on the record This would make sense to me if we were talking about server script, but with client script it doesn't much sense. It seems that…
  • I came up with something that is just slightly better than nothing. My concerns were:[LIST=1] [*]preventing users from screwing with the settings of a new file (EG: inactivating, changing encoding, etc) [*]Ensuring the files are saved to the correct folder [*]Single click to invoke the add file process as well as set some…
  • OK, got it. I was just looking through the reference guide trying to find the join that you mentioned and am not seeing it. I see joins for notes, user notes, messages, etc but nothing file files, attachments and mediaitems. I have to admit, I've never used the joins before. Am I looking in the incorrect documentation? I…
  • If something is read-only it's not accessible through suite script? I didn't know that. What is the logic behind that? There is a search join called file that you can use to search for all files associated with a customer record. But this isn't a customer record, it's a "Physician Order" record. I'm really confused about…
  • Good timing! :0) I was just playing with SuiteLets - AWESOME! Finally, I can do much of what I've wanted for some time. I will have a roughed out version in a couple hours and post here. Thanks for the response, Steve
  • so it looks like it might be called 'name'? That's confusing. In the UI it's called "Customer"
  • Thanks for the help. I've changed the status to 'scheduled' per your suggestion. So far it hasn't run, but I will give it an hour and see what happens. It's start time is 4am, so if you are correct and my understanding is correct it should execute every hour, on the hour. 10 minutes to go...
  • I'm curious, in your test where you set and read the values is that invoked through a full record edit (yellow edit button)? I'm just wondering if this could be an xedit issue... just guessing, but I'm not sure if you can set field values in an xedit-context event. One more time: Just guessing.
  • Rob, So in your case you have it preinstalled on the machines where your users will be working? The reason I ask is that I didn't see anything in your code that would allow the ActiveX control to be downloaded if it wasn't installed already and am wondering if I'm missing something? Last question, promise.
  • Hi Rob, Thanks for posting this code! I'm curious how you are getting this activeX control into the form? Did you create a custom HTML field and add the <object> tags to it? -Steve
  • Got it, thanks Rob!
  • You could throw an error and specify an error code/message from your beforeSubmit script. The user will see the error message with a back button that allows them to go back to the form and make changes. i.e. throw nlapiCreateError(error_code, error_msg) or throw error_msg Thanks, Yang Thanks for the reply. This would be…
  • Yang: Do you know if it's possible to attach a file to a record from client side script? Something I've been wanting to develop for a long time is an ActiveX (or maybe Java "applet" (or whatever they are called)) that would allow me to scan documents from NetSuite and attach to the open record. For example, I have a…
  • today I experienced it with a inventory transfer and a sales order (I think)
  • You can create a suitelet page that will be your destination I'm looking through the help, trying to gain some a better understanding of SuiteLets. Does a suitelet need to be backed by a custom record? Are there any guides that have an overview of suitelets and possible some examples? I'm not seeing anything in the user…
  • Yes, Evan - this is exactly what I was hoping I could do. Trial and Error can be a very time consuming process with SuiteScript as you know, so having a little confirmation that I'm barking up the right tree is always nice. Thanks for the help, Steve
  • I have caching enabled. I created a quick script on one of my custom records per your suggestion and when I enter a text in the name field, then submit, get the error, go back - the text entered into the name field is gone. I'm using firefox ver 2.0.0.7 I just tested in IE and it works.
  • I've run into the issue of needing to display a message to the user again. Throwing an exception isn't going to get me what I need. I have a UE script that needs the ability to display a message to the user and take them to a different URL. For example, the page would display text like "This transaction is not valid for…
  • In the online Help (or the PDF version of the SuiteScript Developer Guide) do a search for the topic called "Defining Script Parameters (Custom Fields)". Also see "Defining Parameter Preferences" for additional information. If you get a chance, let us know if these sections answered your questions. If they did not, please…
  • When you call nlapiScheduleScript the third argument is an Array (name/value pair) of values that can be used to override script parameters for this execution of the scheduled script. Something like the following: var a = new Array(); a['custscript_integer'] = 2…
  • You are correct! I had a thread on this UG but can't find it now. Anyway, this is new behavior I think. I had a problem when trying to fax from UE scripts by sending emails to '1112223333@efaxsend.com' (or whatever the address is). Of course this address wasn't a contact, but was a hard coded address that I would construct…
  • Here's what we found. If the recipient attribute of the nlapiSendEmail function is an email address, then the tracking information did not get created. However, if the recipient of the nlapiSendEmail function is an entity internal ID the tracking information was generated. Try making the recipient of the email just an…
  • Also i would like to ask the guys at Netsuite why the Suitscript Dev guide PDF has changed since the 2008.1 release. When i used to go into the "Chapter 5 Suite Script API" and expand either the "SuiteScript Standard Objects" or "SuiteScript UI Objects" each of the objects used to be in its own section which you can easily…
  • Hi Steve, Are you saying that what you really need is a multi-select field type on the script parameter? I'm a little confused on your use-case. Thanks, Tim Gale NetSuite Senior Sales Engineer, Team Technical Lead, SuiteFlex SME Hi Tim, I was confused by just what a parameter was. Considering we are talking about scripting…
  • Have you tried sending an email to yourself and replying? Look at the full headers of the email to make sure the tracking string isn't there. I had the opposite problem, I DIDN'T want the tracking info in an email and was told it's not possible so you have my attention.... :)