ディスカッション
スイート全体に組み込まれたAI機能は、データをより迅速に分析し、より優れた意思決定を促進する独自の考察を生成できるようにすることで、生産性を向上させ、リーダーに利便性をもたらします。オラクルのAI機能がどのように役立つかについては、これらのオンデマンド・ウェビナーをご覧ください。
AIを用いた自動化で請求書処理を合理化
AIを用いた考察を使用して、計画と予測を迅速化
AIを用いた自動化で請求書処理を合理化
AIを用いた考察を使用して、計画と予測を迅速化
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
NetSuite の始め方 | クライアント・スクリプト: postSourcing(scriptContext)
NetSuite の始め方 | SuiteScript タイプの概要 の記事でスイートスクリプトのすべての種類を説明した後、クライアントスクリプトのさまざまな種類に焦点を当てます。この記事では、postSourcingというクライアント・スクリプトの1つのタイプに焦点を当てます。このタイプのクライアント・スクリプトがトリガーされるのは、フィールドがソースになった後です。つまり、その値は別のフィールドの値に基づいてシステムによって自動的に移入されます。このイベントは、通常、特定のフィールド値が変更されるたびにカスタム・ロジックを実行するために使用されます。
注:
トランザクション・フォームにのみ実行します。
postSourcing関数の簡単な例:
/**
* @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)
*
* @since 2015.2
*/
function postSourcing(scriptContext) {
var currentRecord = scriptContext.currentRecord;
var fieldId = scriptContext.fieldId;
if (fieldId === 'item') {
// Get the value of the 'item' field
var itemName = currentRecord.getCurrentSublistValue({
sublistId: 'item',
fieldId: 'item'
});
// Set a new value for the 'description' field
currentRecord.setCurrentSublistValue({
sublistId: 'item',
fieldId: 'description',
value: 'Description 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
