My Stuff
Comments
-
Thanks Brett. I don't think this is quite what I'm looking for though. I want all of the fields to populate as they do when you currently click the "Authorize Return" button on the SO and I don't want to have to tell the system which fields to find/put into those fields. There are only a few fields that I do want to set…
-
Hi, The way to do this is to use either nlapiSetRedirectURL from a user event script or response.sendRedirect from a suitelet. example below opens an item fulfillment from a suitelet: var params = {}; params.e = 'T'; params.transform = 'salesord'; params.shipgroup = 1; params.id = so[0].getId(); params.memdoc = 0;…
-
Mark, Sounds like your action script is passing in the RA id. For a workflow action I'd probably code this like: e.g. function closeTran(){ var tran = nlapiLoadRecord(nlapiGetRecordType(), nlapiGetRecordId(); var anyClosed = false; for(var i = 1; i<= tran.getLineItemCount('item'); i++){ if('F' ==…
-
The following works with Sales Orders and Return Authorizations; It should work with anything closeable. function closeTran(tran){ var anyClosed = false; for(var i = 1; i<= tran.getLineItemCount('item'); i++){ if('F' == tran.getLineItemValue('item', 'isclosed', i)){ tran.setLineItemValue('item', 'isclosed', i, 'T');…
-
So in a workflow situation you'd have to have the action script populate a state field as one of the first actions in state. Then use that to populate the item's "Name" field in the create record action. Does that work?
-
You might try the following or make sure your workflow action field doesn't have formatting applied (I think you made it a text field so that formatting shouldn't be an issue). function SetBarcode() { var ranNum= Math.floor(Math.random()*899999+100000); return ranNum.toFixed(0); } I use random numbers a fair bit and I…
-
What are you trying to accomplish? The only reason to require this server side is so that your pages are crawled by a search engine's spider. If you are trying to show different images/content to each customer then running this with a client side script offers a number of benefits. You can however achieve what you want…
-
Or just create a workflow action script and populate your field with its results.
-
It is possible to create your own button for adding items. The button would load a suitelet that would give you complete custom control of how you search for items. I have done this via scripting. I've seen NS installations where the add item pop-up had been customized (sublist view?) but the customer said they couldn't…
-
Pablo, I have the pieces needed for this but parts are in different projects. The parts I have are: [LIST] [*]created an alternate item field on sales orders that when entered searches both the standard item id fields and also mpn, upc and some custom fields. Multiple results are shown in an overlay. User can click on an…
-
I have not done exactly this but in similar situations what I would do is send the required session id cookie value back to the client as part of the suitelet response and then have a client script extract the sessionId value from the response and set the cookie on the client. e.g. document.cookie = ... HTH
-
No. PHP does not run within Netsuite. What are your trying to do?
-
I believe a custom record is your only option.
-
I've been looking at the options inside Website setup > Email > Digital Delivery Emails. However, again this seems to only affect Gift Certificates purchased through the webstore. All our transactions are either created through WS or the UI - so we desperately need a way to modify this. Add a custom item option field to…
-
As usual there's no hard and fast rule for how to accomplish this. At first blush what I'd do is set up your plug-installs as a list of transaction item options and don't list your plug-installs on the site. When a user selects a lighting unit they can also select a plug-install. If different plugs have different prices…
-
I don't know the answer, but I'm hoping someone can say "yes" to this. I've just thought of so many benefits to this after reading your post. There isn't a way to automatically add the results of a saved search but you can certainly run the saved search with a script and populate a transfer order. see my post on this Note…
-
I assume you mean adding it to all pages in your web site. Is that correct? If so then just include a standard script declaration like: <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> in either of two places: [LIST=1] [*]the Analytics additions to head section…
-
You could try this. I assume you are not a programmer and just needed help with the syntax. If this doesn't work you could try pasting back the relevant block of code from your actual web site so we can see how LOYALTYSPEND is being rendered. var shiptotal= parseFloat("<LOYALTYSPEND>"); if(!shiptotal){ shipoutput =…
-
Yes, checking the tobeemailed button does trigger the type == 'email' beforeLoad event. I imagine this could be used to set various non-stored custom fields on demand (e.g. a custom item list field) for the standard email. I was just hoping for a supported way to intercept the email event and send a custom email.…
-
After the customer logs in they are redirected to a page on your external site. That page is the one that detects the presence of the stored "intended location" and does a client side forward to the correct page. It all happens on your external site and has nothing to do with Netsuite. HTH e.g.: <!DOCTYPE HTML PUBLIC…
-
What I have done for this to add the current url to a cookie when the user clicks the link. Then on the after successful login page I have code that checks whether the cookie exists and, if it does, it clears the cookie and redirects to the originally intended location. sample code depends on what cookie lib you have etc.…
-
Hi Olivier, Before Submit will work, yes. Emails are sent between Before Submit and After Submit. Yes I know. That's what I currently do. However what I am wondering is if it is possible to use the beforeLoad type == 'email' event to completely replace the email generation process with a custom email.
-
I don't think you can use an actual Date object in your query. Plus it may not make a difference but 'anyof' is supposed to be used with an array argument: filters[1] = new nlobjSearchFilter('trandate', null, 'onorafter', '3/28/2011'); filters[2] = new nlobjSearchFilter('custcol_fas_cat', null, 'is', facatID); // should be…
-
Basically there are two ways that I've used. Both involve scripting: 1. Create a custom transaction body RichText field and fill it with a table of the items. The script to do that will run in the before submit user event. You can create the item links using the /s.nl/it.A/id.xxx/.f form or your script should be able to…
-
Yes I have
-
Hi James, Not directly no. However check the NS help regarding scriptable cart and Cart Line Messages. Something can be done with that. I've also used scriptable cart to push a block of hidden html or json to the cart pages and then used client script to update the cart table.
-
If you are using a transaction pdf template then you can add a custom element that just has {today} as its value. If you are generating your pdf letter using another template a solution might be an un-stored custom field. the default value for the field would be the formula {today} and if your field had id custbody_today…
-
Actually the plot thickens. Turns out I should have randomized my order of testing. I managed to convince myself of a couple of things that aren't so. It turns out nlapiRemoveLineItem fails the first time it is run on a line. In the shopping cart after the recalc action the cart tries to assign a line id (you can see this…
-
Function is not function try changing your script and see if that runs.
-
Hi Evan/James Case #1311714 My phone # is in the case notes. Thanks for looking at this.