简体   繁体   English

使用 Suitescript 2.0 加载自定义表单

[英]Load Custom form using Suitescript 2.0

There is a requirement to load custom form and access the form details from the CustomForm record and display on PDF generating via Suitescript.需要加载自定义表单并从 CustomForm 记录访问表单详细信息,并在通过 Suitescript 生成的 PDF 上显示。 Unable to do it via SuiteScript 1.0无法通过 SuiteScript 1.0 执行此操作

Use below code to the following:使用以下代码执行以下操作:

    require(['N/render','N/record'],
    function(render, record) {
        function loadForms(){
            var formRec = record.load({type: 'custform', id: formId});
            var formType = formRec.getValue({fieldId: 'formtypename'});
        }
    }
    loadForms();
});

Tested in NetSuite-Debugguer在 NetSuite-Debugguer 中测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM