ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
SuiteScript 2.0クライアントスクリプトを介して、子会社(メイン)、クラス、および部門のサブリストフィールドを入力する
適用
製品: NetSuite 2023.1
シナリオ
仕訳帳入力にて子会社(メイン)、クラス、および部門のサブリストフィールドを入力する時にエラーは出ます。
解決策
この問題は、他のフィールドをスレイブしているフィールドの標準のエラーです。そのため、setValueとsetCurrentSublistValueを呼び出す時に、オブジェクトパラメータ(ignoreFieldChange, fireSlavingSync)の追加が必要です。 以下のサンプルクライアントスクリプトは、エラーを回避するフィールド設定の方法です。
require(['N/currentRecord', 'N/search', 'N/log'], function(currentRecord, search, log) { var curRec = currentRecord.get(); curRec.setValue({ fieldId: 'subsidiary', value: '1', ignoreFieldChange:false, fireSlavingSync: true }); curRec.selectNewLine({ sublistId: line }); curRec.setCurrentSublistValue({ sublistId: 'line', fieldId: 'account', value: '238', ignoreFieldChange:false, fireSlavingSync: true }); curRec.setCurrentSublistValue({ sublistId: 'line', fieldId: 'debit', value: '1000', ignoreFieldChange:false, fireSlavingSync: true }); curRec.setCurrentSublistValue({ sublistId: 'line', fieldId: 'credit', value: 0, ignoreFieldChange:false, fireSlavingSync: true }); curRec.setCurrentSublistValue({ sublistId: 'line', fieldId: 'department', value: 7, ignoreFieldChange:false, fireSlavingSync: true }); curRec.setCurrentSublistValue({ sublistId: 'line', fieldId: 'class', value: 1, ignoreFieldChange:false, fireSlavingSync: true }); curRec.setCurrentSublistValue({ sublistId: 'line', fieldId: 'memo', value: 'test Testing', ignoreFieldChange:false, fireSlavingSync
タグ付けされた:
0