- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
03-09-2025 04:07 AM
お世話になっています。
テーブルの一覧表示時に、ある日付項目(仮に「受付日」とします)から本日までの経過日数を表示したいと考えています。
もちろん、「経過日数」という項目を作って計算結果を入れれば良いのですが、基本的にはフォームのonloadやonsubmitトリガで「受付日」ー「本日」を計算し、定期的に「経過日数」を更新しておく必要があると思われます。
そうではなく、リスト表示時にリアルタイムに計算して表示することは可能でしょうか。
解決済! 解決策の投稿を見る。
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
03-11-2025 08:58 PM
you will require a field to hold the data and then show in list.
Without field it's not possible.
Why not create that field as Calculated type so that it gets calculated in real-time? then include that field in list
Don't show this field on form and make it read-only at dictionary level as it will be auto calculated
Note: Calculated field gets calculated each time for each row when list is rendered, so performance impact will be there
Calculated Fields Documentation
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
03-11-2025 10:23 PM
This response is very helpful.
However, when I add a column to my custom table, the calculated type does not appear in the type options. Is there any documentation on what tables this field can be used in?
Thank you for your support.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
03-11-2025 10:34 PM
Field will be normal string type or duration and Calculated is a checkbox and there you will get script option
Go to advanced view of that dictionary and then you will see that
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
03-11-2025 11:29 PM
I found it! Thank you for the detailed explanation.
I'll mark the previous answer as correct.
Best regards