My Stuff
Going to SuiteWorld? Connect with SuiteGurus—Your NetSuite Product Experts!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Comments
-
In the custom transaction form, 'Custom Code' tab, there's a field for 'Validate Line Function'. For example: Validate Line Function: validate_line Then in your client script you must have the same function name function validate_line(type){ <em>your code</em> } check out this page for more details:…
-
You can script a Transfer Order, then the Fulfillment and Receipt to complete it. See here: https://usergroup.netsuite.com/users/showthread.php?t=24916
-
a couple thoughts... You could keep your character count by doing something like this (untested) case when {custrecordsp1} = 'item1' then case when {date} > TO_DATE('07/01/13', 'MM/DD/YY') then 100 when {date} > TO_DATE('10/16/13', 'MM/DD/YY') then 150 else 0 end else 0 end depending on the logic of SQL, you might have to…
-
Hi Rodney - What you're trying to do should be possible, can you post the code you already have?
-
You are seeing a result for every line on the SO. Add a filter for mainline var filters = []; filters[0] = new nlobjSearchFilter('entity', null, 'is', curCustomerID); filters[1] = new nlobjSearchFilter('mainline', null, 'is', 'T');
-
Glad to help! Your 5 second delay is from nlapiLoadRecord and nlapiSubmitRecord everything else will run quickly. If speed is important, consider changing this to a scheduled script (every 15 minutes) so that your users will never see any lag. The only down side is that there will be a short delay from when the fulfillment…
-
what if you replace it with if (Soid)
-
Based on your comments, this is not an 'After Submit' (user event script); it's a 'Save Record' (client script). The script is only applied to this one form, not to all fulfillment forms. If you want to keep it this way, simply add return true; to then end of your script. function afterSubmit(type) { var rshipID =…
-
I believe you have to mark each (open) line as closed, there's a checkbox called 'isclosed'
-
The customer dashboard lets you view searches, kpi, balances, etc for a customer. Got to the customer record, then click the small icon next to the name.
-
The customer dashboard already has this capability, can you have your sales reps use that? Next option would be to have a saved search that sums the invoices per customer, and you could then add this as a sublist to the customer record, filtering for the customer.
-
As far as I know there's no way to script 'save' into a button for client scripts. I can think of one hacky way to do it... it's ugly but would work. 1. use nlapiLoadRecord to load the current record as an object. This 'loaded record' will have values based on last save. 2. compare the 'UI record' with the 'loaded record',…
-
kphu - my thought was that if a user event/workflow is triggered (esp a beforesubmit type) that a locked record could return an error to the scheduled script. I don't know if that's how sequentially triggered scripts function...
-
Is it possible that there is a user event script that is triggered from the scheduled script?
-
I think you should use nlapiSetFieldValue instead of nlapiSetFieldText. Also your logic looks wrong, you need to check for 'not equal to' but you are checking for 'equal to' Here's an untested edit: function clientPageInit(){ // Create var which takes value from the Tracking # field var trackField =…
-
The "locked record" could be another record related to the one you are changing in the scheduled script. For example, if I try to change a Sales Order record via scheduled script, and there's a user event script that modifies a locked related transaction, the related transaction will fail to update but the Sales Order will…
-
something like this to remove null, where ccArray is your array for (var i = ccArray.length - 1; i <= 0; i--;) { if (ccArray[i] == null || ccArray[i] == '') { ccArray.splice(i, 1); } }
-
Yeah I was wondering about that... based on the help file example, it appears that nlapiScheduleScript will execute even when the remaining usages is 0 or less than 0. Is the example wrong? Example 2 - Reschedule a Script Depending on Units Remaining Use nlapiScheduleScript, nlobjContext.getScriptId(), and…
-
Maybe not the most efficient way, but couldn't you break this into two steps? Step 1 is commit the line w/o the sourced field. Step 2 is select the same line, set the sourced field, then recommit.
-
nlapiGetCurrentLineItemText returns a string, but you refer to it as an array. It should be var account = nlapiGetCurrentLineItemText(type, 'account'); alert('account is ' + account); if (account !== null && account != '') { if (<strong>account</strong> == '5' || <strong>account</strong> == '6') { alert("Missing…
-
can you share the script?
-
NetSuite support closed my case, but if you would like to help them to help themselves, you can give them info: Case #1768628 Defect 261555 What may have helped (though I can't really tell) is that they had me modify a scheduled script deployment. Shortly after that, everything returned to normal. So, if you want to try…
-
OK thanks for the tip, I'll try that now, if it works I'll know in 5 minutes.
-
ps my account is still on 2013.1 for another 11 days.
-
I am the owner of all of the scripts. After 2 1/2 days of being down, all of the scripts turned back on yesterday at noon, and deployments started rapid firing. In fact I had 13 deployments launched within 1 second of each other (many are duplicates of the same deployments). Also at the same time a whole bunch of scheduled…
-
no luck... now the long wait for support to confirm what I already see...
-
If your custom record was named with an id, then you have to use that id. For example, I have a custom record of Holidays with internal id of 8, but it has a named id of customrecordholiday. Setup > Customization > Record Types > [your record] > ID
-
The line nlapiSubmitRecord(record, true); was in the wrong place, it was submitting the record after every line item was changed. Should be: function set_custom_amount(type) { if (type == 'create' || type == 'edit') { var record = nlapiGetNewRecord(); record = nlapiLoadRecord(record.getRecordType(), record.getId()); var…
-
Glad to help! Your href needs quotes to work. You can use \ to escape. Eg var link = '\"https://system.netsuite.com/app/site/hosting/scriptlet.nl?script=164&deploy=1&custparamso_id='+ recordid + '\"';
-
what error are you getting?