ディスカッション
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を使用して顧客レコードの特定のサブタブにリダイレクトする
適用
製品: NetSuite 2024.1
シナリオ
ケース・レコードから顧客レコードをロードし、顧客レコードの特定のサブタブを表示します
解決策
nlapiRedirectURL()関数を使用して、顧客レコードに対してレコード前ロード関数を使用します。次にサンプル・コードを示します。
SuiteScript 1.0:
function onBeforeLoad(type, form, request) {
if (request.getParameter('selectedtab') == '' || request.getParameter('selectedtab') == null) {
var selectedTabParam = new Array();
selectedTabParam['selectedtab'] = 'address';
if (type == 'view') {
nlapiSetRedirectURL('RECORD', 'customer', nlapiGetRecordId(), 'VIEW', selectedTabParam);
} else if (type == 'edit') {
nlapiSetRedirectURL('RECORD', 'customer', nlapiGetRecordId(), 'EDIT', selectedTabParam);
}
}
}
SuiteScript 2.X:
function beforeLoad(context) {
var request = context.request;
if (request.parameters.selectedtab == '' || request.parameters.selectedtab == null) {
var selectedTabParam = new Object;
selectedTabParam['selectedtab'] = 'address';
if (context.type == 'view') {
redirect.toRecord({
type: record.Type.CUSTOMER,
タグ付けされた:
0