3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ServiceNow - 印刷画面へのリンクボタン作成

Posted at

1.UI Actionを作成する

  • クライアントで動作させるため、Clientにチェックを入れます。
  • Onclickに適当な関数名を設定します。
  • Onclickに設定した関数名でScriptを記載します。
    image.png

2.印刷画面を実際に開き、URLを取得する

image.png
image.png

3.取得したURLを開くScriptをUI Actionに記載する

現在開いているレコードの印刷画面を開くため、「sysparm_record_list」のパラメータ情報をSysIDに変更します。
今回は、Taskテーブルを継承しているテーブルで使用できるようにするため、「sysparm_record_target」パラメータも変更しています。
ポップアップ画面で開きたいため「g_navigation.openPopup()」を使用し、返ってきたWindow変数で印刷を実行します。
image.png

4.確認

image.png
image.png
ワンボタンで印刷実行画面まで表示することができました。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?