/* 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. 如何在SqlServer中获取前端连接的IP地址,计算机名等信息

    在一些需求中,可能我们需要知道连接到SqlServer的前端程序的一些系统信息,比如前端连接的计算机名称,IP地址,什么时候开始请求连接,什么时候结束连接等信息. 如果你对SqlServer的系统函数 ...

  2. GDT 学习笔记逻辑地址和线性地址计算,因为是自学,所以这只是我的个人理解,不对的请大家指导。

    在 bochs 刚开始的时候 gdt 是未知的,需要通过实模式的16位代码段初始化 gdt 信息, 在 lgdt 指令之后,即可以使用程序自定义的 GDT 表了. 假如:gdt 初始地址为 0x7c7 ...

  3. vb.net字符串格式转为日期型

    vb.net字符串格式转为日期型  比如 "20080815" 转换为"2008-05-15"Dim a As Date  Dim s As String = ...

  4. angularJs基础

    AngularJs是为了克服Html在构建应用上的不足而设计的.Html是一门很好的为静态文件展示设计的声明式语言,但是要构建web应用的话就显得乏力了.所以我做了一些工作来让浏览器做我瞎向要的事. ...

  5. Button模板,样式

    一.button控件上的模板 <Button Content="Button" Height="25" HorizontalAlignment=" ...

  6. Mysql Innodb 间隙锁浅析

    间隙锁说明 innodb引擎自动使用间隙锁来避免幻读(原因是因为innodb采用单行锁+间隙锁组合而成的行锁,会锁定一个范围和记录本身的行),参数默认innodb_locaks_unsafe_for_ ...

  7. Types of Learning

    从四个角度大致总结一下不同类型的机器学习问题. 1. 按照输出空间的变化: 分类问题(二分类.多分类).回归问题 2. 按照输出的标记变化: 监督学习 与 非监督学习 与 半监督学习(树的识别) 与 ...

  8. jquery radio

    取radio的值: JS代码 $("input[name='radioName'][checked]").val(); 给radio 赋值, 选中值为2的radio: JS代码 $ ...

  9. Xcode导航栏不显示模拟器选择框ToolBar

    不显示ToolBar的小伙伴可能就是下面的样子: 全屏后就可以看到ToolBar,像下面这样: 刚开始还以为是模拟器没装,还傻不拉几的去下载模拟器,后来才发现,只要下面的操作即可显示 点击" ...

  10. JS编写背景图切换

    <!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8&qu ...