ディスカッション
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.
NetSuite 管理者ヒント |インラインHTMLを使用したSuiteletへのIFrameタグの埋込み
NetSuiteでカスタムSuiteletを構築する場合、Webベースのダッシュボード、分析レポート、ヘルプ・ドキュメント、別のシステムのインタフェースなど、外部コンテンツをフォームに直接埋め込む必要がある場合があります。これを行うための簡単で効果的な方法の1つは、INLINEHTMLフィールドを使用して<iframe>を挿入することです。
この方法では、外部リソースをシームレスに統合することでSuiteletの機能が強化され、ユーザーはNetSuite環境を離れることなく、役立つツールや情報にアクセスできます。
SuiteScript 2.0では、INLINEHTMLフィールド・タイプを使用して、RAW HTMLコードをSuiteletフォームに注入できます。<iframe>タグをフィールドのdefaultValueに割り当てることで、Suitelet内に外部コンテンツまたは内部コンテンツを表示できます。
/**
* @NApiVersion 2.x
* @NScriptType Suitelet
* @NModuleScope SameAccount
*/
define(['N/ui/serverWidget'],
function(widget) {
/**
* Definition of the Suitelet script trigger point.
*
* @param {Object} context
* @param {ServerRequest} context.request - Encapsulation of the incoming request
* @param {ServerResponse} context.response - Encapsulation of the Suitelet response
*/
function onRequest(context) {
if (context.request.method == 'GET'){
var form = widget.createForm({
title: 'SS2 Suitelet IFrame Demo'
})
var senderField = form.addField({
id: 'custpage_sender',
type: widget.FieldType.INLINEHTML,
label: 'Sender'
});
senderField.defaultValue = '<iframe> </iframe>';
form.addSubmitButton({
label : 'Submit Button'
});
context.response.writePage(form) 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
