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

@Ankur Bawiskar さん

ご回答ありがとうございます。

しかしこちらのコード試してみたところ、何もヒットしなくなってしまいました…

(間違えて「解決策」ボタンを押してしまいました申し訳ございません…)

@Pirakawa 

share the 1st variable config screenshot i.e. u_department_code

share the 2nd variable config screenshot

share the field u_5 dictionary screenshot

share the field bumon_bumon_id dictionary screenshot

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

@Ankur Bawiskar さん

 

すみません!ちょっとしたコードのタイプミスがありました…!

修正したところ問題なく絞り込みができました!

@Pirakawa 

Glad to know.

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