/* 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. 使用Eclipse上传/下载Git项目

    使用Eclipse上传/下载Git项目 前提: Eclipse已安装EGit插件 已拥有GitLab / GitHub / 其它Git托管服务账号 SSH方式 配置 配置Git信息 配置用户信息 Ec ...

  2. nagios二次开发(一)---开发思想

    NAGIOS现状   从nagios的官网http://www.nagios.org/及其它已经公开的资料,我们可以知道:在web UI层nagios只提供了给我们查看图形界面的操作,界面上有简单的启 ...

  3. highchart 动态刷新(可用于制作股票时时走势)

    最近项目中要求获取时时的cpu动态图,利用 highchart 可以轻松实现该功能,效果可在此地址查看:动态效果 代码如下: 页面 js 引用: <script src="你项目js的 ...

  4. table变色

    <!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content=& ...

  5. 重写form 表单的验证信息

    (function($) { var isformValidationPostBack=true; var isformValidation = false; $.extend({ formValid ...

  6. SQL Server 导入数据失败:无法在只读列“Id”中插入数据

    解决方案: 在数据库导入"选择源表和源视图"->点击对应表后的“编辑映射”按钮->勾选“启用标识列插入”->导入即可.

  7. jquery blockui 遮罩

    参考 : http://bookshadow.com/weblog/2014/09/26/jquery-blockui-js-introduction/ blockUI.html blockUI.ht ...

  8. oracle函数应用

    ----Oracle中的函数 oracle中函数的分类: --第一种:日期函数 --第二种: 字符函数 --第三种: 数学函数 --第四种: 转换函数 --第五种: 分析函数 ------------ ...

  9. [html]经验集

    禁止默认的右键菜单: window.document.oncontextmenu = function(){ return false;} WebBrowser 控件用法:(手动填充内容) // 首先 ...

  10. Unity(四)IocContainer 封装类库

    首先要在项目中安装Unity,通过NuGet搜索Unity. 1.定义接口 IDependencyResolver using System; using System.Collections.Gen ...