My Stuff
Comments
-
Carl, thanks. I like you idea, however I want the ability to add new lines and modify from the parent (just like when you are creating a standard transaction in NetSuite). Reporting is not necessary right now. I am using your technique when displaying other transactions associated to this project record. They can not be…
-
pcutler thank you for your response and idea. I am not sure it will work as I do not believe we have access to edit the contact role field on the sublist of the customer record. Nor do we have access to the role field from the contact record. Not sure how to go about creating a workaround. All I need to do is have the…
-
Olivier, thanks for the reply. I am setting the recovery point at 50 records (projects) b/c if every project had to be updated in the manner that I am doing it, my script usage would run out and the script would error out. Right now I get to 76 records and I am down to 180 script usage available. So I yield the script. It…
-
I probably could do that, or on the same note, create a scheduled workflow to do the same. This is working for us now and if I ever get time to change it, I'll do one of those options.
-
corey great question. I have also do not have handleScriptRecovery() defined. With that said, does the status of the state ever equal "resume" when setting the recovery point?!? I've never received an error on this script and it runs every 4 hours! HA!
-
Olivier, moving the setRecoveryPoint() function call right before the Yield seemed to fix my issue. Thanks for helping out! Now it is having another issue, but as far as the subject of this thread is concerned, we can consider this resolved.
-
corey great question. I have also do not have handleScriptRecovery() defined. With that said, does the status of the state ever equal "resume" when setting the recovery point?!? I've never received an error on this script and it runs every 4 hours! HA!
-
pr57001 thank you for all of your information, it has helped me immensely. I've also been researching this topic fairly heavily and here is what I have discovered. You cannot create a "custom" shipping address from a User Event Script (at least from a Before Load function) or you get a NS error letting you know that the…
-
TEvangelista thank you for the example of how to add an external script library reference. However, when I do this, I get an error is FireFox and Internet Explorer. It works fine in Chrome (go figure). Here is what I am doing in my user event script: var html = '<script type="text/javascript"…
-
are you doing this in the sandbox or production? sounds like you are working in the sandbox and have the emails all being redirected to the current user that is working in the sandbox. Go to Setup > Company > Printing, Fax, and Email Preferences. Click on the Email tab and scroll all the way to the bottom. I bet you have…
-
Another piece of info that I think is strange is when you initiate the workflow from the API, the "event" is "process" and the "context" is "userinterface". I would think the event would be either "create" or "edit" and the context would be "userevent". But I guess that would make sense... Therefore it seems you can not…
-
Carlo Ibarra Thank you for the post. Note: be sure to use the "setWindowChanged(window, false);" line. I over looked this the first time...
-
What would you do to remove the "edit" button when in view mode?
-
So you can remove all sorts of buttons except the Edit button from a workflow? I want to remove this capability so that supervisors or anyone else cannot edit a PO once it has been submitted. I thought I could use the "Remove Button" action on a state and then put in the conditions for who could use that button...
-
This function worked perfectly for what I was needing. Thanks! function getUrlParamValue(urlParam) { urlParam = urlParam.replace(/[[]/,'\[').replace(/[]]/,'\]'); var regexS = '[\?&]'+urlParam+'=([^&#]*)'; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if (results == null) { return ""; }…
-
Does anyone know if this is still true that you cannot create preferences in a new "group" under the custom preferences section of company preferences? I have install two bundles that have created new groups, but all my preferences show up under the "general" group.
-
Here is the solution that I came up with: USER SCRIPT: function fieldChanged(type,name) { if (name == 'customer') { //type = item or expense var custProj = nlapiGetCurrentLineItemValue(type,'customer'); //alert(custProj); if (custProj != '') { //*********************************************************************** //this…
-
Thanks Oliver. I'll give that try.
-
Are you able to return multiple values back in 1 response.write(myValue)? Or do you have to do multiple suitelet scripts? For instance I want to return: var a var b var c var d These are all field values from a project record... Is this method actually writing to the client script? Would I need to write something like…
-
khultquist, I must have put it in the if statement last time I tried that. It seems to be working now. Thanks for the help!
-
ISSUE SOLVED! Code: function fieldChanged(type,name) { if (name == 'custbody_po_vendor_contact') { //get the value of the Vendor Contact var ss = nlapiGetFieldText('custbody_po_vendor_contact'); if (ss != '') { //split the Vendor Contact up when there is a ':' (array) var result = ss.split(":"); //write the value of the…
-
Thanks for the reply, but I made that change and I still get nothing in the text box for the custbody_po_vendor_contact_form field. I even took out the line where I split out the text to just get the name and made the string be the variable ss. I have even tried to just write in a value to that field with no other code and…
-
Should this go inside or outside the if statement? I had a "return true;" in there at one point, but it did not make a change. I will try again once I know where to put it.
-
Oliver, Thanks for pointing me to that help article. For everyone else, the direct link is here: https://netsuite.custhelp.com/app/answers/detail/a_id/10623#1041024 Thanks!
-
Here is what I have now: function appendName() { var recordType = nlapiGetFieldValue('Record'); if (recordType == 'Create') { //this gets the employee who wrote/requested the order var orderReq = nlapiGetFieldValue('employee'); if (orderReq == '') { //do nothing } else { //this loads the employee record var employeeRecord…
-
Alright, I am VERY new to this scripting in NS. This is what I have so far (not much) I'm getting stuck on loading employee record part. ~~~~~~~~~~~~~~~~ function appendName() { //this gets the employee who wrote/requested the order var orderReq = nlapiGetFieldValue('employee'); if (orderReq='') { //do nothing } else {…
-
I also only have the option to run this script on the following: Page Init Function Save Record Function Validate Field Function Field Changed Function Post Sourcing Function Line Init Function Validate Line Function Validate Insert Function Validate Delete Function Recalc Function I think I should use the "Save Record…
-
Awesome! Thanks!
-
Oliver, Thanks for the reply, I have now commented out the line for the loading of the employee record. Since what I have will not work, what will work? Since the 'systemnotes.type' is not a field on form, how do I get it and then check against it to see if it is 'create' or not. Or is there another way to do this check so…
-
Oliver, can you call parameters out of the URL from with in the pageInit function of a Client side script? example, click Bill from a PO to open up the Vendor Bill form: var poId = request.getParameter('id');