My Stuff
Please note that on Friday, September 19, 2025, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Comments
-
Thanks Evan. I achieved through validate line. Regards, Ravi.
-
Hi Yang, Thanks for quick reply. I tried the mail merge tag. But the company name and logo is not printed. Do i need to add any other supporting tag to display the company logo ? Thanks, Ravi
-
Yes I am sure that, that field in on the page.
-
I tried using alert(nlapiGetFieldValue('custrecord229')). But even then it is not returning anything. Just to make sure I changed my alert to : alert("before"+alert(nlapiGetFieldValue('custrecord229'))+"after"); If I select something, I get it as before101after But if I dont select anything it returns: beforeafter
-
Now try the following when the field is set to blank: alert((nlapiGetFieldValue('custrecord229') == '')) Thanks, Yang It returned 'true' in the alert when the field is blank. When something is selected, it returns true.
-
AfterSubmit is a server-side script. There's no window to close. Try doing it on onSave on client-side. The first thing which I found out is 'window.close()' works only with pop-up windows. Luckily the window which I want to save and close is a pop-up window. I tried giving the window.close in Save Record Function in…
-
What mhw is saying is true. The style of the fields are not saved. So I think I should workaround the way which mhw has suggested. I have also requested an enhancement for this feature. The request number being, 158979
-
Latha, Can you specify the field types of the fields which you have used? From my assumption, 'custrecordalh_dateupdated ' should be a field of type 'Date'. Likewise can you tell the field type of other fields which you have used?
-
Thanks for that tip Oliver. That really helped me. But the main aim for which I thought of using getValue(), instead of loading the records and using getFieldValue() is to save the usage. Since my client script can handle only 1000 units, I want to optimize my code. My rough assumption of usage which I am using with both…
-
The basic thing in which I went wrong is "Netsuite doesnt support DOM approach". Using DOM approach(opener object) was easy to get values from one screen to another. Since this wasn't supported by netsuite, I followed some workaround to achieve this. The second silly mistake which I did was: There was no 'Name' field, but…
-
Thanks for your reply Yang. I will enter an enhancement request for this. I have another doubt. I have set a field to be hidden through customization, but I want this to be seen on the view mode. Can I set the display type to visible. Since my fields added through beforeLoad does not store any value, I thought of showing…
-
It was my scripting mistake. Instead of using 'nlapiRemoveSelectOption(..)' in the second list, I used 'nlapiRemoveSelectOption(..)' in the first list. On changing the internal id to refer to the second list, my issue got solved:) I have another issue. I am hiding a field in the beforeLoad using:…
-
Thanks Evan, I just now went through the post of Tim at this link : https://usergroup.netsuite.com/users/showthread.php?t=3213&page=2&highlight=nlapiGetFieldValue+multiple+select I changed my code like this: function displayValues(type,name) { if(name == 'custrecord_level_2_item')//List/Record { var level2_item =…
-
You cannot call nlapiScheduleScript from client code. To solve your problem we need more information. Where are you loading the data from? An external service or from NetSuite? If it's NetSuite can you break the search up into different sections using filters and load the data in several requests? This is my scenario: I…
-
Evan, Thank you very much. Since i am calling the function on change of ''custrecord_select_an_item_new', and at the end of the script i am changing the value of 'custrecord_select_an_item_new' itself, the loop was running infinitely. So I changed the field: Instead of if(name == 'custrecord_select_an_item_new') it is now:…
-
Dinko, The thing which you have told can be done if I use 'nlapiGetFieldValue()' instead of 'nlapiGetFieldText()'. But that is not what i want. I have two custom lists, one with items say A,B,C and D. I have another custom list with values A,E,F,G. If we create the list through customization, netsuite assigns the internal…
-
Larsen, Thank you. Your answer really helped me. The only thing which i had to change is, I gave the 92 within quotes ( '92'). So it was something like this: var vals = new Array('92'); nlapiSetFieldValue('custrecord147',vals); I do have a couple of questions: You have told to add items to the array to select more than one…
-
Larsen, I am not able to get your solution very clearly. Just modified the way it looks below: function addUsingSuitelet() { if ( request.getMethod() == 'GET' ) { var form = nlapiCreateForm('Simple Form'); var createNewReqLink = form.addField('custpage_new_req_link','inlinehtml', null, null,'machine');…
-
I found out which one I was missing. To set the values to a multiselect field, I have to use setFieldValues(...) So instead of record.setFieldValue('custrecord_selected_items_1',child_items1); I used: record.setFieldValues('custrecord_selected_items_1',child_items1); and it worked out:) May be if it is current object,…
-
I have problems in trying the method which you have told: Here is my script: var searchresults = nlapiSearchRecord('customrecord239'); for(var i=0 ; searchresults != null && i<1 ; i++) { var items_mapped = nlapiLoadRecord(searchresults[i].getRecordType(),searchresults[i].getId()); var parent_items =…
-
My error got resolved. I am using a HTML suitelet. i have declared the type of the button to be 'submit'. Instead when i declared the type to be 'button', I dint get any error. Instead of using <input type='submit' value='Search' title='Search' ' language='javascript' onclick='search_keyword()' />"; i used: <input…
-
Now i found out a way to embed my custom HTML to a suitelet. I did it through 'inlinehtml'. Here is a sample code, it might help others. function demoSimpleForm(request, response) { if ( request.getMethod() == 'GET' ) { var form = nlapiCreateForm('Simple Form'); <strong>var html =…
-
Oliver, As far as I went through the suite script guide, we can set already existing items in the list using nlapiSetFieldValue() and nlapiSetFieldText(). But in my case, I need to insert a new item which is not at all existing in that list. Say for example, I need to insert an item named 'pen' in the list which contains…
-
Ravi - Use any of the SuiteScript UI objects to represent NetSuite-looking fields, sublists, tabs, etc. You can call nlapiCreateForm(...) to return a nlobjForm object, and from there, you can add elements to your form/Suitelet page that will look like NetSuite elements. Suitelets allow you to use your own custom HTML in…
-
Thanks for your reply Steve. But your reply seems to be bit confusing. My question is very simple. We can add a button in the form by the following method: form.addButton('save_search','Save Search',onClick());//'form' is the name of the form Like wise can we create a button inside a tab? Generally the function syntax to…
-
Steve, I think now i got it correctly. i was able to render a button inside a subtab through 'inlinehtml'. I did it as follows. var html = form.addField('custpage_new_req_link','inlinehtml', null, null,'custpage_new_tab');//'custpage_new_tab' is the tab var a_sample ='<div align=center><input type="button"…
-
Thanks Bushra. It now working fine!
-
I've done this a lot. The solution is to use an HTML field and then set the class to the NetSuite button class you want it to look like (yellow button or gray button). I'm away from my computer and will post some code when I get back. It's actually a very simple solution. Thanks for your reply. But it will be more useful…
-
Thanks Yang, Now, i can able to link this to UI.
-
Actually Job is a standard form, which have all the item details what we selling to a customer, media entries are group of category of items under a job. anyway i think i got the slution to retrieve these. Thanks for your Input. I don't use Jobs, so I'm not sure what "Media Entries" are. Is this a custom tab? Are these…