My Stuff
Comments
-
I could probably help if I saw the rest of the code, or at least whatever comes before that line.
-
Not only will it work, but that's it's sole purpose. Or maybe I misunderstand the question. Think I had similar question awhile back but don't remember it.
-
It's easy to do in edit mode, more difficult in View mode, which is probably what you need. Fortunately for you, I've done it. There are actually a few different ways to make it happen and I chose one initially but, for some reason I don't recall, decided it wasn't a good idea. The following is what I have in place now. It…
-
Don't know, but I just experienced a similar issue that is persisting. Created a custom list then a custom field using that list and it shows up properly on customer records, as it should, and on MY computer/roles/account in search results and criteria. It also works just fine on my supervisor's computer/roles/account. For…
-
use nlapiSendEmail(fromEmpId, actualEmailAddress, ....) rather than nlapiSendEmail(fromEmpId, toEmpId...) when you use just an email address for the recipient the message won't be logged. If you use the employee id it will be. HTH Hmm... well, I doubt he wants to use a fixed variable there (email address), so I assume a…
-
I can't believe there are only two votes, including mine for this. Not anymore.
-
I'm waiting to tell you at SuiteWorld.
-
We're considering trying to make our own merge utility for this and other reasons. The other being a way to easily determine what happened to a customer record if they call in with an old customer ID we merged; there are ways to do this but it's not particularly slick.
-
...snip...The only thing I wish I could get it to do is when the customer replies, the reply would attach to the sales order, customer and employee record. Do you see this behavior anywhere else in NS? I don't think I'd want to see messages attached to everything. I like contextual organization.
-
Voltron, If one send an email from the Sales Order from within the NetSuite UI, the email is attached to the Sales Order, Customer and Employee. At least that is the behavior in our setup. Interesting. I'm certain ours isn't that way. I could be wrong, but I'm not going to research it. :)
-
Encapsulate all of your functionality in an object and rather than use global variables you would define them scoped to your object as fields. For example: var MyClientStuff = { myVar1: null, myVar2: null, onLineChanged: function(){ this.myVar2 = 123; }, } In your script definition you would set the line changed function…
-
A little searching and I found this: http://www.webcheatsheet.com/javascript/variables.php Variable Scope and Lifetime All variables have scope. The scope is the region of the program for which the variable is declared. Variables may be either Global, or Local. Local variables are available only within the section of code…
-
Please don't use globals unless they are absolutely needed. it is a best practice to only have a few globals and typically these are Objects, or Prototype objects. Please use JSLint.com to validate your javascript. It will hurt your feelings but it will make you a better programmer. Just a note concerning nsobj these will…
-
We get this issue quite regularly. Even a cache flush doesn't seem to make any difference. Sometimes all that can be done is to pack up, go home and hope the new script has been 'recognised' the next day. We are on a dedicated database and have come to the conclusion that there may be some database caching going on that is…
-
I second this. I've seen sporadic issues since I started using NS 4 years ago. The most frustrating part is I can even switch browsers and the change still doesn't take. I certainly can't reproduce it on demand, which is why I don't bother reporting it. :(
-
We have scripting for certain sales orders and return authorizations. If we make one of the custom fields in the line items on these transactions mandatory, would that mess with the scripting? Thanks Not sure I understand the question. Do the items have custom fields? Or is it the sales orders and RA's forms with custom…
-
If there are mandatory fields, they need to be populated. Either the script needs to do it or the user needs to do it. A line won't be added in a client script if it has empty, mandatory columns. Maybe I misunderstand what you mean by "affect" and "mess with."
-
I'm attempting a similar workflow, however, am having some trouble setting the correct Actions in my workflow. Our initial action sets a field to "Disabled" Before Page Load. I'd like for the field to fluidly switch to "Normal" (editable), depending on a value selected from a different field. Is this similar to something…
-
I suggest a Workflow. Very simple and offers, in my opinion, sleeker functionality. Or maybe I just think it's really cool. Just two "actions" for switching back and forth on one field. I have a workflow that causes a couple fields to be "disabled" when a checkbox is not checked or "normal" when the checkbox is checked and…
-
I considered that, but it's a lot of work for something so simple. I initially built a custom record type called Error Page and had 5 records, each with a different type of error, including "unauthorized access," "unknown error," etc. The only reason I abandoned that is because I didn't like the custom record showing up in…
-
Glad I found this. I built a gateway script that prevents Partner users from accessing custom records that don't belong to them. Various technicalities and the desire for elegance required I not use a couple options I'd considered, and sending them to Home is a great alternative. Just wish it hadn't been so hard to find. I…
-
Thanks that worked a treat I don't think that works like you think it works. That math doesn't account for partial days, hours, minutes, seconds; it just counts the number of days and figures out how many milliseconds there were. My quick math says you could be off by 8,639,999 milliseconds using that. My company's support…
-
I resorted to a regular expression and, in the meantime, trimmed the code of what I believe to be unnecessary complications. It works fine so far. setTimeout("alertInView()",500); //Give form time to load function alertInView() { var userRole = nlapiGetContext().getRole(); if (userRole == 1017) //Support Person { var…
-
For what it's worth, I resorted to Eileen's method because it seems less error prone and it's bit simpler. It was educational to learn both methods, though. Still, I find the need for a setTimeout annoying. I've never really trusted timing events. If I was feeling fancy, I'd probably look for something more reliable.
-
Hello Ian, I have tested your concern about the URL of the Javascript file in the file cabinet and I have reproduced it only on IE. On Firefox and Chrome, it works fine. I have tested the script on Firefox only when I posted this work around. I didn't know that it will not work for the IE browser. With regards to the…
-
I still can't access lastmessagedate from scripts. Always returns null. What else is strange is that field is not accessible in Case Search criteria from the initial dropdown, but it IS accessible in the field dropdowns within a formula; it's also available in the Results tab. So far, I've tried to access it through…
-
Check the form definition. There are template options to use for printing and and email. Actually, I went ahead and looked it up; they're called Print Template and Email Template. If the templates chosen there are different, that's likely your answer. If they're the same, I'd need more info.
-
We don't use paychecks to employees, but the method for checks in general is outlined in the Help. Just search "print check" and you'll see a topic called Handling Check Printing Problems. In short, you need to void the check then change the check number manually to your next blank check. Don't think I'd call that…
-
Oldest thread I could find in about 60 seconds. Bump!
-
I'm not aware of a way without scripting, assuming you want to attach in the Files section. If you have a custom field of type Document and you know the id of the related files, you could import that way. Your CSV file might look like this Customer | Customer Internal Id | File Name | File Internal Id 123 McDowels | 49210…