ディスカッション

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.

SuiteScript 1.0のクライアントスクリプト・Suiteletで注文書の在庫詳細ボタンを押下すると、アイテムサブリストラインをポップアップSuiteletで表示する

適用

製品:  NetSuite 2022.1



シナリオ

注文書 > アイテムサブリストラインの在庫詳細ボタンを押下すると、ポップアップSuiteletを表示します。



解決策

在庫詳細ボタンの押下では、在庫詳細のフォームを戻します。カスタムコード(クライントスクリプト)が付いているカスタム在庫詳細のフォームを作成します。そのクライントスクリプトは、在庫詳細のフォームの初期化でポップアップSuiteletをロードします。手順と例コードは以下です。

 

 
/** 
 * @param {nlobjRequest} request Request object 
 * @param {nlobjResponse} response Response object 
 * @returns {Void} Any output is written via response object 
 */ 
  
function suitelet(request, response){ 
 if (request.getMethod() == "GET") {   
  var myForm = nlapiCreateForm("Suitelet Popup Sample", true); 
  response.writePage(myForm); 
 } 
} 

 

 

 
/** 
 * The recordType (internal id) corresponds to the "Applied To" record in your script deployment.  
 * appliedtorecord recordType  
 *  
 * @param {String} type Access mode: create, copy, edit 
 * returns {Void} 
 */ 
function clientPageInit(type){ 
  
 //Set window position values 
 var leftPosition, topPosition; 
     leftPosition = (window.screen.width / 2) - ((600 / 2) + 10); 
     topPosition = (window.screen.height / 2) - ((600 / 2) + 50); 
  
   //Define the window 
 var params = 'height=' + 600 + ' , width=' + 600; 
 params += ' , left=' + leftPosition + ", top=" + topPosition; 
 params += ' ,screenX=' + leftPosition + ' ,screenY=

ようこそ!

サインイン

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

登録

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

リーダーボード

コミュニティの達人

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

今週のリーダー

今月のリーダー

歴代リーダー