How to change variables for catalog items in sc_req_item - UI builder

shota akamatsu
Tera Guru

I would like to make a change to a variable in the catalog item of sc_req_item in the UI builder.

I am having trouble changing it using the "Record" in the "Base Agent Workspace" template.
In the default "Base Agent Workspace" experience, changes to variables are reflected and saved when sc_req_item is displayed.
I would like to know what the settings are for this.

 

Sorry for my poor English. And thank you in advance.

 

Postscript. (07/29 10:46)
I would like to save the pages and components using form components on the pages I created, instead of using the default ones.

Also, the aforementioned "variables" refers to those that are sent from the catalog item, stored in sc_multi_row_question_answer, sc_item_option_mtom, and sc_item_option, and associated with the sc_req_item. which is also provided by default. In the default page, changes made when displaying sc_req_item were also reflected in each table.

The main issue is that I would like to create a page from scratch that allows changes to be made to another table associated with a record in sc_req_item, so I wanted to know how the default page is configured to do this.

I apologize for the lack of wording in my original question.

1 件の受理された解決策

本件解決しましたので共有させていただきます。

とは言ってもなぜ気づかなかったのかというような設定によって変数への変更を保存できることをサポートに教えてもらいました。

画像一つ目のようにイベントハンドラーを設定し、SET_VALUEの中身を画像二つ目のように設定することでMultiRowへの変更が保存されます。

find_real_file.pngfind_real_file.png

 

また、イワイ様には私の問題解決のために時間を割き協力してくださったことに感謝しています。誠にありがとうございました。

元の投稿で解決策を見る

8件の返信8

iwai
Giga Sage

I tried using "Record" in "Base Agent Workspace". It saved the changes correctly.
( "Base Agent Workspace" の "Record" を使ってみました。それは正しく変更を保存しました。)

> changes to variables are reflected 
  (変数への変更が反映されます。)
> saved when sc_req_item is displayed
  (sc_req_itemが表示されたときに保存されます。)

What doesn't work?
(何が動作しないのでしょうか?)

find_real_file.png

返信ありがとうございます。

日本の方のようですので、日本語で失礼します。

ページやコンポーネントはデフォルトで用意されているものを使うのではなく、自分で作成したページ上にてフォームコンポーネントを用いて保存をしたいと考えております。

また、前述の"変数"という言葉に関しましてはカタログアイテムから送信され、sc_multi_row_question_answer、sc_item_option_mtom、sc_item_optionに格納され、sc_req_itemと紐付けられているものを指していました。こちらもデフォルトで用意されているページではsc_req_itemを表示させた際に加えた変更が各テーブルにも反映されている状況でした。

本題としましては、sc_req_itemのレコードと関連付けられた別テーブルへの変更を行えるページを一から作りたいため、デフォルトのページでどのような設定によって行われているのか知りたかった次第です。

元の質問が言葉足らずで申し訳ございませんでした。よろしくお願いいたします。

 

find_real_file.png

Form Component で Multi Row にも対応した状態で動作します。下記ページで丁寧に作り方が説明してあります。
ただページ構成が完全に自由だとMulti Rowの動作が微妙にうまく動かない部分もあるようです。推測ですがAgentWorkspaceを前提とした暗黙のパラメーターを使っているのだと思われるのでその辺も合わせると動作すると思います。

How to use the Form component - Developer Community - Article - ServiceNow Community

ご返信いただきありがとうございます。

添付していただいたページ通りに作成し試行したのですが、やはり動作しませんでした。

イワイ様の述べられている暗黙のパラメータに関しまして何かついている検討等ございましたら、共有していただけますと助かります。よろしくお願いいたします。