シンプルアクション (JavaScript)

シンプルアクションは、事前にプログラミングされたアクティビティを実行しますが、引数を使用して修正できます。

シンプルアクションはページの [イベント] ビューか、コントロールにあります。クライアント用とサーバー用に別々のシンプルアクションセットがあります。

別のページをブラウザにロードするボタンは、最初に [イベント] ビュー内で onclickServerSimple Actions を選択することによって実装されます。 次に Add Action をクリックして、[シンプルアクションの追加] ダイアログボックスを入力します。

シンプルアクションのタイプは、以下のとおりです。 クライアントのシンプルアクションを次の表に示します。
名前 構文 説明
Execute Client Script executeClientScript ![CDATA[JavaScript]] (Basic) クライアントサイドスクリプトを実行します。
Publish Component Property publishValue name="eventname" value="value" type="type" (Component) コンポーネントイベントを公開します。
Publish View Column publishViewColumn name="eventname" columnName="columnname" type="type" (Component) ビュー列の値をコンポーネントイベントとして公開します。
サーバーのシンプルアクションを次の表に示します。
名前 構文 説明
Change Document Mode changeDocumentMode mode="string" (Document) 現在のページのアクセスモードを変更します。
Confirm Action confirm message="string" (Basic) アクションを確認します。
Create Response Document createResponse name="string" parentID="string" (Document) 返答文書を作成し、それを新規文書として開きます。
Delete Document deleteDocument name="string" message="string" (Document) 現在の文書を削除し、新しいページを開きます。
Delete Selected Documents deleteSelectedDocuments view="string" "message=string" (Document) ビューで選択された文書を削除します。
Execute Script executeScript script=#{javascript:<JavaScript>}

executeScript script=#{xpath:<XPath_expression>}

executeScript script=#{<EL_expression>}
(Basic) スクリプト、XPath 式、EL 式を実行します。
Modify Field modifyField name="string" value="generic" (Document) 現在の文書のフィールドを変更します。
Open Page openPage name="string" target="string" documentId="string" (Basic) 現在のページを置き換えます。
Save Data Sources save "name=string" (Basic) 現在のページのすべてのデータソースを保存し、新しいページを開きます。
Save Document saveDocument (Document) 現在の文書を保存します。
メールの送信 sendMail from="name" to="name" cc="name" bcc="name" subject="string" bodyHtml="string" bodyPlain="string" embeddedFormat="JSON|XML" htmlUrl="string" gadgetUrl="string" <xp:this.eeContext> <xp:parameter name="name" value="string"></xp:parameter> ... </xp:this.eeContext> (Basic) メールの送信メッセージ。
Set Component Mode Action setComponentMode cancel="true" mode="edit" (Component) コンポーネントのモードを変更します。
Set Value setValue binding=javax.faces.el.ValueBinding object value="generic" (Basic) 計算式の値を設定します。

この資料は、以下の製品を参照します。 Domino®、Domino Designer、Notes®、iNotes®、 Notes Traveler