My Stuff
Comments
-
Hi Steve, I've noticed a number of times that transaction searches that used to work suddenly start timing out. I'm guessing that this is a transaction based saved search. What I've noticed is that: [LIST] [*]doing an "any of" status query tends to return results quickly but "none of" status queries tend to cause this…
-
Hi Paul, SSP is an acronym for Suitelet Server Page. This is the technology NS uses behind their new one page checkout feature. I don't think the online customer form is going to cut it. The best you are going to be able to do is get them back to a login page where they can enter the username and password they just entered…
-
This should do it: [CODE] function pageInit(type){ if(type != 'create' && type != 'edit') return; if('userinterface' != nlapiGetContext().getExecutionContext() || typeof window == 'undefined') return; // do not run if called from scriptable checkout var readyStateCheckInterval = readyStateCheckInterval =…
-
Paul, If this is an online lead form they will not end up logged in. There are hacks to achieve this but you'd be better off adjusting the actual registration form. These days you can achieve a custom reg form with extended fields using SSP. (for example see http://www.landscapesupportservices.com) An alternative to SSP…
-
So, something like this http://www.aspdotnet-suresh.com/2013/02/javascript-show-number-of-characters.html won't work then? Sure it'll work. The trick is to get the event handler installed at the right time on the right element and to make sure you aren't stepping on an NS function. e.g. if they already have a keyup event…
-
Your code would more generally be targeted at the label of the input field. You probably want to write: [CODE]$("#custbodyshipping_instructions").keyup(function() { var cs = $(this).val().length; $("#CountsAllUpInYerFace").text(cs); });[/CODE]
-
You can access it. For some reason (it shouldn't work, but it does) you can add HEAD tags anywhere in NS templates and they will be read by all browsers. Your idea would work fine too! I hope I don't ever have to resort to this. I'd feel so dirty.
-
I don't believe you can access the <title> tag directly in NS templates. Why do you need to use a custom field rather than using the built-in page title field? If you can't edit the pagetitle field directly you could create a user event script (or perhaps a workflow) on create or edit: var newRec = nlapiGetNewRecord();…
-
Will that work online on the customer website? I would like to be able to modify it for the Netsuite site on the sales order form. This is for the Netsuite shopping cart.
-
You can do this with a client side script embedded in your checkout page. If you have jQuery on your site you can do it like so: [CODE]var z1 = $("#zip").closest('tr'); var c1 = $("#city").closest('tr'); z1.clone(true).insertBefore(c1); z1.hide().find('input').attr('id', 'zip_orig');[/CODE] If you need to support IE7 you…
-
Please can anyone help me..i'm really desperate getting this to work :( ... it doesnt want to work.. don't know what I'm doing wrong here... Thanks Mayur The script you last posted will not work. The test: if('Trans-Continental Group Ltd' == itemDetails[i].getText('vendor', 'item') && 'Null' ==…
-
sorry too much copy and paste replace: for(var i = 0; i<= itemDetails.length; i++){ with for(var i = 0; i < itemDetails.length; i++){
-
If anyone would be kind enough to check this code and see if I am doing it right? Please Note : where I have 'so.getLineItem('Vendor', 'Drop Ship'); <--- the Vendor & Drop Ship are two seperate custom column fields. The Drop ship is hidden, because I do not need it to show on the sales orders. The Vendor is display for…
-
The script I posted originally had a couple of errors. Sorry it was put together quickly from other scripts I had around. The fixed version is: function SetFieldValue(type, edit) { // The itemDetails search can be done in an after submit phase when you are sure the order has an id. var itemDetails =…
-
There are probably many ways you can do this. A couple come to mind: [LIST=1] [*]Create a custom hidden text field on the form and populate it with a fully qualified creation time: nlapiSetFieldValue('custevent_browser_createddate', newDate().toUTCString()); The user could then visually compare the creation date they see…
-
Are you talking about having your reps change roles? The preferred role option on forms refers to the logged in user not the customer. If I understood this thread correctly you want to use a standard set of forms based on the customer's original web site without regard to what is being purchased. If that is correct then a…
-
Thanks Brett - in fact i'm using this in a workflow so i'm trying to stick to SQL and avoid scripts. I've just worked out {TODAY} - SYS_EXTRACT_UTC( LOCALTIMESTAMP ) which appears to return an 'interval day to second' value matching the time diff of the user from GMT. That will give you your system time offset but I don't…
-
Hi, You may be able to do the following: [LIST] [*]create a custom transaction column field of type text area [*]create a before submit user event script [*]for each line item have the script copy all your serial numbers to the new field [*]hide the serial numbers as a print field on your transaction form but show the new…
-
AFAIK you can only use field tags (curly braces wrapping the field's script id) in a workflow custom email template. However if you are getting transaction values filled in currently in your email (e.g. {trandate} results in a value rather than having to write <NLTRANDATE>) then you can reference joined fields via the…
-
Wayne, Normally this is the address under the Setup|Company |Company Information menu. When you say your remittance slip is printing an old address do you mean you've changed the address on the company information screen and the remittance slip is still printing an old address? If that's the case then you probably have an…
-
This would be used as a before submit user event script that should do the trick. Replace "custcol_my_comma_sn" with the script id of your custom column text area field. I haven't tested this server side so some things you might run into would be if you had serial numbers on a line and then cleared them for some reason you…
-
TJ, The sample I provided would be a user event script. - Put the script in a file - upload to the SuiteScripts folder under Documents |Files |SuiteScripts - go to Setup |Customization |Scripts |New - select User Event for the script type - configure the script. select the file you uploaded and enter 'invoiceBeforeSubmit'…
-
What I've done is to create a custom record with a single int custom field. You can use that with scripting as a source for auto-generated numbers. Be careful though. Netsuite has no transactional semantics so if you have a busy system you could end up using the same number more than once. The only reliable way to generate…
-
This is fairly straightforward to do with a script. Someone may have a formula for this but some issues will be: How do you trigger the update(what event occurs so you capture today + 2) Do you have to account for weekends and bank holidays?
-
Yes. The built-in navigator object has that information. It's browser specific but this code: var lang = (navigator.language || navigator.userLanguage || navigator.systemLanguage || 'en').replace(/-.*/, ''); gives the two character language id that the browser prefers. any of the…
-
With the built-in form no script is necessary. For any sort of custom form yes - you'd have to create a block of script that would translate. I'd tend to do something like: <span class='xlate' id="labelid">English Value</span> and then [CODE] var xlate = { labelid:{ en:'English Value', fr:'French Value' } } ... var lang =…
-
The built-in form uses labels you can override and translate on the Setup | Web Site |Customize Text pages. There doesn't appear to be any way to force translation of field labels on custom online marketing forms. On a form using a custom html template you could include the translations in a block of javascript that would…
-
Hi Evan, That sounds interesting for the future but I need a way to deal with this now. What I am planning on doing is to create a custom record of transaction type, customer flag and preferred form. Then in the before user event phase I will "do something" to force the form to change. It would be great if , in the before…
-
Use a custom html template for your form. Make the field non-mandatory at the form configuration level. Use javascript to manage the field's manadtoryness.
-
I agree it's a pain but the transform record operation makes it mostly boilerplate. This thread lists the code to do it with Suitescript. Web services would be similar (at least with the Java web services client)