My Stuff
Comments
-
Hi Scottr, Could u explain me the scenario in detail where u want to achieve this. So that i can help u.
-
Hi sheetal, Just search "Dynamically Add a Button in User Event Scripts" in suite answers or click on this link: https://netsuite.custhelp.com/app/answers/detail/a_id/19376/kw/Dynamically%20Add%20a%20Button%20in%20User%20Event%20Scripts if required enter your NetSuite username and password.
-
Yes sheetal we can filter using the below syntax, filter[0]=new nlobjSearchFilter('trandate', null, 'within', 'lastfiscalyeartodate');
-
Cheers Ben!!!!
-
Hi Ben, if you are using saved search, first you have to get all columns and then you can get the column value. Refer the below code. var arrSearchResults = nlapiSearchRecord('transaction','customsearch_ass_inc_midras_total_2',null, null); //Looping through each result found for(var i = 0; arrSearchResults != null && i…
-
Hi JP, My suggestion will work only for the type 'inlineeditor'.
-
Hi j.j, To check the status of scheduled script- i will go with george's suggestion. To know whether the script has completed- I will suggest you to use nlapiSendEmail(). I am just suggesting you to do that "enable and disable some buttons and fields" in scheduled script and finally send an email from scheduled script to…
-
Hi Sheetal, refer this link to create bar chart in suitelet https://developers.google.com/chart/interactive/docs/gallery/columnchart
-
Hi mchen, Instead of nlapiLoadSearch() you just try nlapiSearchRecord('transaction',searchid(number),null,columns(you want to show in portlet.
-
Hi mchen, you can do this in user event beforeload script deployed in item fulfillment. try this code function BeforeLoad(type, form) { if(type=='view') { var recId=nlapiGetRecordId(); var recType=nlapiGetRecordType(); var recLoad=nlapiLoadRecord(recType,recId); var status=recLoad.getFieldValue('shipstatus');…
-
Hi snebes, I agree with ur point. But meta will work only if we do print by xml to pdf. We can't add password in nlapiPrintRecord() which will print the transaction pdf layout. If im wrong correct me. ____________ Pradeep R
-
Hi, I solved this problem by using suitelet(available without login) and it has a field password and submit button. If user enters correct password and submits the form, then i am showing the print using nlapiPrintRecord() in the same window. _____________ Pradeep R
-
Hi iecpradeep, Have you got solution for this??
-
Hi Puja Roy, Try this code. var sublist=form.getSubList('item'); sublist.addField('custpage_items', 'select', 'Test Items', null, null); ________________ Pradeep R
-
Hi mchen, Try this code function lowerapproval() { var recid = nlapiGetRecordId(); nlapiSubmitField('returnauthorization', recid, 'status', 'B'); } ___________ Pradeep R
-
add the function lowapproval() in client script (without specifying the function name in any of the event) and add form.setScript(clientscriptId); before form.addButton.
-
Hi Matt, Try this code taskobj = nlapiLoadRecord('task', recId); taskobj .setFieldValue('assigned', 2097844); taskobj .setLineItemValue('contact', 'company', 1, 145811); taskobj .setLineItemValue('contact', 'contact', 1, 2813753); nlapiCommitLineItem('contact'); nlapiSubmitRecord(taskobj ,true,false); _____________ Pradeep…
-
Hi mchen, Give some more details about the task you want to accomplish .. So that i can help you..
-
Hi mchen, the id for status is "orderstatus" not "status" Now try the below code function lowerapproval() { var recid = nlapiGetRecordId(); nlapiSubmitField('returnauthorization', recid, 'orderstatus', 'B'); } ___________ Pradeep R
-
Hi mchen, What i understood is u need to disable the button once it is clicked. This can be achieved by the below code. What i did is i added a check box like u in the transaction and im just making it True once the button is clicked and reloading the page, so that the button is disabled.I deployed this script in Sales…
-
Hi Ben, U just add the type in aftersubmit function and an if condition inside the function. function afterSubmit(type) { if(type!='delete'){ var NewRec = nlapiGetNewRecord(); var NewRecID = NewRec.getId(); var WpaRec = nlapiLoadRecord('customrecord_wpa_20', NewRecID); var stFirstName =…
-
Hi Latha, https://netsuite.custhelp.com/app/answers/detail/a_id/20358/kw/xml%20to%20pdf read the above link to grasp some idea to make custom print. _____________ Pradeep
-
Hi Ben, In which event/script are u trying this?? ____________ Pradeep
-
Rayzu, have u checked whether the role has custom Record full access. __________ Pradeep
-
Ray, R u trying to attach custom record in a file or a file in custom record??? ________ Pradeep
-
Hi Andry Wang, var file = nlapiLoadFile(446); var myCssUrl = nlapiEscapeXML('https://system.netsuite.com' + file.getURL()); xml += "<link href='"+myCssUrl +"' />"; try the above one or xml += "<link type="stylesheet" src='"+myCssUrl +"' />"; ____________________ Pradeep Rajkumar S
-
Hi Andry Wang, just try this if u know the file id, pass in nlapiLoadFile. var file = nlapiLoadFile(fileId); var myCssUrl = 'https://system.netsuite.com' + file.getURL(); ___________________ Pradeep Rajkumar S
-
Hi Patricia, we cannot compare two dates in date format '15/06/2013' so we have to get the time of the dates and then we can compare two date. Check with my code and revert me back. Pradeep.
-
sry nlapiStringToDate its not nlapiStringtoDate var sforderdate='20/4/2013' var sforderdate_string=nlapiStringToDate(sforderdate); var sforderdate_time=sforderdate_string.getTime(); var date1='15/4/2013'; var date2='30/6/2013'; var date1_string=nlapiStringToDate(date1); var date2_string=nlapiStringToDate(date2); var…
-
Hi Tavanpat, convert the date to nlapiStringtoDate() you will get value as 31 Jul 2013 0:00 in that get the time. u can compare two dates with time. for example, var sforderdate='20/4/2013' var sforderdate_string=nlapiStringtoDate(sforderdate); var sforderdate_time=sforderdate_string.getTime(); var date1='15/4/2013'; var…