- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 03:27 AM - edited 11-24-2022 03:31 AM
コミュニティの皆様
いつもお世話になっております。
私はGlideReocrdの抽出条件の設定でintegerタイプの項目の値が0のレコードをフィルタリングしたいです。
検証のため、integerタイプの項目が空のレコードを用意しました。
抽出条件を下記のように設定しましたが、integerの値が空のレコードもフィルタリングされてしまいました。
gr.addQuery('integer', '!=', 0);
integerタイプの項目の値が空の場合は0が初期値として自動で入れられているということでしょうか?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 04:23 AM
Hi @Fagi ,
No. It will keep it as empty only. Please check is there default value added as 0 for integer type field at dictionary level.
Thanks,
Sagar Pagar
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 03:53 AM - edited 11-24-2022 03:53 AM
Hi @Fagi,
You can try with
gr.addEncodedQuery('integerISNOTEMPTY); // integer should be field name
or
gr.addQuery('integer', "!=", ""); // integer should be field name
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 04:07 AM
Thank you for your response;
If the value of an integer type item is empty, is 0 automatically entered as the initial value?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 04:23 AM
Hi @Fagi ,
No. It will keep it as empty only. Please check is there default value added as 0 for integer type field at dictionary level.
Thanks,
Sagar Pagar
Thanks,
Sagar Pagar