Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

色々試してみたのですが完全な動作はしませんでした。

Variables Itemのその他の項目は保存できるし表示される、Multi Rowも表示されるし、AddやPreviewも表示されるところまでは動いて、その後値の変更が反映されない状況。足りないパラメータについて手詰まりの状況です。

しかしここまで動作したのならNowSupportに問い合わせできると思います。カスタマイズの方法はNowSupportでは対応しませんが、ServiceNowの仕様や不具合なら対応してくれます。今回の場合、ここまで動作するのでMulti Rowの不具合として問い合わせができそうです。是非問い合わせて結果を共有して欲しいです。

返信が遅くなり申し訳ありません。

現在NowSupportへ問い合わせし、返信待ちの状態となっています。

結果が返ってきましたら、共有させていただきます。

お久しぶりです。本件につきまして、進捗がありましたので共有させていただきます。

サポートからの返信によりますと、SanDiegoではServiceNowの方でも同様な不具合が起きることを確認し、リリース予定のTokyoでは不具合が解消されているとのことでした。SanDiegoのまま解消する方法があれば教えてもらいたいと連絡を入れていますので、また進捗がありましたら共有させていただきます。

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

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

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

find_real_file.pngfind_real_file.png

 

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