ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
NetSuite の始め方 | クライアント・スクリプト: sublistChanged(scriptContext)
NetSuite の始め方 | SuiteScript タイプの概要の記事のすべてのタイプのSuiteScriptについて説明したところで、様々なタイプのクライアント・スクリプトに焦点を当てます。sublistChanged関数は、ユーザーがレコードのサブリストと対話するたびにトリガーされます。これは、値の動的更新、入力の検証、計算のトリガーなど、サブリスト内の変更への応答に特に役立ちます。これには、次のようなアクションが含まれます。
- サブリストへの新規ラインの追加
- 既存の行の編集
- サブリストからのラインの削除
sublistChanged関数の簡単な例を次に示します。
/**
* @NApiVersion 2.x
* @NScriptType ClientScript
* @NModuleScope SameAccount
*/
define(['N/error','N/currentRecord'],
function(error,currentRecord) {
/**
* Function to be executed after page is initialized.
*
* @param {Object} scriptContext
* @param {Record} scriptContext.currentRecord - Current form record
* @param {string} scriptContext.mode - The mode in which the record is being accessed (create, copy, or edit)
*
*
*/
/**
Richard James Uri - SuiteCloud | WMS Tech | SuiteCommerce Advanced
----
- NetSuite Admin Corner | New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!
タグ付けされた:
0
