My Stuff
Comments
-
The correct way to do this is to use Filter Expressions, whereby you specify the filter criteria using arrays rather than the nlobjSearchFilter object. Which can be used with nlapiSearchRecord or nlapiCreateSearch. From Help: var filterExpression = [ [ 'trandate', 'onOrAfter', 'daysAgo90' ], 'or', [ 'projectedamount',…
-
Agree this is definitely an area that needs more customisation flexibility. Out of interest is the field on the child record that references the parent set as mandatory? and if it is checked does this hide the remove link?
-
Actually thats a very good point ! and I think may be related new behaviour of 2014.1 of custom fields / custom records. So I am guessing on your custom record you have a field that links to the assembly which is set as Record As Parent. If you look at this custom field definition and look at the Validation & Defaulting…
-
So I guess OniNaKami solution is easiest in this circumstance although I would argue, syntactically its a lot easier to read the filter expressions, and it gives you more flexibility (although presumably there is another undocumented feature to add parenthesis :) ). So that leads to my second question .setOr is not…
-
I think its just a case of you are getting the internalid of the group rather than the text (label) associated with it... So try using: searchResults[0].getText('item',null,'group')
-
I think the error message here isn't API governance related but constraints that NetSuite applies to ensure run away scripts (infinite loops for example) don't run indefinitely. I would guess there are two potential causes: 1) The calculations you perform for the roll up of the returned data 2) If you are returning the…
-
So short answer is no you can't have more than one call to nlobjForm.addSubmitButton() on the form, although as you have observed if you do call it multiple times with different labels it looks a little like a combo submit button, but doesn't really work. So your only real option is to use client script to trigger the…
-
Can you post the code where you specify the search columns, as this may help diagnose the issue.
-
Assuming you can add a custom field to an assembly build (I have looked at assembly build records for a while) you could: 1) Add a custom transaction body field to the assembly build of type multi select of your custom record. 2) Set this field with the ids of the custom records you have created 3) After Submit now has…
-
Difference between beforeSubmit and afterSubmit? This is actually a very good question and I am sure there is probably some good NetSuite documentation around this in Suite Answers. beforeSubmit is very good for if you wish to apply business logic based on fields on the record. e.g if field 1 = x and field 2 = y lookup a…
-
Hi Joe, I believe if you hide all of the fields that are contained within the group, the group heading will disappear and vice versa. To hide/show the fields you will need to use the undocumented function nlapiSetFieldDisplay(fieldId,showBool) Crucially this approach doesn't rely on direct DOM manipulation which arguably…
-
Currently there is no standard way to dynamically refresh a suitelet sublist without reloading the page. This is partly because the sublist data is queried before the page is rendered (rather than an ajax request being made on page load). To mimick this behaviour you can: 1) Add a Tab to the form object 2) Add your…
-
So assuming that the custom field custrecord_sea_hu_wo is a list/record type you want to use: filt.push(new nlobjSearchFilter('custrecord_sea_hu_wo',null,'anyof','@NONE@'));
-
I think this question was asked in two different places other thread
-
It really depends how you want to do it: a) send the data you want to zip out to a third party api in a web service request using nlapiRequestURL, which returns the zipped contents b) obtain a javascript library such as http://stuk.github.io/jszip/ and include that in your suitelet as a library which you can use in your…
-
Hmm. Whilst you have 200 lines or more on your quote, it doesn't look as though the business logic you are performing is very complex, and should use anywhere near the 1000 governance. The fundamental issue with your current approach is that for every line you are performing an individual search of the classification by…
-
So first thing to suggest when developing client script is to use Firefox or Chrome rather than Internet Explorer, as it generally gives better error messages. The error you have error "function is not defined" is fairly and normally indicates a syntax error. Looking at your script I suspect the error comes from the point…
-
Okay so a couple of suggestions: 1) read up on using the debugger with your user event (it will allow you to review the record data through the UI, and more importantly stop the runtime and run tests at the point your code is failing. 2) use nlapiLogExecution to log the value you are getting for department to verify…
-
Just another thought you may want to look at creating a script deployment using nlapiCreateRecord. I believe this was added in 2013.2 but I am pretty sure will ensure it isn't scheduled immediately. The code below is a cut n paste directly from netsuite help, you probably also want to review the supported records to see if…
-
I would agree with Olivier that server side NetSuite processes sequentially. I would be inclined to log the JSON output of the variables in execution logs: nlapiLogExecution('debug','result of global search',JSON.stringify(b)); and assign the output of nlapiLoadRecord to a variable and log throughout the loop, I would be…
-
Hi Evan, I think you need an additional parameter, the third parameter should be set to true or false, the fourth parameter being the line number: nlapiSetLineItemMandatory(type,fldnam,required,linenum)
-
From memory (and a very vague one at that) its a peculiarity in the way the page is submitted. After you submit a step in the assistant (using the next button) you need to use nlobjAssistant.sendRedirect which redirects the page back to the assistant. If you review the UI Object Assistant Code Sample you will see a call to…
-
I think this behaviour may have changed since the original issue was raised, and this issue may now be related to the 2014.2 release. I see the same behaviour in an assistant that I know previously worked so will be raising a support case.
-
Thanks for replying back to the group, did NetSuite acknowledge this as a bug and if so do you have a defect no?
-
Unfortunately the nlapiCreateReportForm works quite differently from nlapiCreateForm and from building html yourself so I don't believe the prior post will work. The report definition functionality doesn't offer you an capabilities to specify filters, or to display additional buttons or crosslinks, which is quite…
-
We have occasionally seen this (not for a long while) which can sometimes be resolved by going into the target account editing the custom record in question and saving the definition.
-
Hi, The easiest way of doing this is to create or load an instance of the custom record and query the fieldid rectype. This only works for custom records, and negates the need to hold hard coded constants for the record types. This is also very important if the custom record is part of a suitebundle as the rectype number…
-
Hi Rachel If you run config you can change template on page 2 of config. Payroll Menu-Setup>Configuration or Config Wizard. Template 150049 has TIL and annual leave balances displayed..
-
I would also add you should review any Suite bundles and Integrations that currently work with time bills (existing time records), and check with Partners / Developers that functionality will continue to work once transitioned. From a suitescript perspective: [LIST] [*]You can no longer directly update a time record,…
-
I believe prior to 2015.1, this was because once enabled it couldn't be reversed, and it also enforces rules that didn't apply to the time previously; the most fundamental being this is was not possible to edit a time record once it had been approved even as administrator. I believe this has also changed in 2015.1 as long…