My Stuff
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Comments
-
Looks like there are dupe posts that you made by mistake (https://usergroup.netsuite.com/users/forum/platform-areas/customization/suitescript-custom-code/412277-customized-column-accnt-number-returning-null-value-in-journal-voucher) but i'll post same response here.... Null usually means whatever field you are passing in…
-
You can set how long a cache is available. Since they are to be used with server-side scripts, if you set to just use with the life of the script, they will be gone once the script has completed running. What are you seeing that would require the flushing of the cache?
-
I've also done a bar code scanning for a factory floor. The barcode scanner just reads in the data to a field and you can save/do whatever with. If you have access to the software that reads (or if its a generic driver), it should just spit out the data into whatever you are working with as if it were keyboard input. You…
-
There is a bit of an audit log. You can access it under: Reports > New Search and click Deleted Record and then you can define the criteria. In NS help, search "Searching for Delete Records" As for the title for "Custom field", you should be able to look at the History / System Notes on the Record in question.
-
Try checking out: Lists -> Accounting -> Currencies This list should have the currency records that you have. You can click on the name to see what the currency precision is set to. If it is listed at 3, it says that you must contact NetSuite Technical Support in order to get it changed to a dropdown so that you can pick…
-
I don't believe you can track that.
-
Alright. Thanks for clearing that up!
-
Dynamic mode is supposed to mimic the record creation as if the record were in the UI. Docs say nothing about it not working serverside. I work in standard mode 99.9% of the time so I could just be totally wrong here.
-
You can. I did this with some code earlier. In my UE script on the record, I check a particular request param and show a banner like: var fieldObj = form.addField('custpage_editunavailable', 'inlinehtml', ' '); fieldObj.setDefaultValue('<div id="div_alert"><div style="" class="uir-alert-box alert" width="100%"…
-
Have you tried setting the application/content type as JSON?
-
Thanks for the response pcutler For now, I am going to just use the external URl call. 2 JSON.parses seems a bit hacky to me and I don't want to do it just yet if I don't have to. In terms of the external URL, i've talked to some other people and this does seem to be a bug in NetSuite. For example, if you have a suitelet,…
-
Be careful if you are using Array methods and you want to use nlapiYieldScript. It does not support using nlapiYieldScript within array methods which is something I just learned this week. I'm not sure about how SS 2.0 handles this.
-
My thought was that the calculation has already been done and stored so no need to do that.
-
I'll need to do a little more testing with this. I want to see that if I transform CAD Sales Order -> Invoice, that the total and amountremaining are also in CAD (and there is no need to use fxamount / and undocumented fxamountremaining) and not whatever primary / base currency exists for that customer/subsidiary. I still…
-
SHOULD i have to even use foreign amounts though? I don't understand why the total / amountremaining wouldn't be in the currency of whatever I transformed and not the customer's primary. A Sales Order can have a different currency than the primary. If that is transformed, I would expect the different currency to be what is…
-
When it is ready (Blizzard Entertainment (tm)). It is an internal application but i would be happy to show you
-
This is from an application outside of netsuite. Your example would work fine if it were inside NetSuite. My example is how to call a NetSuite resource (suitelet specifically) outside of the NetSuite domain.
-
I did get this working finally. You cannot use "json" or "application/json" due to the same origin policy (https://en.wikipedia.org/wiki/Same-origin_policy). You have to specify jsonp in your ajax code. Here is a working example: Suitelet: [CODE] function startSuitelet(request, response) { var callback = 'doSomething'; //…
-
In order to get it around it in my app, i made HTML w/ the fields I needed available in the netsuite file cabinet w/o login and loaded them, did my work in that html and redirected within netsuite. Since the HTML files are already loaded on netsuites domain, it worked just fine for me.
-
I had already tried both JSON and JAVASCRIPT when setting the content type and no go. Also setting dataType to json / jsonp still gives the exact same errors as I stated above. I am 99.9% sure this is some kind of cross-domain weird issue. I have no idea how to resolve it though. If i just use json as the dataType and try…
-
The best thing to do is get ALL data that is needed into some object and then act on said data. You can utilize the nlapiYield function that will preserve your running logic for a subsequent governance set. Without seeing what else you are doing, it is hard to say what you can do for optimization.
-
I think Google may have this fixed in the latest release since I don't see it not defaulting to top anymore.
-
It does look like it is defaulting to the about blank page in the drop down. Once I changed it to "top" the commands worked as expected (without a refresh). The question of "why" still isn't answered so I am not sure if this is a bug or the way it is supposed to be working.
-
Bednar That is what I am doing currently. It would be nice to be able to get to the root of the issue but it appears it is something Google did with how things are being loaded since I never had to do this a month or 2 ago.
-
Other people in the office on Windows 7/10 with Chrome don't see it either. It may be a total Mac and Chrome issue. I SHOULD be able to just edit and call whatever i need without the need to create a bookmark and did work for YEARS prior to these last few updates. It may just be that Chrome updated something behind the…
-
egrubaugh Nice find on the bug report. Nice to have a workaround for the current time but will be glad to see this fixed.
-
You could wrap your nlapiSearchRecord in a try / catch to see if it is throwing an error. The error message may / may not be helpful. You should be able to paste this in the console and run it (may have to refresh a couple of times in Chrome. For some reason it doesn't always load the nlapi).
-
Bring on the 2.0 book. Excited to check that out.
-
You are correct that if it isn't a stored value, it won't be available on some sort of print out like advanced html/pdf template. You would need to store the value somewhere on the record being printed - or - create a custom template via code that DOES have the ability to use nlapi calls but I am guessing the custom route…
-
I would change this to an nlapiSubmitField to save yourself some governance. No need to load the record if you're setting fields on a record and have the ID.