My Stuff
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Comments
-
You will need to confirm that your script is properly deployed and that it was actually executed. Try adding a debug (nlapiLogExecution) statement in your script. I added a couple of debug statements but there are no entries in the Exec log. My code: function beforeSaveCustomer(type) { if (type.toLowerCase() == 'create') {…
-
SuiteScript follows the logged in user's permissions. We have added a new option called "Execute as admin" in the 11.0.4 release on script deployment to allow a script to run with higher permissions. I tried to test this today and I notice that the Execute as Admin or "Full Access" as it was called in the Australian…
-
Any ideas anyone??
-
Yes, it does create a lead record when a new customers register themselves thru the webstore. And SFA is enabled as well. The lead record gets created successfully but the Pricelevel field is blank and there are no entries in my script's execution log :confused:
-
Please ignore this. I corrected it myself :)
-
Thanks Yang! I checked this morning and the "full access" checkbox is back on :) I'll test this script later and see how it goes.
-
Now I get an Unexpected error::( Error: UNEXPECTED_ERROR Stack Trace: #ccAccessEmail.nlapiSearchRecord(customer, null, [Lcom.netledger.app.common.scripting.nlobjSearchFilter;@9362e1d, null) #ccAccessEmail An extract of my code: function ccAccessEmail() { var filters = new Array(); filters[0] = new nlobjSearchFilter(…
-
NS Guys, Any ideas when this would be resolved? I need to get some scripting done for a client and still waiting for an ETA from NS Support. Appreciate if this could be fixed quickly... thanks!
-
I tested this again today and the code does work on standard field changes. Its only the custom fields that are not reacting to the script :(
-
Thanks Tim. I just raised a support case for this - Case #6097 with NetReturn Australia.
-
Ok. Will try the options and see how it goes! Thanks for all the help :)
-
Tim, I already have a script running on the Expense Report form which I created many months back - this references standard fields such as amount, taxcode... these are still working! Yesterday, I add a bit more to the script to validate some custom fields and only these refuse to work! Regards Srilatha
-
Its a bit more complex than that- my client have different projects and each project is linked to a customer. While tracking time, they need the ability to select a project and pick up the customer based on that rather than having to select a customer again manually. So I created a custom field to source the customer from…
-
Hi Evan, I am not sure if I explained my problem well.. I have a custom field which is a list/record of Customers. And I'm trying to put in the same value into the standard 'customer' field using a script. Using nlapiSetFieldText() adds an additional "/" at the end of the customer name which is causing some issues. Regards…
-
Support got back to me today, with an Issue # (Issue 115484 - Certain expense reporting fields not accessible with javascript. Specifically Custom column fields). Any ideas on when this may get resolved?
-
yes, the standard one is a list.
-
NS, Can you check and see if you can replicate my issue? nlapiSetFieldText('customer', ...) adds a "/" at the end of the customer's name. tks. Srilatha
-
Not sure if this will help, but try this and see.. function checkPSrecord() { for(i=1; i<=nlapiGetLineItemCount('item');i++) { var linevalue = nlapiGetLineItemValue('item', 'custcol_product_category',i); if ( linevalue == 11 ) { alert('This record has items that must be aproved by PS'); return false; } } return true; }
-
no it doesn't - gives a popup error "No Match" However, its interesting - thru the script it does resolve it in cases where there is no parent for the customer. If there is a parent, then it stuck with a slash and gives a No Match error.
-
Thanks Evan! It will be great if it can be fixed earlier!! :)
-
Thanks Erik! I took some ideas from your post and modified my script, but it still doesn't work! if (name == 'custcolproj_customer') { var cust_name = nlapiGetFieldText('custcolproj_customer'); var cust_name_length = cust_name.length; var new_cust_name = cust_name.substring(0, cust_name_length);…
-
Hi Elham, I have tried to use nlapiLookupField() a few times in client scripts and never managed to get them to work. Can this function be used in client scripts at all? e.g. var custID = nlapiGetFieldValue('entity'); var job_loc = nlapiLookupField('customer', custID,'custentitylocation', true);…
-
Thanks Mark! That worked perfectly :)
-
If anyone has used the window.print() method, could you please post a sample piece of code here? TIA.. Srilatha
-
Ok. Thank you!
-
Sorry, I was probably not too clear with my question! I am not refering to cheque printing here. Basically each time a job is created, we want a couple of relevant documents/checklists to be automatically printed off (rather than the user having to remember to print them). I wasn't too sure if a print instruction could be…
-
This does it for us - tooka lot of messing with - I had the same issue you have... function setPORates() { var numItems = nlapiGetLineItemCount('item'); var bcCounter3 = 0; // Run through each line item for ( bcCounter3 = 1; bcCounter3 <= numItems; bcCounter3++ ) { nlapiSelectLineItem('item', bcCounter3);…
-
Hi Yang You are a genius! :) I disabled the Team Selling feature and my code works perfectly. In fact, we don't use the Team Selling feature at all so disabling it makes no difference! Thanks again! Really appreciate all your help and effort!! Regards Srilatha
-
Hi Wayne Thanks for your help. I added the try and catch and now realise that the problem is most probably with the last line of my code: nlapiSubmitRecord(record); because the email with the JS exception tells me: Code: UNEXPECTED_ERROR Stack Trace: #afterSaveProject.nlapiSubmitRecord(customer, false) #afterSaveProject I…
-
Hi Yang, Your code didn't work either. The error is below. I have already raised a case - 5821 with NetReturn Australia. Please could you look into it? Thanks! Date & Time: 8/30/2006 6:50 pm Record Type: Projects Internal ID: 6834 Script: createCustomer Error: JS_EXCEPTION Code: UNEXPECTED_ERROR Stack Trace:…