My Stuff

Mr Rob Green Ribbon

Comments

  • Hey Mchen, So if you need to store that information for each address, you could do so by creating a custom record type. You might call it "Facility" and it would just need two fields: Address ID (links it to a customer address) and Type. Type would be a custom list that has those values: Casino, Hospital, School, etc. Then…
  • Hey Mchen, That's right, the code there is just for adding a temporary field to the address tab. That's the only way you can add an address field at this point. What information are you wanting to record there on the address tab? You may need to do what EnablingSolutions said above, that's actually what I ended up doing.…
  • Here's how you can do it: function beforeLoad(type, form, request) { var addressList, aCustomField; addressList = form.getSubList('addressbook'); if (addressList) { aCustomField = addressList.addField('custpage_something', 'checkbox', 'My Checkbox'); } }
  • Hey, It's not possible at the moment. But at SuiteWorld this year they said that soon you'll be able to do something like that. It sounded like you'd be able to convert a custom record type to XML and modify/copy it from there. Robbie
  • Hello, We set something like that up here but we used SuiteScript to implement the logic. NetSuite has a nice built-in PDF generator that makes it possible. Email me if you're interested in getting something like that built. Thanks Robbie
  • What are you wanting to force to load as a certain role? Is it a record type, or a suitelet? Can you tell me a little bit about why you want to? I'm sure there's a way we can get the results you desire :)
  • Hello, For showing the list of vendors, you could set up a saved search that shows up as a sublist on the sales order (or wherever). For the other two requests, there are a couple of ways to source in data from other records. One is for you to add custom transaction body fields and set them up to source in data from…
  • Brett, Instead of using regular field sourcing, you could do an nlapiLookupField call from a script to set the value of the transaction body field. It's not as simple as doing a field source, but its probably more reliable. Robbie
  • Brian, You could add a custom table using an Inline HTML field, but it would be much easier for you to use the built-in User Notes feature. You can check the "Show Notes" checkbox on the custom record type setup if you haven't already tried that option. If you want to go the custom route, you can add an inline HTML field,…
  • Hey Carlos, I don't know of any easy way to do that, but one thing you could pursue if you really need to accomplish this is to build a custom HTML report through SuiteScript. You could display it on the item records, or in a Suitelet. There are some nice parent:child list options available, such as JSTree:…
  • Teddy is right, here's some code that will help you do that. This is my PageQuery / queryString function. It returns the string 'false' if no match is found in the URL. You can paste it into your client script file, and then do something like: function pageInit(type) { var memo = queryString('memo'); if (memo != 'false') {…
  • Hey James, I think doing an afterSubmit function would be your best bet, though I don't know how to get the amount authorized by Cybersource. The function could look something like this: function afterSubmit(type) { var recordId = nlapiGetRecordId(); var authorizedAmount = ??; if (authorizedAmount) {…
  • Hey Thomas, There are a couple of ways you could add a button that closes estimates. The simplest way would be to have someone that's familiar with SuiteScript add in a beforeLoad function that adds the button. It would only be a few lines of code and could be done in 5 minutes or so. The other option is to do it through a…
  • Hello, I think you'd have to write a script to accomplish that. One way you could do it is to add an Inline HTML field to the Task that contains an empty Select list. Then when the user selects the company, you could fill in the list with each of the company's addresses. Let me know if you need any help proceeding. Robbie
  • Hey Sandy, I don't know of any way to remove the "Default Credit Card" column, but if you want to prevent users from checking that box, you could use a Validate Line SuiteScript function. With that you could warn the user not to check the box and only allow non-default credit card lines to be accepted. You can create a…
  • LAM, The NetSuite Help documentation is very thorough and is a great place to start. Or if you prefer to learn from a human being, there are a few NetSuite consulting companies out there that you could talk to - just depends on how much of your time you want to invest in learning how to do NetSuite scripting. Its…
  • Hey Vicki, I tried this on my Mac, using Firefox, and when I first open the New Payroll Item form, I just have the three fields you mentioned as well. But when I select the "Item Type", the "Expense Account" field appears. If that's not working for you, it may be a simple browser caching issue. To clear the cache in…
  • Hello, I don't think there's any simple way to do it by default. But you could do it using some fancy work in the template. This should give you the last component of a Department hierarchy: [CODE] <#list entity.department?split(":") as deptComponent> <#if !deptComponent_has_next> ${deptComponent} </#if> </#list> [/CODE]…
  • DB, I had this problem once where no-matter what I tried, emails from nlapiSendEmail would not go to any of my Google email accounts. It turned out to be just a huge delay time - as all the emails eventually did eventually come through, several hours later. Normally it works just fine, but that seemed to happen for at…
  • Hello, You could do something like this: var recordType = nlapiGetRecordType(); if (recordType != 'returnauthorization') { // send email notification } May the Force be with you. Robbie
  • Hey Chris, The Help link isn't actually a normal HTML link. It actually looks like this: &lt;a id="main_help_anchor" href="#" onclick="nlPopupHelp('CARD_-29');" class="textboldnolink" onmouseover="this.className='textboldul';" onmouseout="this.className='textboldnolink';"&gt;Help&lt;/a&gt; If it's not working, your session…
  • Hey Dan, To get past that error in your mass update, you can add a filter to the criteria such that "Memorized is No (false)", that way the mass update will skip any memorized transactions. Robbie
  • Hello, I would recommend that you do just add a custom button and remove the standard button. It just seems easier than trying to redirect from the built-in button. Was there some reason you were trying to avoid that? Robbie
  • Hey, I use jQuery and jQuery UI all the time - it works fine in NetSuite. I haven't tried any of the others. Robbie
  • Hey LAM, I've used jQuery in both customer-facing NetSuite web forms and on internal company data entry forms. For both, you can upload the jQuery file into the SuiteScripts File Cabinet folder in NetSuite, and then add it as a library file on your script records. If you want I could show you how I have it set up through a…
  • Did you guys ever solve the original problem here? This one has been an interesting problem to watch as the API has evolved over the past few months. I've been able to get this to work a few different ways, depending on the context. Here's what I've found: 1. The only "right" way I've found to do this requires that the…
  • The trick I do to explore & test SSv2 in the browser console is just to insert a "debugger" line in a client script. If you have the browser console open when it hits that line, you'll then be "inside" the SSV2 function and will have access to all the loaded modules and methods. Hope this helps :) Robbie
  • Hey Raveen, I have a workaround that might work for you, though its hard to say without knowing your context. If you have an HTML table, you can output it to CSV with this jQuery plugin: http://www.kunalbabre.com/projects/table2CSV.php I use it on Suitelets and client scripts when there's a specific table on the screen…
  • Lol I tried the xml=T thing but yea it didn't work. As for doing it like an invoice, I feel like I've tried all the normal customer type field IDs: entity, entityid, companyname, customer. Nothing I've tried has worked. It seems pretty silly that there wouldn't be a customer name field on a statement though :-\
  • Dmatyas - Great, thank you. Could you share the number for that issue? I'd like to keep an eye one it. ICS - Yes, I checked that out, but it looks like you can only use dropdowns for email templates, not for the advanced print templates. Plus I get an unexpected error every time I try to save the advanced template in…