My Stuff
Comments
-
Your reply caused me to go back and do another, more simple test and sure enough, it works! So I uh.... uhmm... I'm really not sure what was wrong with me before and I why I thought this wouldn't work. :p Either way, thanks for the confirmation! var testingAssistant1Client = { onInit: function onInit() {…
-
There is a formula to calculate the Total Beds from the High Care Beds and Low Care Beds. Do you mean a formula defined on the "Total Beds" custom field definition? As in Validation & Defaulting > Default Value (you've checked the "Formula" option and entered something like {custentity_lowbed} + {custentity_highbed})? If…
-
...I don't see why the client side code would fail outside of a suitelet since Netsuite uses the same code for creating fields. ... BTW, I would have made the same assumption had I not discovered that indeed things are handled differently in an assistant. For example, have you ever noticed that format validation is not…
-
Thanks for the suggestion. I had thought about using the session bag to share the data but was hanging on to my original plan of using parameters passed around. I finally realized that was a flawed design and ended up using the session. I wrote up a rather long blog entry detailing my solution including the code.…
-
Thanks for the response and info. I have since used startcol with success to break a field group into two columns. outsideabove and outsidebelow would be great to place non-grouped fields below groups.
-
I load a file from the file cabinet that has replaceable parameters. Script creates a variable-value array. Script has custom replace code to replace the 'variables' in the file with the values in the array. some of the values are rather long and span many lines. (I believe I got the basics of the code here from a sklett…
-
I'm seeing a strange issue that I suspect is a caching issue. My issue is appearing on SuiteLets but I thought I would post the details and case # here in case anyone sees something like this. Here is what I sent to support (case #1270538): I have a SuiteLet that utilizes a library script file that defines several…
-
I made some progress on this. I had a couple bugs, the main one (and this is really stupid of me) that I wasn't called nlobjAssistant.setFinished(null); in my post handler for the sub-assistant. So of course if it doesn't KNOW it's finished it can't redirect to the customwhence URL. So that one is solved. But now I have a…
-
I just ran into this and the only solution I can think of is to deploy a interface/wrapper server with a cert from one of the authorities that NS supports. Then pass all my 3rd party web service requests through this interface. TONS of work and lots of money, but I don't imagine I'll get NetSuite to add a cert to the…
-
... I've also noticed that if from is non-admin employee, emails are NOT sent. Any chance that you have your deployment set to Testing? I can't remember which, but a Deployment set to Testing will only work for either the Owner or users with Administrator Role - like I said, I can't remember which...
-
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…
-
I did this with a firefox add-on. We no longer use it because the telephony support provided by our phone system is useless. Basically what I did was store all the parameters in a hidden field formatted as a JSON string. The FF add-on would then parse the page and wrap anything looking like a phone number as a link with…
-
In case anyone else has issues with this: Defect #189643 - SS > using nlapiSetRedirectURL on Before Load function seems to rollback the previous changes done by nlapiSetFieldValue SUMMARY: using nlapiSetRedirectURL removes/rolls back the value set using nlapiSetFieldValue WORKAROUND: None Your defect has been prioritized…
-
...I could not really find anywhere that the internal ID of custom pricing was '-1', but I'm sure I'm just not skilled in the ways of the suitescript docs.... You can often time find these magic numbers by looking at the page source when in edit mode. "NLMakeDropdown" is your friend ;)
-
Probably not unless the script for some reason requires that field you are referring to to be empty. That seems unlikely though.
-
Yang is showing a ~40x increase which is substantial. I had a ~28x increase when testing in the debugger. Either way, JS concatenation is to be avoided ;) http://www.pmddirect.com/wp/?p=264
-
What do you mean by "JSON arrays"? JSON would be a string. Do you mean an array of JSON strings?
-
If you can give me some guidance would be great! Make sure you use some kind of security measures to prevent someone figuring out this simple model and grabbing invoices that aren't theirs. You may already be doing that, but I thought I would mention it.
-
Ah, HA! Figured it out. If you have a non null value for source then you will get all kinds of undefined behavior. For example: _assistant.addField('test', 'select', 'Sales Order', 'salesorder', null); I had done that thinking "this is a sales order field, I'll set source to 'salesorder'" Then if you try to dynamically add…
-
This is looking more and more like a bug. As a workaround, I changed the design of the assistant and introduced an additional step so I can build the list contents on the server side. Now I get this error when I try to add a single select option: That operation is not supported for this type of UI object: select. It is…
-
The behavior you are seeing is correct, the unsaved data that is entered will not persist across a form change as it's a completely new request of the subject record. You could probably come up with a complicated solution to encode the values into the URL that you are requesting, then parse them out in a client script (or…
-
You can't combine the PDFs in script. PDFs are binary files and you would need to utilize an external library/tool to combine them. Now... depending on how badly you need to accomplish this, you could use the BFO XML PDF library that NetSuite brilliantly added support for. I use this library often and build up my own PDF…
-
Filed a case with netsuite support. They got back to me and said this is as designed. You cannot set the custom form with a script or any other method. So for anyone that finds this thread, that's the answer. But thinking about it, if I had a lot of records, and absolutely had to have it done to a large amount of records,…
-
Yes, there is a bug. I just deployed a quick script and tried loading up a Folder a couple different ways and it never executes the script.
-
I saw this I'm calling a web service from Client Script and thought that an async return might lose scope or context if it returns after a page has been unloaded from the browser. Do you have the same failure (SERVER_RESPONSE_ERROR) message when calling the WS async in UE server context?
-
Does nlobjRequest.getURL() return the correct URL with all your parameters in place? If so you could regex your parameter out. Just a potential workaround idea...
-
As Olivier said, you are on your own to manage resuming to the correct place. One pattern I have used in the past that works well is to add a Script Parameter (AKA "field") t0 the deployed script, then when you reschedule with nlapiScheduleScript you pass along the last index or id that was processed. It's more common…
-
Yes this is possible, see below sample code. Why did you think it's not possible? Did you receive an error or something? var shippingItem = nlapiLookupField('customer', 1175, 'shippingitem'); nlapiLogExecution('DEBUG', 'Current shipping item: ' + shippingItem); nlapiSubmitField('customer', 1175, 'shippingitem', 166);…
-
I have not seen that happen before so I'm sorry I can't help you. However I'm curious if you are making a async call invoked from onSave how are you preventing the record from saving and losing execution context?
-
Not possible, in the past I have met this requirement by removing grouping, sorting by the grouped field and then manually stepping through the chunks of grouped records in code. Think: var last = null; var current = null for(var i in results) { current = results[i].getValue('manufacturerfield'); if(current !== last) { //…