/* 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. Django Web补充

    一.今日内容 一.Django ORM连表操作 Q,F 二.Form表单验证 面向对象 正则 三.Session框架 面向对象 cookie toanado扩展 二.Django ORM一对多数据创建 ...

  2. OPTIMIZE TABLE 小解

    首先看一下语法:  OPTIMIZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE tbl_name [, tbl_name] ... 我们知道mysql存储引擎里面的数据和索 ...

  3. 锋利的js前端分页之jQuery

    大家在作分页时,多数是在后台返回一个导航条的html字符串,其实在前端用js也很好实现. 调用pager方法,输入参数,会返回一个导航条的html字符串.方法的内部比较简单. /** * pageSi ...

  4. 日志处理之logging模块

    日志级别: 'CRITICAL': CRITICAL, 'ERROR': ERROR, 'WARN': WARNING, 'WARNING': WARNING, 'INFO': INFO, 'DEBU ...

  5. 并发下常见的加锁及锁的PHP具体实现-转载

    并发下常见的加锁及锁的PHP具体实现 http://www.cnblogs.com/scotoma/archive/2010/09/26/1836312.html 在最近的项目中有这样的场景 1.生成 ...

  6. python之路-Day5

    1.列表生成式,迭代器&生成器 列表生成式 我现在有个需求,看列表[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],我要求你把列表里的每个值加1. 普通版 a = [0,1,2,3 ...

  7. JS实现的随机显示图片

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xht ...

  8. CocosCreator反射在Android中的使用

    CocosCreator反射在Android中的使用 新建一个CocosCreator项目,然后点击构建 构建完成之后,即可用AndroidStudio打开构建的项目 使用AndroidStudio打 ...

  9. WPF简单导航框架(Window与Page互相调用)

    相当多的WPF程序都有着丰富的页面和功能,如何使程序在不同页面间转换并降低资源占用,选择适合自己的导航框架就很重要了.最近花了一点时间做了一个简单的导航框架,并在这个过程中对Window.Page.U ...

  10. iOS中几种常用的数据存储方式

    自己稍微总结了一下下,方便大家查看 1.write直接写入文件的方法 永久保存在磁盘中,可以存储的对象有NSString.NSArray.NSDictionary.NSData.NSNumber,数据 ...