/* from: http://blog.csdn.net/levin_rain/article/details/8571444 */

' Core SuiteScript Functions '
function nlapiCreateRecord(type) { ; }                                          ' instantiate a new record from the system. '
function nlapiCopyRecord(type, id) { ; }                                        ' instantiate a new record using values from an existing record. '
function nlapiLoadRecord(type, id) { ; }                                        ' load an existing record from the system. '
function nlapiSubmitRecord(record, doSourcing, ignoreMandatoryFields) { ; }     ' submit a record to the system for creation or update '
function nlapiDeleteRecord(type, id) { ; }                                      ' delete a record from the system. '
function nlapiSearchRecord(type, id, filters, columns) { ; }                    ' perform a record search using an existing search or filters and columns '
function nlapiSearchGlobal(keywords) { ; }                                      ' perform a global record search across the system '
function nlapiSearchDuplicate(type, fields, id) { ; }                           ' perform a duplicate record search using Duplicate Detection criteria. '
function nlapiTransformRecord(type, id, transformType, transformValues) { ; }   ' create a new record using values from an existing record of a different type. '
function nlapiLookupField(type,id,fields) { ; }                                 ' fetch the value of a field or set of fields for a record. '
function nlapiSubmitField(type,id,fields,values,doSourcing) { ; }               ' submit the values of a field or set of fields for an existing record. '
function nlapiResolveURL(type, identifier, id, editmode) { ; }                  ' resolve a URL to an object in the system. '
function nlapiSetRedirectURL(type, identifier, id, editmode, parameters) { ; }  ' redirect the user to a page. '
function nlapiRequestURL(url, postdata, headers, callback) { ; }                ' request a URL to an external or internal resource. '
function nlapiGetContext() { ; }                                                ' return context information about the current user/script. '
function nlapiGetUser() { ; }                                                   ' return the internalId for the current user. '
function nlapiGetRole() { ; }                                                   ' return the internalId for the current user's role. '
function nlapiGetDepartment() { ; }                                             ' return the internalId for the current user's department. '
function nlapiGetLocation() { ; }                                               ' return the internalId for the current user's location. '
function nlapiGetSubsidiary() { ; }                                             ' return the internalId for the current user's subsidiary. '
function nlapiGetRecordType() { ; }                                             ' return the recordtype corresponding to the current page or userevent script. '
function nlapiGetRecordId() { ; }                                               ' return the internalId corresponding to the current page or userevent script. '
function nlapiSendEmail(from, to, subject, body, cc, bcc, records, files) { ; } ' send out an email and associate it with records in the system. '
function nlapiSendFax(from, to, subject, body, records, files) { ; }         ' send out a fax and associate it with records in the system. '
function nlapiGetFieldValue(fldnam) { ; }                             ' return the value of a field on the current record on a page or userevent/suitelet script. '
function nlapiSetFieldValue(fldnam,value,firefieldchanged,synchronous) { ; }    ' set the value of a field on the current record on a page or userevent/suitelet script. '
function nlapiGetLineItemValue(type,fldnam,linenum) { ; }                       ' return the value of a line item field on the current record on a page or userevent/suitelet script. '
function nlapiSetLineItemValue(type,fldnam,linenum,value) { ; }                 ' set the value of a line item field on the current record on a page or userevent/suitelet  script. '
function nlapiGetLineItemCount(type) { ; }                                      ' return the number of line items in a line item group on the current record on a page or userevent/suitelet script. '
function nlapiInsertLineItem(type, line) { ; }                                  ' insert and select a new line into the line item group on a page or userevent/suitelet script. '
function nlapiRemoveLineItem(type, line) { ; }                                  ' remove the currently selected line from the line item group on a page or userevent/suitelet script. '

