Select to view content in your preferred language

Null Values in eSearch Widget

289
1
Jump to solution
03-08-2019 08:06 AM
RichBell
Occasional Contributor

How do I remove the "null" from being selectable in a list of unique values for eSearch Widget 2.9.01

null

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Rich,

   In 2.9 and greater if null a null value exists in your data then it will be added as a unique option in the dropdown. To change this behavior you will have to comment out these lines in the PagingQueryTask.js

        if(this.nullsExist){
          retVal.unshift({code: 'null', name:'null'});
        }

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Rich,

   In 2.9 and greater if null a null value exists in your data then it will be added as a unique option in the dropdown. To change this behavior you will have to comment out these lines in the PagingQueryTask.js

        if(this.nullsExist){
          retVal.unshift({code: 'null', name:'null'});
        }
0 Kudos