My Stuff
Comments
-
Yo- BeforeLoad events will have a nlobjRequest argument, from that I think you can access the parameters (although I'm unclear what all will be included here) by calling it's getParamter() If you want to see what parameters are available take a look at getAllParameters() You also have getUrl() which from the sounds of it…
-
Well, it is possible and here's how I found that out: [LIST=1] [*]The documentation doesn't list the field to set the type as supported [*]This post by Yang lists some fields as supported, but they aren't in the documentation [*]Turns out the 'messagetype' is NOT the correct field ( I still love you Yang ), but it's…
-
Note that the nlobjRequest object is not availabe on beforeSubmit/afterSubmit user events. nlapiGetNewRecord().getAllFields() should return you an Array of all the fields that were submitted though. Thanks, Yang Yeah, I mentioned that it was for BeforeLoad. If you append custom parameters to the url (e.g.…
-
nlapiRemoveLineItem(type, line) - page 141 of the dev guide Cheers I've got a strange situation where the above is not working. I have pure-Suitelet form with several lists. The user can execute various types of searches (calls to web services, etc) and I'm displaying the results in these lists. Of course each time I need…
-
Alright, I don't think this has anything to do with escaped or unescapted XML... I think the xPath stuff behaves totally different on the server than it does on the client. This isn't surprising relaly considering on the server it's using one implementation and browsers will use another. However, what a maintenance…
-
Actually it's just plain broken right now. I can't get it to work with anything, including existing scripts (UE scripts)
-
Why don't you enter an issue Steve. 792627 I copied our QA team on your last post BTW ;) Even a BatPhone that skipped over all layers of support and QA would be mutually beneficial.
-
I am concerned though about you seeing different results on the server than on the client. They should be consistent and the latter should also be consistent across IE, Chrome, Safari, and Firefox. I'm nto kidding either, here is some actual code with my comments: var body = PMDUtils.UnescapeXML( response.getBody() ); var…
-
Can you use a fieldChange event in the meantime? Thanks, Yang Thanks for the comment Yang, The problem is I designed the mini-system around validation events. Had I known about the checkbox problem up front I could have just as easily (although it would appear strange) designed the solution to use fieldChanged. My choices…
-
I came across a post somewhere and it was mentioned that you need to "select" the line before removing it. Well.... it's true. Once again confused by the documentation and signatures of the API methods: [LIST] [*]If the line needs to be selected first, what the heck does nlapiRemoveLineItem() have a line argument for?…
-
Thanks for the update Yang. It's working fine now, has been for awhile. Matt Chan contacted me and at that point it was working in IE and FF.
-
Thanks Jim... I think :o Yang, NetSuite... I entered the case and I'd like to share with you why I don't like entering cases and why I think I (and others) should have a direct line to QA: Thank you for contacting NetSuite Customer Support regarding your concern about custom checkbox fields don't raise fieldValudate…
-
Your terminology confuses me, but then again it's almost 2am and I've been drinking and listening to Iron Maiden so who knows! As for all the "jumping" I will assume you mean "calling" in that functionA called functionB, calls functionC, etc. Either way: function 1 would jump to a function in the library file which would…
-
Alright, good to hear it! If there is an ER# can you post it please? I would like to expose it for additional votes by other users. I faced another situation this morning where this feature would have saved a lot of time.
-
Good catches Olivier! I think the search != null in the for statement is meant to be this: //search account record var searchresults = nlapiSearchRecord('account', null, filters, columns); //snip... //loop through the results for (var i=0; searchresults != null && i < searchresults.length; i++) { //snip... If anyone is…
-
Hello Steve, This would be an easy change to make and it makes sense. Please enter an issue with support so that we can investigate and notify you once completed. Thanks, Yang Roger that! Case# 790745 Created: Library script file should be served up BEFORE other customer script files
-
Question now is, is it possible to trigger nlapiSearchRecord during field change? Yes, this is possible. You say "Nothing is happening" - does that mean the alert is not being displayed or the values are empty or? You are declaring variables within the loop scope and calling them outside, not sure if that could be a…
-
Hi Olivier, A hard refresh doesn't do it either. Still need to exit and restart.
-
And the defect: Defect 154719
-
Hi Yang, So orderstatus is just an abstraction of status? Are the two sets of values interchangeable? In other words, can I change my TRANSACTION_STATUS 'enum' over to use the longer values being returned by nlapisearch? I'm still a bit confused. I'm not sure I understand your explanation very well. Should I maintain TWO…
-
No prob. Two more things:[LIST=1] [*]Don't abuse String.format() like I did! I just realized how over used it is in the earlier functions :p [*] See this thread if you are wondering what this hacky-junk is all about:[/LIST] if(stacktrace.length > 20) { // msg.push('**stacktrace length > 20**'); msg.push(stacktrace);…
-
I did and it's not there, that is actually what motivated me to use the watch window. That is pretty normal though, for example object members are never displayed in the local variables window, but you can inspect them in the watch window.
-
I'm not clear what your error is but the debugger gave me a hard time the other day (in my case I got a client error message for no apparent reason). However, if I copied and pasted the exact same code into a new .js file and uploaded and tested the same code in a new file the error went away. Don't ask me why though! May…
-
I'm not sure I understand your case, so this could be way off.... If you schedule "A" 3 times... do you have at least 3 deployments defined for it? Have you checked the return value from nlapiScheduleScript? I have a script that will sometimes be scheduled 45+ times in a near-tight loop. I needed to created 50 deployments…
-
The only hack I can think of is to call SuiteTalk methods from my User Event script. The fact that I even need to CONSIDER doing this is infuriating.
-
I *think* the workaround (which isn't really valid) is to REMOVE the BeforeSubmit from the deployment record and leave only the AfterSubmit - then it will break into the code.
-
I have searched the internet but I can not find it. Does anyone know where I can download it from? Thank you in advance Install it from within Eclipse using the Install/Update system http://www.interaktonline.com/products/eclipse/jseclipse/installation-update/ If you hear about Aptana and it sounds great.... be careful!
-
2008_2 Hi Yang, how is life? Great. I'm writing this because it said my message was too short and I needed to make it longer.
-
Hi James, Yep, everything is setup as you've indicated. I loggeda defect back a couple months ago about POST events not breaking in the debugger, I think the fix is about to be rolled out. Hopefully it will solve whatever I've got going on here as well.
-
maybe we shouldn't be working on a Saturday.... I DO have a mild hangover....