' Client SuiteScript Functions '
function nlapiSetFieldText(fldnam,txt,firefieldchanged,synchronous) { ; }       ' set the value of a field on the current record on a page using it's label. '
function nlapiGetFieldText(fldnam) { ; }                              ' return the label of a select field's current selection on the current record on a page. '
function nlapiSetCurrentLineItemValue(type,fldnam,value,firefieldchanged,synchronous) { ; } ' set the value of a field on the currently selected line. '
function nlapiSetCurrentLineItemText(type,fldnam,txt,firefieldchanged,synchronous) { ; }    ' set the value of a field on the currently selected line using it's label. '
function nlapiGetCurrentLineItemValue(type,fldnam) { ; }                        ' return the value of a field on the currently selected line. '
function nlapiGetCurrentLineItemText(type,fldnam) { ; }                         ' return the label of a select field's current selection on the currently selected line. '
function nlapiGetLineItemText(type,fldnam,linenum) { ; }                        ' return the label of a select field's current selection for a particular line. '
function nlapiGetCurrentLineItemIndex(type) { ; }                               ' return the line number for the currently selected line. '
function nlapiDisableField(fldnam,val) { ; }                                    ' disable a field. '
function nlapiDisableLineItemField(type,fldnam,val) { ; }                       ' disable a field in a line item group. '
function nlapiRefreshLineItems(type) { ; }                                      ' refresh the line item table. '
function nlapiSelectLineItem(type, linenum) { ; }                               ' select an existing line in a line item group. '
function nlapiCommitLineItem(type) { ; }                                        ' save changes made on the currently selected line to the line item group. '
function nlapiCancelLineItem(type) { ; }                                        ' cancel any changes made on the currently selected line. '
function nlapiSelectNewLineItem(type) { ; }                                     ' select a new line in a line item group. '
function nlapiIsLineItemChanged(type) { ; }                                     ' returns true if any changes have been made to a line item group. '
function nlapiInsertSelectOption(fldnam, value, text, selected) { ; }           ' Adds a select option to a scripted select or multiselect field. '
function nlapiRemoveSelectOption(fldnam, value) { ; }                           ' Removes a select option (or all if value is null) from a scripted select or multiselect field. '
function nlapiInsertLineItemOption(type, fldnam, value, text, selected) { ; }   ' Adds a select option to a scripted select or multiselect line item field. '
function nlapiRemoveLineItemOption(type, fldnam, value) { ; }                   ' Removes a select option (or all if value is null) from a scripted select or multiselect line item field. '

' Server SuiteScript Functions '
function nlapiGetNewRecord() { ; }                                              ' return an record object containing the data being submitted to the system for the currenr record. '
function nlapiGetOldRecord() { ; }                                              ' return an record object containing the current record's data prior to the write operation. '
function nlapiCreateError(code,details,suppressEmail) { ; }                     ' create an nlobjError object that can be used to abort script execution '
function nlapiCreateForm(title, hideNavBar) { ; }                               ' return a new form that can be used to build a custom page. '
function nlapiCreateList(title, hideNavBar) { ; }                               ' return a new list that can be used to build a custom page. '
function nlapiLoadFile(id) { ; }                                                ' load a file from the file cabinet and return the contents as a String (base-64 encoded for binary files). '
function nlapiCreateFile(name, type, contents) { ; }                            ' instantiate a file object (specifying the name, type, and contents which are base-64 encoded for binary types.) '
function nlapiMergeRecord(id, baseType, baseId, altType, altId, fields) { ; }   ' perform a mail merge operation using any template and up to 2 records and returns an nlobjFile with the results. '
function nlapiPrintRecord(type, id, format, properties) { ; }     ' print a record (transaction) gievn its type, id, and output format. '
function nlapiLogExecution(type, title, details) { ; }                          ' create an entry in the script execution log. '
function nlapiScheduleScript(script, deployment, parameters) { ; }              ' queue a scheduled script for immediate execution and return the status QUEUED if successfull. '
function nlapiAttachRecord(type1, id1, type2, id2, properties) { ; }            ' attach a single record to another with optional properties. '
function nlapiDetachRecord(type1, id1, type2, id2, properties) { ; }            ' detach a single record from another with optional properties. '

' Helper SuiteScript Functions '
function nlapiStringToDate(str) { ; }                                           ' convert a String into a Date object. '
function nlapiDateToString(d, formattype) { ; }                                 ' convert a Date object into a String using the current user's date format preference or an optional format type (date|datetime|timeofday). '
function nlapiAddDays(d, days) { ; }                                            ' add days to a Date object. '
function nlapiAddMonths(d, months) { ; }                                        ' add months to a Date object. '
function nlapiFormatCurrency(str) { ; }                                         ' format a number for data entry into a currency field. '
function nlapiEncrypt(s) { ; }                                                  ' encrypt a String using an asymetric encryption algorithm. '
function nlapiEscapeXML(text) { ; }                                             ' escape a String for use in an XML document. '
function nlapiStringToXML(text) { ; }                                           ' convert a String into an XML document. '
function nlapiXMLToString(xml) { ; }                                            ' convert an XML document into a String. '
function nlapiSelectValue(node, xpath) { ; }                                    ' select a value from an XML node using Xpath. '
function nlapiSelectValues(node, xpath) { ; }                                   ' select an array of values from an XML node using Xpath. '
function nlapiSelectNode(node, xpath) { ; }                                     ' select a node from an XML node using Xpath. '
function nlapiSelectNodes(node, xpath) { ; }                                    ' select an array of nodes from an XML node using Xpath. '

