My Stuff
Comments
-
Maybe I'm barking up the wrong tree here as I'm working in the BETA OnePage Checkout but maybe this will work for you? var order = nlapiGetWebContainer().getShoppingSession().getOrder().getFieldValues(); var cartsummary = order.summary; cartsummary has the following properties you may be looking for:…
-
Sorted, posted the solution below for completeness. Seems I was missing one bit of code in site.js billing: function (renderFuncObj) { load(_nsCartModel, { // Neil renderFunc: renderFuncObj.co_myrdos }); Now I need to figure out the css being used to get the radio buttons stacked vertically and hang some code off them.
-
I cannot comment on your code but you set the value of a checkbox to the string "T" to "check" it.
-
Apologies if I'm missing something here I'm not familiar with the ListOrRecordRef but maybe this will steer you in the right direction? If a field that is defined as being a list type is returned in a search normally getting "Value" returns the internal id of the list item getting "Text" returns the text representation.…
-
Typically you'd use getValue('columnname') and getText('columnname') for a column in a search is that what you're trying to understand?
-
Not sure if you'd be able to do this in the context your proposing but have you looked at nlapiTransformRecord? If you transform an SO to a PO you will find that the relationship is bidirectional and evident on both records. (ie "createdfrom" on PO will be a link to the SO)
-
Sorry I don;t have any sparkling answer for your problem but I noted that I've yet to supply Accept in a request in any NS code to date and wondering, if you omit it what happens? i.e. comment out "headers['Accept'] = 'application/json';" I notice you made mention if "null" it doesn't work but I am unsure if you've coded…
-
I'm not over familiar with VB.net and certainly never tried working with it in conjunction with NetSuite but maybe my mind wandering can steer you in the right direction. Typically with a search the records returned have a per record id. Lets say you pulled in 3 records. searchResults is the array of results. If I wanted…
-
Sorry I'm not familiar with PowerShell so this may be waaay off what you're needing but maybe this article would be of use: http://ye110wbeard.wordpress.com/2012/05/21/three-ways-to-pass-credentials-in-a-powershell-script/
-
Thank you both for your replies. This has come about as a service online I'm interfacing with through NetSuite is not working and it was suggested I try to attempt the same function using a PHP script that was provided to me. Not being overly familiar with several aspects of this I somewhat assumed that PHP was useable in…
-
For standard records / fields you could also refer to the records browser. Admittedly not as immediate but still good to know and can be on a separate tab :) https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/script/record/account.html The link I posted below formats on save and you lose the full…
-
Stumbled across this today, great job Michoel, very surprised nobody has commented before now! :eek: I find myself using &XML=T more and more, this is far simpler and a better format.
-
Fantastic, thanks for sharing.
-
I think you're just looking at a script that would use the standard JavaScript Date objects and doing a bit of leg work to take one away from the other. The next two lines are pseudo code you will need to ensure your Date fields are correctly converted to JS date objects (if needed). var d1 = custrecord_ci_enddate var d2 =…
-
Hopefully this will help you even if it's not a magic one line answer ;) You may be using the correct syntax but looking for the wrong value. I really cannot recall but it could be Could "T" / "F" (true / false) or even Y / N. "record." relates to the currently loaded record so you may need to consider that the field you…
-
Just in case anyone else has a similar issue or was wondering how this was resolved... NS Support tried it themselves and managed to pull back the value using the exact same code as myself where you grab the config then access the config object such as : var test = nlapiLoadConfiguration('companypreferences'); So I…
-
items are a list on the record are you taking this in to acocount? as an example: [CODE]<#if (record.item?size > 0)> <table class="padded-table" width="100%"><#list record.item as item> <#if item_index==0> <tr> <td class="tdheader">${item.item@label}</td> <td class="tdheader">${item.quantity@label}</td> <td…
-
Maybe you'd have to look at the items returned and manually ascertain the quantities?
-
I am not 100% sure what you're looking at but... If you are in a list screen such as transactions --> Sales --> Fulfill Sales Order --> List take a look in the bottom right you should see a "customise View" button. If you're in an actual transaction form Transactions --> Sales --> Fulfill Sales Order you shoudl see at the…
-
hmm, interesting I don't see "Transactions > Sales > Bill Sales Order" wonder if it's a role or localisation thing? Hopefully my answer still helps in a general way. ;)
-
That is Exactly what I needed. Thanks. I swear I searched for that function or anything like it but did not find it. Sometimes the answer is just too simple. Thanks again, -Sean Excellent! Care to share how you accessed the fields below the tabs once you had the tabs in your sights? ;)
-
Depending on where you are trying to do this, presuming you have access to the nlobjForm object, you can use getTabs() which according to the help "Returns an array of nlobjTab objects containing all the tabs in a form." I guess once you have the tabs you can then perform a getTab(name) which will give you an nlobjTab…
-
I'm wondering why the 3rd party supplier is saying page_init() is effecting it? If they have their own code that runs in page_init maybe you can extend the onload to include the function they are expecting to fire by shifting it to a uniquely named function and adding it to the onload that way? Also... Was the plugin sold…
-
Firstly, if you always want that email to say Quote can you just not code it that way rather than use a CRMSDK tag? Failing that... This may not be the best way but I think it should work for you (based on my understanding having read the help section, sorry no time to test for you) You can reference a custom field like…
-
To add the values returned from the search you would need / need to : 1. Add a Custom Field to the parent record. 2. Use the Parent Record ID to load the parent record in the script above 3. Update the loaded Parent Record Custom Field with the detail from the search. 4. Save the Parent Record. Things I'm thinking you need…
-
Not quite sure on the context of this, are you wanting the field value(s) to carry on the parent record or are you just wanting the value(s) to be visible on the screen when viewing the parent record? In either scenario as a starter... Presumably the child record has the parent record ID stored against it so you should be…
-
Just when I thought it was safe to get back in the water... Anyone shed light on why I can create the PDF as a file in the file cabinet but not have it open in a new window with the code below please? var file = nlapiXMLToPDF(msgbody); var fileCreated = nlapiCreateFile('DataMatrix.pdf', 'PDF', file.getValue());…
-
Thanks for the reply, before I saw this I tried replacing the div's with spans, the formatting was not how I wanted it (no surprise) BUT it did produce a PDF with the datamatrix content as required! So I wish I'd had that knowledge earlier! :cool: Next step to have the text below the DM formatted vertically. I have to…
-
I've abandoned (for now) my original piece of work and now working with a much smaller XML data set. The string looks like this: <?xml version="1.0" ?> <!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd"> <pdf> <head></head> <body> <barcode codetype="datamatrix"…
-
As an aside I'd steer away from referencing the column and index and use the name since it's clearer and means you don't accidentally mess up later if you add additional columns var searchResult = searchRecords[i]; var theid = searchResult.getValue('entityid'); means you can dispense with var columns =…