ディスカッション

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.

エンティティリストをSuiteletセレクトフィールドに動的に供給する

編集済:Jun 2, 2025 2:48PM SuiteCloud / カスタマイズ

適用

製品:  2022.1

シナリオ

ユーザーはSuiteletに別のフィールドからのエンティティリストを取得するセレクトフィールドを実装したい。このシナリオでは、リストはカレンダーイベントレコードから取得されています。

カレンダーイベントレコードから利用できるエンティティリストは、以下のレコードタイプになります:

  • 顧客
  • パートナー
  • プロジェクト
  • ベンダー

制限:下記のSuiteAnswers記事により、getSelectOptions()関数は最初の1,000個のみを返します:

  • SuiteScript 1.0の場合 - SuiteAnswers記事10263:nlobjField
  • SuiteScript 2.0の場合 - SuiteAnswers記事45152:N/record Module

解決策

カレンダーイベントレコードからエンティティリストを取得するには、getSelectOptionsメソッドを使用出来ます。

SuiteScript 1.0の場合:

function suiteletEntityList(request, response){
      if (request.getMethod() == 'GET') {
            //Create a Form as the container
            var form = nlapiCreateForm('frm_entity_listing');
            //Add select field
            var fld = form.addField('entitylist','select','Entity List',null);
            //Create a calendar event record
         
タグ付けされた:

ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第2四半期 (4月~6月 2026)

今週のリーダー

今月のリーダー

歴代リーダー