NetSuite API - SuiteScript API.js的更多相关文章

  1. 通过Web Api 和 Angular.js 构建单页面的web 程序

    通过Web Api 和 Angular.js 构建单页面的web 程序 在传统的web 应用程序中,浏览器端通过向服务器端发送请求,然后服务器端根据这个请求发送HTML到浏览器,这个响应将会影响整个的 ...

  2. ASP.NET Web Api vs Node.js Benchmark

    http://mikaelkoskinen.net/post/asp-net-web-api-vs-node-js-benchmark ASP.NET Web Api vs Node.js Bench ...

  3. List多个字段标识过滤 IIS发布.net core mvc web站点 ASP.NET Core 实战:构建带有版本控制的 API 接口 ASP.NET Core 实战:使用 ASP.NET Core Web API 和 Vue.js 搭建前后端分离项目 Using AutoFac

    List多个字段标识过滤 class Program{  public static void Main(string[] args) { List<T> list = new List& ...

  4. 使用HTML5的两个api,前端js完成图片压缩

    主要用了两个html5的 API,一个file,一个canvas,压缩主要使用cnavas做的,file是读取文件,之后把压缩好的照片放入内存,最后内存转入表单下img.src,随着表单提交. 照片是 ...

  5. Code Your First API With Node.js and Express: Set Up the Server

    How to Set Up an Express API Server in Node.js In the previous tutorial, we learned what the REST ar ...

  6. weather API 天气api接口 收集整理

    腾讯 http://sou.qq.com/online/get_weather.php?callback=Weather&city=南京 中国天气-weather.com.cn http:// ...

  7. API & Web API

    The follow content refer refers to: Baidu Baike                  : https://baike.baidu.com/item/api/ ...

  8. 高德地图 API JavaScript API

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm12.aspx ...

  9. Atitit.常用语言的常用内部api 以及API兼容性对源码级别可移植的重要性 总结

    Atitit.常用语言的常用内部api 以及API兼容性对源码级别可移植的重要性 总结 1.1. 要兼容的重要语言api1 1.2. 常用基础api分类 core api1 1.3. 比较常用的扩展库 ...

随机推荐

  1. Easyui表单之下拉列表的三级联动

    一.实现三级联动需要连接数据库 二.需要JSON数据的解析 三.需要Servlet类与界面相对应值的传递 1. 界面层需要的代码如下: <!DOCTYPE html> <html&g ...

  2. Python全栈开发day5

    一.lambda表达式 对于简单的函数,存在一种简便的表示方式,即:lambda表达式 1 2 3 >>> shaw = lambda x,y:x + y >>> ...

  3. Delphi2010中DataSnap高级技术(7)—TDSServerClass中Lifecycle生命周期三种属性说明

    Lifecycle 三种属性: Session.Invocation.Server 这三种属性都用在什么情况,有什么要注意的事项,Delphi2010中罕有说明. 如果乱用这三种属性,你的服务程序有可 ...

  4. asp.net Ajax和web services

    新建一个web服务 using System; using System.Collections.Generic; using System.Linq; using System.Web; using ...

  5. jquery指index

    $(selector).index(element) 获得元素相对于选择器的 index 位置.<ul>    <li><a href="#nogo" ...

  6. iOS Core Animation之CALayer心得

    使用CALayer的mask实现注水动画效果 Core Animation一直是iOS比较有意思的一个主题,使用Core Animation可以实现非常平滑的炫酷动画.Core animtion的AP ...

  7. git 常用操作

    查看某文件的某些行的变化历史: $ git log --pretty=short -u -L 2003,2005:Executor.cpp http://stackoverflow.com/quest ...

  8. 2013 acm 长沙网络赛 G题 素数+枚举 Goldbach

    题目 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3856 先预处理求出两个素数的和与积,然后枚举n-prime和n/pr ...

  9. jQuery scroll事件实现监控滚动条分页示例(转)

    这篇文章主要介绍了jQuery scroll事件实现监控滚动条分页简单示例,使用ajax加载,同时介绍了(document).height()与$(window).height()的区别,需要的朋友可 ...

  10. laravel中日志为daily时如何设置最大保存天数

    在laravel中,日志设置为daily时,默认保存七天的日志,超过则清除七天前的日志.可修改默认的设置,假如要保存30天的日志,则配置如下: 在配置文件config/app.php中添加如下代码: ...