The CreatorCon Call for Content is officially open! Get started here.

参照フィールドの絞り込みについて

Pirakawa
Tera Contributor

カタログ内にある参照フィールドの絞り込みを行いたいと考えています。

 

絞り込みの条件は、同じカタログにあるAフィールド(u_a)に入っている値を使って、

参照先のテーブル(c_table)のBフィールド(u_b)が、Aフィールドの先頭2桁から始まるもの。

としたいです。

 

参照修飾子を設定してみましたがうまくできず…どのようにすればよいでしょうか

1 件の受理された解決策

@Pirakawa 

you want exact match then you should use = operator

try this

javascript:'u_5.bumon_bumon_id=' + current.variables.u_department_code;

Note: Community replaces : with some other character, but when you paste that take care of it

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

元の投稿で解決策を見る

8件の返信8

Pirakawa
Tera Contributor

「先頭2桁」はできなくても構いません。

カタログ内の他のフィールド値を使って絞り込みを行いたいです…!

Ankur Bawiskar
Tera Patron
Tera Patron

@Pirakawa 

so you want to apply reference qualifier on reference variable?

share screenshot of how you are doing that?

share both the variable screenshots and details

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar さん

Pirakawa_0-1761111407807.png

 

画像の通り、参照修飾子は

u_5.bumon_bumon_idSAMEAScurrent.variables.u_department_code

と設定しております。

 

u_5→このフィールドで参照しているテーブルのフィールド(参照タイプ)

bumon_bumon_id→u_5で参照しているテーブルのフィールド(文字列)

u_department_code→カタログ内にあるフィールド(文字列)

 

bumon_bumon_idがu_department_codeと等しいレコードを表示させたいです!

@Pirakawa 

you want exact match then you should use = operator

try this

javascript:'u_5.bumon_bumon_id=' + current.variables.u_department_code;

Note: Community replaces : with some other character, but when you paste that take care of it

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader