<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>SearchBuilder — DataTables forums</title>
        <link>https://next.datatables.net/forums/</link>
        <pubDate>Wed, 22 Jul 2026 01:34:42 +0000</pubDate>
        <language>en</language>
            <description>SearchBuilder — DataTables forums</description>
    <language>en</language>
    <atom:link href="https://next.datatables.net/forums/categories/searchbuilder/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Problem when using dataTables defaults together with button.add API</title>
        <link>https://next.datatables.net/forums/discussion/81773/problem-when-using-datatables-defaults-together-with-button-add-api</link>
        <pubDate>Wed, 13 May 2026 18:39:37 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>BjornHa</dc:creator>
        <guid isPermaLink="false">81773@/forums/discussions</guid>
        <description><![CDATA[<p>I don't know when this stopped working, but we had it running for a year in one page.</p>

<p>the settings in datatables.default</p>

<pre><code>$.extend($.fn.dataTable.defaults, {
....
    searchBuilder: {
        grayscale: false
    },
....
} );
</code></pre>

<p>Buttons added that activated the extensions:</p>

<pre><code>            searchAppTable.button().add(null, {
                extend: 'searchBuilder',
                grayscale: false,
                className: 'btn-secondary',
                config: {
                    depthLimit: 3,
                    columns: [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38]
                }
            });
</code></pre>

<p>This now not working for searchbuilder with the latest versions of dataTables and relevant extensions.<br />
However if the default section for searchBuilder is removed from defaults, the button.add API works again...</p>

<pre><code>$.extend($.fn.dataTable.defaults, {
....
    /* searchBuilder: {
        grayscale: false
    }, */
....
} );
</code></pre>

<p>We were not depending on the defaults for searchBuilder so we just removed it, so this is really a FYI for anyone experience the same.</p>

<p>KR,<br />
Björn Hasselberg</p>
]]>
        </description>
    </item>
    <item>
        <title>Can I make multiple predefined search queries from a select field?</title>
        <link>https://next.datatables.net/forums/discussion/81689/can-i-make-multiple-predefined-search-queries-from-a-select-field</link>
        <pubDate>Thu, 19 Feb 2026 15:02:12 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>arie0512</dc:creator>
        <guid isPermaLink="false">81689@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,</p>

<p>I want to make for my collegues some predefined search queries.</p>

<p>What I want is a select field with predefined seatch queries. For example sometime like this:</p>

<pre><code>&lt;select name="predined_search" id="predined_search"&gt;
  &lt;option value="name_starts_with_a"&gt;Name starts with an A&lt;/option&gt;
  &lt;option value="city_from_new_jyork"&gt;Clients from New York&lt;/option&gt;
  &lt;option value="age_greater_than_40"&gt;Older than 40&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Is this possible with SearchBuilder?</p>

<p>Best regards,</p>

<p>Arie</p>
]]>
        </description>
    </item>
    <item>
        <title>Required by DT SearchBuilder?</title>
        <link>https://next.datatables.net/forums/discussion/81658/required-by-dt-searchbuilder</link>
        <pubDate>Fri, 06 Feb 2026 12:54:27 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>tangerine</dc:creator>
        <guid isPermaLink="false">81658@/forums/discussions</guid>
        <description><![CDATA[<p>I have a number of data items in one old table defined like this (e.g.):</p>

<pre><code>            {
                data: "Countries.country_name",
                type: "string"        // Required by DT SearchBuilder                             
            },
</code></pre>

<p>but now I can't find anything in SearchBuilder docs that says I have to define data type. Do I need this type of specificity?</p>
]]>
        </description>
    </item>
    <item>
        <title>Missing translation for the joiner in a "Between" Date search, in french (and others)</title>
        <link>https://next.datatables.net/forums/discussion/81448/missing-translation-for-the-joiner-in-a-between-date-search-in-french-and-others</link>
        <pubDate>Tue, 14 Oct 2025 12:56:22 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>vendredi3</dc:creator>
        <guid isPermaLink="false">81448@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://live.datatables.net/datovohe/1/edit?html,css,js,console,output">https://live.datatables.net/datovohe/1/edit?html,css,js,console,output</a><br />
<strong>Debugger code (debug.datatables.net)</strong>: omuzow<br />
<strong>Error messages shown</strong>: No<br />
<strong>Description of problem</strong>: Pretty self explanatory. When you want to search data between two dates, the joiner between the two dates (and) is not translated.</p>

<p><img src="https://datatables.net/forums/uploads/editor/rj/gam1bqu3tn5p.png" alt="" title="" /></p>

<p>Thanks for your help and this fabulous library !</p>
]]>
        </description>
    </item>
    <item>
        <title>Searchbuild livesearch button translation</title>
        <link>https://next.datatables.net/forums/discussion/81361/searchbuild-livesearch-button-translation</link>
        <pubDate>Fri, 12 Sep 2025 10:16:33 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>klymov.inekon</dc:creator>
        <guid isPermaLink="false">81361@/forums/discussions</guid>
        <description><![CDATA[<p>Hello. I try to find how to set translation for livesearch button translation. This button on screenshot. How can I set it? Thanks <img src="https://datatables.net/forums/uploads/editor/e8/41rdv0ffiw6i.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>SearchBuilder does not honor orthogonal option for column</title>
        <link>https://next.datatables.net/forums/discussion/81171/searchbuilder-does-not-honor-orthogonal-option-for-column</link>
        <pubDate>Mon, 21 Jul 2025 01:29:53 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>LimpEmu</dc:creator>
        <guid isPermaLink="false">81171@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://live.datatables.net/juberumi/2/edit?html,js,console,output">https://live.datatables.net/juberumi/2/edit?html,js,console,output</a><br />
<strong>Debugger code (debug.datatables.net)</strong>: NA<br />
<strong>Error messages shown</strong>: NA<br />
<strong>Description of problem</strong>: One of my table columns starts with some general information and then outlines specifics in a span. For SearchBuilder, I only want to show the general information in the dropdown, not the specifics.</p>

<p>The setup of the column is shown below (also see test case).</p>

<p>I used one of your examples (<a rel="nofollow" href="https://datatables.net/extensions/searchbuilder/examples/customisation/orthogonal.html" title="https://datatables.net/extensions/searchbuilder/examples/customisation/orthogonal.html"></a><a rel="nofollow" href="https://datatables.net/extensions/searchbuilder/examples/customisation/orthogonal.html">https://datatables.net/extensions/searchbuilder/examples/customisation/orthogonal.html</a>) and modified it to reflect my situation. Based on your example and documentation (<a rel="nofollow" href="https://datatables.net/reference/option/columns.searchBuilder.orthogonal),">https://datatables.net/reference/option/columns.searchBuilder.orthogonal),</a> I expect the dropdown to no longer include the span, but it still shows up. The console.log shows that for filtering, the unwanted part is cut off.</p>

<p>What am I doing wrong?</p>

<pre><code>{
            data: 'rating',  title: 'rating',
            searchBuilder: {
                orthogonal: {
                    display: 'filter'
                }
            },
            render: function (data, type, row, meta) {
              var thisval=null;
              if (data === "" || data === null) thisval=data;
              else if (type === 'filter') {
                var pos = data.indexOf('&lt;span class="what');
                if (pos &gt; 0) thisval=data.substring(0,pos-1);
                else thisval=data;
              }
              else thisval=data;
              console.log('type: ' + type + '  thisval: ' + thisval);
              return data;
            }
        },
</code></pre>

<p>Many thanks,<br />
Beate</p>
]]>
        </description>
    </item>
    <item>
        <title>SearchBuilder and select column with 2 header rows</title>
        <link>https://next.datatables.net/forums/discussion/80826/searchbuilder-and-select-column-with-2-header-rows</link>
        <pubDate>Fri, 11 Apr 2025 14:21:39 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>slolo</dc:creator>
        <guid isPermaLink="false">80826@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://live.datatables.net/vuronaje/1/edit">https://live.datatables.net/vuronaje/1/edit</a><br />
<strong>Debugger code (debug.datatables.net)</strong>: NA<br />
<strong>Error messages shown</strong>: NA<br />
<strong>Description of problem</strong>: Hello,</p>

<p>I would like to know if there is a way to avoid duplicating the class in the header rows in order to tell the searchBuilder component not to include columns that have a given css class?</p>

<p>I have the <strong>orderCellsTop</strong> option set to <strong>true</strong> to tell DataTable that the "real" header is in the first header row.</p>

<p><img src="https://datatables.net/forums/uploads/editor/5p/4qkzrhq9xepn.png" alt="" title="" /></p>

<p>I works if I have only one header but if I add one header row (for filtering) it does not work anymore.</p>

<p>Is it a small bug or is this the desired behavior?</p>

<p>As discussed here <a rel="nofollow" href="https://datatables.net/forums/discussion/80822/how-to-exclude-columns-for-searchbuilder" title="https://datatables.net/forums/discussion/80822/how-to-exclude-columns-for-searchbuilder"></a><a rel="nofollow" href="https://datatables.net/forums/discussion/80822/how-to-exclude-columns-for-searchbuilder">https://datatables.net/forums/discussion/80822/how-to-exclude-columns-for-searchbuilder</a>, wouldn't it be possible to configure the column selection behavior for the "searchBuilder" component via the "columnDefs" option?</p>
]]>
        </description>
    </item>
    <item>
        <title>Missing translation in SearchBuilder for Search button</title>
        <link>https://next.datatables.net/forums/discussion/80785/missing-translation-in-searchbuilder-for-search-button</link>
        <pubDate>Tue, 01 Apr 2025 07:56:31 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>slolo</dc:creator>
        <guid isPermaLink="false">80785@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: NA<br />
<strong>Debugger code (debug.datatables.net)</strong>: NA<br />
<strong>Error messages shown</strong>: NA<br />
<strong>Description of problem</strong>: Hello,</p>

<p>I noticed that a small string of text was missing that needed to be translated in the file found here:<br />
<a rel="nofollow" href="https://datatables.net/plug-ins/i18n/French.html" title="https://datatables.net/plug-ins/i18n/French.html"></a><a rel="nofollow" href="https://datatables.net/plug-ins/i18n/French.html">https://datatables.net/plug-ins/i18n/French.html</a></p>

<p>See: <a rel="nofollow" href="https://cdn.datatables.net/plug-ins/2.2.2/i18n/fr-FR.json" title="https://cdn.datatables.net/plug-ins/2.2.2/i18n/fr-FR.json"></a><a rel="nofollow" href="https://cdn.datatables.net/plug-ins/2.2.2/i18n/fr-FR.json">https://cdn.datatables.net/plug-ins/2.2.2/i18n/fr-FR.json</a></p>

<p><img src="https://datatables.net/forums/uploads/editor/5r/48mcy1fk6a4r.png" alt="" title="" /></p>

<p>I have completed the json file by adding the "search" entry in "searchBuilder" section and it works perfectly.<br />
<img src="https://datatables.net/forums/uploads/editor/qh/nvd7qr3zon9s.png" alt="" title="" /></p>

<p>Can you add this new entry for the next release please?</p>

<p>Thanks in advance for your answer and have a nice day.</p>
]]>
        </description>
    </item>
    <item>
        <title>Elaborate on searchBuilderType + serverSide</title>
        <link>https://next.datatables.net/forums/discussion/78969/elaborate-on-searchbuildertype-serverside</link>
        <pubDate>Fri, 10 May 2024 03:03:52 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>washuit-iamm</dc:creator>
        <guid isPermaLink="false">78969@/forums/discussions</guid>
        <description><![CDATA[<p><a rel="nofollow" href="https://datatables.net/reference/option/columns.searchBuilderType">https://datatables.net/reference/option/columns.searchBuilderType</a></p>

<blockquote>
  <p>When using serverSide processing it is important to use this option to maintain consistent conditions across different pages of the table and also to reduce the number of requests to the server.</p>
</blockquote>

<p>How does that option work exactly to reduce the number of requests to the server?</p>
]]>
        </description>
    </item>
    <item>
        <title>Default search using preDefined searchBuilder configuration option is not correctly executed</title>
        <link>https://next.datatables.net/forums/discussion/80370/default-search-using-predefined-searchbuilder-configuration-option-is-not-correctly-executed</link>
        <pubDate>Fri, 20 Dec 2024 02:08:44 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>LimpEmu</dc:creator>
        <guid isPermaLink="false">80370@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://live.datatables.net/hudarabu/1/">https://live.datatables.net/hudarabu/1/</a><br />
<strong>Debugger code (debug.datatables.net)</strong>: n/a<br />
<strong>Error messages shown</strong>: n/a<br />
<strong>Description of problem</strong>:<br />
I would like to load a predefined search when the user first requests a table, but the search is not fully loaded. It shows the data and condition correctly, but the value box shows as empty even though the value that is specified in the predefined search exists in the data (and is forced to always exist).</p>

<p>I set up the example exactly the way I need it, i.e., initially the page is loaded with an empty table. The data is then loaded in the table when the user clicks on a button. Therefore, to see that this is not working, after the page has loaded, click on the button Replace Data at the very top. At this point, the table should only show 1 line, the one for which the Time Unit is "ALL". The search criteria are not completely loaded though and all rows are shown. The search criteria appear to not populate the value box with the options based on the data.</p>

<p>I tried to initially work the example with other data just to give a simplified example, but with my simplified data the feature worked just fine, so it's something about my table that appears to cause this issue.</p>

<p>Please let me know what I am doing wrong. Thank you, Beate</p>
]]>
        </description>
    </item>
    <item>
        <title>SearchBuilder inside editor modal in an input field of type "datatable"</title>
        <link>https://next.datatables.net/forums/discussion/80373/searchbuilder-inside-editor-modal-in-an-input-field-of-type-datatable</link>
        <pubDate>Fri, 20 Dec 2024 11:21:56 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>Emado</dc:creator>
        <guid isPermaLink="false">80373@/forums/discussions</guid>
        <description><![CDATA[<p>Hello everyone,</p>

<p>How can I search inside the datatable inside my modal (the input field with type datatable)?</p>

<pre><code>    const editor = new DataTable.Editor({
        ajax: '/data-tables/stock-check',
        fields: [
            {
                label: 'Name:',
                name: 'stock_check_list.name'
            },
            {
                label: 'Items:',
                name: 'items_data[].ItemId',
                type: 'datatable',
                multiple: true,
                optionsPair: {
                    value: 'ItemId'
                },
                config: {
                    columns: [
                        {
                            title: 'ItemId',
                            data: 'ItemId'
                        },
                        {
                            title: 'Description',
                            data: 'Description'
                        },
                        {
                            title: 'InventoryLocation',
                            data: 'InventoryLocation'
                        },
                        {
                            title: 'InventoryBalance',
                            data: 'InventoryBalance'
                        },
                        {
                            title: 'LatestInventoryDate',
                            data: 'LatestInventoryDate'
                        },
                        {
                            title: 'TotalValue',
                            data: "null",
                            render: (data, type, row) =&gt; {
                                return row.InternalOrderPrice * row.InventoryBalance
                            }
                        },
                    ]
                }
            }
        ],
        table: tableElement
    });
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>SearchBuilder Never Refines The Table Data</title>
        <link>https://next.datatables.net/forums/discussion/80351/searchbuilder-never-refines-the-table-data</link>
        <pubDate>Tue, 17 Dec 2024 01:44:36 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>pcnweb</dc:creator>
        <guid isPermaLink="false">80351@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<a rel="nofollow" href="https://pcnplus.org/dtest/dt_test.php">https://pcnplus.org/dtest/dt_test.php</a></p>

<p><strong>Debugger code (debug.datatables.net)</strong>:<br />
oyazih</p>

<p><strong>Error messages shown</strong>:<br />
None</p>

<p><strong>Description of problem</strong>:<br />
With the SearchBuilder plugin active, no matter what AJAX query it builds (which all seem correct in the Network console panel), it never filters the result set on the page - no errors in the console so I'm stuck on how to troubleshoot it? Does SearchBuilder not actually work for AJAX generated tables?</p>
]]>
        </description>
    </item>
    <item>
        <title>Is it possible to give search builder modal a max size.</title>
        <link>https://next.datatables.net/forums/discussion/71160/is-it-possible-to-give-search-builder-modal-a-max-size</link>
        <pubDate>Thu, 06 Jan 2022 01:14:14 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">71160@/forums/discussions</guid>
        <description><![CDATA[<p>When the user has their browser very wide it makes noticing the buttons on the right very difficult.</p>

<p>Is it possible to set a max width for this.</p>

<p>There is no unique class on the search builder modal so I can't modify come css to address only the searchBuilder modal it will affect all the modals with dt-button-collection dtb-collection-closeable.</p>

<p>You can sort of use the Button example to see it but since the example in in a frame it's not perfect.</p>

<p><a rel="nofollow" href="https://datatables.net/extensions/searchbuilder/examples/initialisation/button.html">https://datatables.net/extensions/searchbuilder/examples/initialisation/button.html</a></p>

<p>My Datatable is very wide so I don't want to force the Data Table into a fixed frame.<br />
Seen here.<br />
<img src="https://datatables.net/forums/uploads/editor/6x/vx2jyzb9g6cm.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Seachbuilder button on click</title>
        <link>https://next.datatables.net/forums/discussion/79424/seachbuilder-button-on-click</link>
        <pubDate>Wed, 17 Jul 2024 12:51:18 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>ECEGROUPE</dc:creator>
        <guid isPermaLink="false">79424@/forums/discussions</guid>
        <description><![CDATA[<p>Link to test case : <a rel="nofollow" href="https://live.datatables.net/xegawamo/1/edit">https://live.datatables.net/xegawamo/1/edit</a></p>

<p>When I click the "Search Builder" button, it already sets up an empty filter. I would like it to open the search builder without any filters, like this:</p>

<p><img src="https://datatables.net/forums/uploads/editor/4k/xv6dqei4a0m3.png" alt="" title="" /></p>

<p>Is it possible?</p>

<p>Additionally, is it possible to add a custom button (or div) inside the search builder, like this:</p>

<p><img src="https://datatables.net/forums/uploads/editor/mb/fqnri0t6fun5.png" alt="" title="" /></p>

<p>Thank you in advance for your help/answer,<br />
Mathieu.</p>
]]>
        </description>
    </item>
    <item>
        <title>Search Builder "searchable=false" behavior seems wrong to me</title>
        <link>https://next.datatables.net/forums/discussion/73067/search-builder-searchable-false-behavior-seems-wrong-to-me</link>
        <pubDate>Mon, 13 Jun 2022 21:14:49 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">73067@/forums/discussions</guid>
        <description><![CDATA[<p>I have a datatables instance which uses both the standard search box which searches all columns (lets call it "Quick Search") and searchBuilder.</p>

<p>I have three columns that conflict with each other when using quick search.  One is a department name, the next is a department hierarchy from the university level down to the department so it includes the department name and the third is a specific level within the hierarchy which represents a "school" which could also be the department for a given row.  This results in "Quick Search" not working if you allow all three columns to be searchable.   So I have disabled search for the hierarchy and the school with searchable=false but I allow the search to work across the department column with searchable=true.</p>

<p>Now that I have added searchBuilder I was happy to see the two "non-searchable" columns were still listed in the Search Builder list of columns.   However when I base a search on one of these columns no data is returned.  If I change the column to searchable and test again then searchBuilder works.   So I think search builder is inconstantly honoring the searchable boolean.   It either should not include the column in the list of columns you may base your search on or it should include the column in the list and should work as you would expect if that column is searched.</p>

<p>I prefer the later because "Quick Search" needs these two columns to be disabled since it is very basic and looks for data across all columns at the same time, but searchBuilder which addresses each column independently doesn't need to have search disabled and honestly I can't think of a case where you would want to disable a column in searchBuilder.</p>

<p>If anyone thinks it is necessary to be able to disable search on a column in searchBuilder then I think there needs to be two "searchable" booleans.   One for the standard search and another for searchBuilder.  Perhaps searchBuilderSearchable=false or something like that.</p>
]]>
        </description>
    </item>
    <item>
        <title>Disable SearchBuilder for Column</title>
        <link>https://next.datatables.net/forums/discussion/78974/disable-searchbuilder-for-column</link>
        <pubDate>Fri, 10 May 2024 16:00:36 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>washuit-iamm</dc:creator>
        <guid isPermaLink="false">78974@/forums/discussions</guid>
        <description><![CDATA[<pre><code>  {
    title: "Product Tags",
    data: "Product",
    render: function (products) {
      return products.reduce(function (acc, cur) {
        return acc + `&lt;span class="badge text-bg-light mx-1"&gt;${cur.Name}&lt;/span&gt;`;
      }, "");
    },
    visible: true,
    sortable: false,
    searchable: false, // This does not disable searchBuilder!!!
  },
</code></pre>

<p>Looking for something like <code>searchBuilderEnabled: false</code></p>
]]>
        </description>
    </item>
    <item>
        <title>Broken Links - Related Items</title>
        <link>https://next.datatables.net/forums/discussion/78973/broken-links-related-items</link>
        <pubDate>Fri, 10 May 2024 15:25:55 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>washuit-iamm</dc:creator>
        <guid isPermaLink="false">78973@/forums/discussions</guid>
        <description><![CDATA[<p><a rel="nofollow" href="https://datatables.net/reference/option/searchBuilder.preDefined">https://datatables.net/reference/option/searchBuilder.preDefined</a></p>

<ul>
<li>Scroll down to "Related".</li>
<li>Click any link.</li>
<li>404</li>
</ul>
]]>
        </description>
    </item>
    <item>
        <title>table.searchBuilder.getDetails() throws "Cannot read properties of undefined getDetails"</title>
        <link>https://next.datatables.net/forums/discussion/78901/table-searchbuilder-getdetails-throws-cannot-read-properties-of-undefined-getdetails</link>
        <pubDate>Thu, 02 May 2024 20:50:54 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>washuit-iamm</dc:creator>
        <guid isPermaLink="false">78901@/forums/discussions</guid>
        <description><![CDATA[<pre><code>datatables.js:51919  Uncaught TypeError: Cannot read properties of undefined (reading 'getDetails')
    at SearchBuilder.getDetails (datatables.js:51919:36)
    at _Api.&lt;anonymous&gt; (datatables.js:52434:32)
    at Object.getDetails (datatables.js:23873:17)
    at index.html:411:45
</code></pre>

<p>I apologize in advance for no test case, this requires serverSide data I think.</p>

<p>If I call this code in a setTimeout, it works!</p>

<pre><code>setTimeout(function () {
    console.log(table.searchBuilder);
    var d = table.searchBuilder.getDetails();
    console.log(d);
}, 3000);
</code></pre>

<p>There is some issue where getDetails chokes if the server side data has not loaded yet.</p>

<p><img src="https://datatables.net/forums/uploads/editor/4s/ptzkkec5wh5b.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>SearchBuilder - Can it search into row data that are not displayed?</title>
        <link>https://next.datatables.net/forums/discussion/78932/searchbuilder-can-it-search-into-row-data-that-are-not-displayed</link>
        <pubDate>Mon, 06 May 2024 15:56:58 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>Red Sniper</dc:creator>
        <guid isPermaLink="false">78932@/forums/discussions</guid>
        <description><![CDATA[<p>Hello there,</p>

<p>I am just wondering if I can use searchBuilder to filter rows based on their "hidden" data.<br />
I mean data that are not displayed in a specific column but are there in the row object data.</p>

<p>Thanks for the help!</p>
]]>
        </description>
    </item>
    <item>
        <title>Pre-defined search returns all rows if one of the criteria is never met</title>
        <link>https://next.datatables.net/forums/discussion/78733/pre-defined-search-returns-all-rows-if-one-of-the-criteria-is-never-met</link>
        <pubDate>Fri, 12 Apr 2024 15:19:56 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>LimpEmu</dc:creator>
        <guid isPermaLink="false">78733@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: Not available<br />
<strong>Debugger code (debug.datatables.net)</strong>: akeduz<br />
<strong>Error messages shown</strong>: No error messages<br />
<strong>Description of problem</strong>: I am using a pre-defined search to allow users to quickly find incomplete records. The problem is that sometimes the category used for one of the components of the search is not met which then results in the entire search to not work (all records are shown). Is it possible to run a pre-processing step prior to running the search to ensure that the category required is present?</p>

<p>My only other option is to create some auxiliary field that is e.g., "N" when the condition is not met and use that auxiliary field with a not equal, but I would prefer to avoid that.</p>

<p>Thank you.</p>
]]>
        </description>
    </item>
    <item>
        <title>Datatable searchbuilder hide empty value from dropdown</title>
        <link>https://next.datatables.net/forums/discussion/78045/datatable-searchbuilder-hide-empty-value-from-dropdown</link>
        <pubDate>Wed, 24 Jan 2024 14:35:37 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>ECEGROUPE</dc:creator>
        <guid isPermaLink="false">78045@/forums/discussions</guid>
        <description><![CDATA[<p>Hi, i m using datatables with searchbuilder, i have a column with those values possible :</p>

<pre><code>if (data == null) {
return null;
} else if (data == "1") {
return "✔";
} else if (data == "2") {
return "✖";
}
</code></pre>

<p>i would like when i select equal to in seachbuilder, that the empty value doesn't show (because it's already possible to select empty value with the empty option so there is no reason to show in the equal to option). How can i do this ?</p>

<p><img src="https://datatables.net/forums/uploads/editor/en/9tlny3e1dd1d.png" alt="" title="" /></p>

<p>Thx for your time / Answer <img src="https://next.datatables.net/forums/resources/emoji/smile.png" title=":)" alt=":)" height="20" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Apply seachbuilder filter when pressing a button</title>
        <link>https://next.datatables.net/forums/discussion/77556/apply-seachbuilder-filter-when-pressing-a-button</link>
        <pubDate>Tue, 07 Nov 2023 14:31:16 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>ECEGROUPE</dc:creator>
        <guid isPermaLink="false">77556@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,</p>

<p>I have a datatables set up and i would like to send a filter to my tables (using seachbuilder) when i press a button (or a div doesn't matter) in my page, how do i do this ?</p>

<p>i have tried :</p>

<pre><code>table.searchBuilder
    .destroy() // Supprimez les filtres existants
    .conditions([ // Ajoutez un filtre pour la colonne Collaborateur
        { label: 'Collaborateur', name: 'COLLABORATEUR_AD', type: 'text', value:  }
    ])
    .filterChanged(); // Appliquez le filtre
</code></pre>

<p>but it doesn't work for me, i have this error <code>Uncaught TypeError: table.searchBuilder.destroy is not a function</code> and i have the same error with conditions when i don't use .destroy !</p>

<p>Thx for your help / time,<br />
Mathieu.</p>
]]>
        </description>
    </item>
    <item>
        <title>Search each word individually</title>
        <link>https://next.datatables.net/forums/discussion/77499/search-each-word-individually</link>
        <pubDate>Tue, 31 Oct 2023 10:13:19 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>ECEGROUPE</dc:creator>
        <guid isPermaLink="false">77499@/forums/discussions</guid>
        <description><![CDATA[<p>Hello, i have a table with a column skills set up like this :<br />
<img src="https://datatables.net/forums/uploads/editor/hy/mlhvvy8gko8f.png" alt="" title="" /></p>

<p>i would like when i use searchbuilder, that i can search each words individually (actualy the filter is like this, how i m suppose to do ?)</p>

<p><img src="https://datatables.net/forums/uploads/editor/9o/fevf8656y1wq.png" alt="" title="" /></p>

<p>Thank for your time / answer</p>
]]>
        </description>
    </item>
    <item>
        <title>Is it posibile to create a 'dynamic' (with UI) predefined search</title>
        <link>https://next.datatables.net/forums/discussion/77404/is-it-posibile-to-create-a-dynamic-with-ui-predefined-search</link>
        <pubDate>Fri, 20 Oct 2023 20:25:56 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>Jack Ting</dc:creator>
        <guid isPermaLink="false">77404@/forums/discussions</guid>
        <description><![CDATA[<p>To do a server-side processes,<br />
is it posibile to launch the SearchBuilder UI to create a dynamic 'predefined' search 'before' the first data loading from server?<br />
Or is there any way to skip the 1st data loading from server when switching pages?</p>
]]>
        </description>
    </item>
    <item>
        <title>`Search` button shows even with `liveSearch: true`</title>
        <link>https://next.datatables.net/forums/discussion/77401/search-button-shows-even-with-livesearch-true</link>
        <pubDate>Fri, 20 Oct 2023 11:57:13 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>lisarush</dc:creator>
        <guid isPermaLink="false">77401@/forums/discussions</guid>
        <description><![CDATA[<p>With the latest release, the new <code>Search</code> button that is used when you disable <code>liveSearch</code>...<br />
the button is also there when you use the default value of <code>liveSearch: true</code>.<br />
I would have thought the button would have not been shown when using liveSearch -- it seems confusing.<br />
Is this intentional?  Either way, no worries, I will just remove the button myself -- but I wanted to ask.</p>

<p>Thanks,<br />
Lisa</p>
]]>
        </description>
    </item>
    <item>
        <title>Search pane selection results in an empty page</title>
        <link>https://next.datatables.net/forums/discussion/77282/search-pane-selection-results-in-an-empty-page</link>
        <pubDate>Tue, 03 Oct 2023 16:12:41 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>Peter Schulz</dc:creator>
        <guid isPermaLink="false">77282@/forums/discussions</guid>
        <description><![CDATA[<p>Hi guys,</p>

<p>This happens when a value is selected from a search pane on a page number &gt; 1.</p>

<p>This issue can be reproduces on the following demo page:<br />
<a rel="nofollow" href="https://datatables.net/extensions/searchpanes/examples/initialisation/simple.html">https://datatables.net/extensions/searchpanes/examples/initialisation/simple.html</a></p>

<ul>
<li>Open the demo page</li>
<li>Press the page 2 button</li>
<li>Select accountant from search pane Position</li>
<li>This results in an empty page</li>
<li>Pressing the page 1 button shows the two accountants</li>
</ul>

<p>This does not apply to the demo page only. I am seeing the same result in my own tables when I'm using search panes. Is this intended behavior? Is it possible to redirect searches to page 1 (generally)? I'm open for other suggestions as well...</p>

<p>Thanks,<br />
Peter</p>
]]>
        </description>
    </item>
    <item>
        <title>Best way to implement full boolean data type support (SearchBuilder, server-side processing)</title>
        <link>https://next.datatables.net/forums/discussion/73232/best-way-to-implement-full-boolean-data-type-support-searchbuilder-server-side-processing</link>
        <pubDate>Wed, 29 Jun 2022 10:47:23 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>supermind</dc:creator>
        <guid isPermaLink="false">73232@/forums/discussions</guid>
        <description><![CDATA[<p>DataTables and Editor supports date, string and num data types natively (+ formatted/html). We have lot of boolean fields in our application and few of them are nullable. I did not find any helpful discussion about implementing full boolean data type support including SearchBuilder and server side processing.</p>

<p>We format all true values as 'Yes' and false values as 'No', which works great. Editing values inline just by typing in 1, True, 0 or False goes smoothly and even null handling in saving works quite well when saving empty value.</p>

<p>However, using SearchBuilder to show only null values, 0 AND nulls or 1 AND nulls does not work at all. What we need is basicly three choises in selections: 'Yes', 'No' and 'Empty'. Is there somebody who have implemented something like that?</p>
]]>
        </description>
    </item>
    <item>
        <title>SearchBuilder : Uncaught TypeError: Cannot read properties of undefined (reading 'sDefaultContent')</title>
        <link>https://next.datatables.net/forums/discussion/76895/searchbuilder-uncaught-typeerror-cannot-read-properties-of-undefined-reading-sdefaultcontent</link>
        <pubDate>Sun, 06 Aug 2023 05:33:33 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>Keith B</dc:creator>
        <guid isPermaLink="false">76895@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>This is an initial request for guidance on what to investigate to pinpoint error when using SearchBuilder Indent/Outdent feature.</p>

<p>Debugger code (debug.datatables.net) : efowiy</p>

<p>Uncaught TypeError: Cannot read properties of undefined (reading 'sDefaultContent')<br />
    at Object.S [as _fnGetCellData] (datatables.min.js:43:17921)<br />
    at w.initSelect [as init] (datatables.min.js:143:20476)<br />
    at w._populateValue (datatables.min.js:143:18633)<br />
    at w.populate (datatables.min.js:143:9533)<br />
    at HTMLButtonElement.&lt;anonymous&gt; (datatables.min.js:143:53776)<br />
    at HTMLButtonElement.dispatch (jquery-3.6.4.min.js:2:43184)<br />
    at y.handle (jquery-3.6.4.min.js:2:41168)<br />
S @ datatables.min.js:43<br />
w.initSelect @ datatables.min.js:143<br />
w._populateValue @ datatables.min.js:143<br />
w.populate @ datatables.min.js:143<br />
(anonymous) @ datatables.min.js:143<br />
dispatch @ jquery-3.6.4.min.js:2<br />
y.handle @ jquery-3.6.4.min.js:2</p>

<p>Using SearchBuilder works fine and processes the table correctly.  However, at times when using the INDENT and OUTDENT functions, the above error is received.<br />
I am trying to determine what to investigate further to identify the component that is causing the error.<br />
In the debug code this error was produced on *R3_tbl</p>

<p>In the following code snippet, the issue appears to be driven by value n being passed in with a value of "" rather than a numeric value.<br />
    function S(t, e, n, a) {<br />
        "search" === a ? a = "filter" : "order" === a &amp;&amp; (a = "sort");<br />
        var r = t.iDraw<br />
          , o = t.aoColumns[n]<br />
          , i = t.aoData[e]._aData<br />
          , l = o.sDefaultContent<br />
          , s = o.fnGetData(i, a, {<br />
            settings: t,<br />
            row: e,<br />
            col: n<br />
        });</p>

<p>Cheers<br />
Keith</p>
]]>
        </description>
    </item>
    <item>
        <title>Value is not a dropdown field</title>
        <link>https://next.datatables.net/forums/discussion/76978/value-is-not-a-dropdown-field</link>
        <pubDate>Fri, 18 Aug 2023 10:48:45 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>Andreas S.</dc:creator>
        <guid isPermaLink="false">76978@/forums/discussions</guid>
        <description><![CDATA[<p>I have a problem with the searchBuilder. If is select a condition the value field would be replace from a dropdown field to a input field.<br />
I search for a while in the Forum, but i did not find a similar problem as my problem. Have you an idea whats wrong in my code?</p>

<p>Andreas</p>

<p><img src="https://datatables.net/forums/uploads/editor/si/kebcvtkjp8z1.png" alt="" title="" /></p>

<pre><code>     let table = $('#userTable').DataTable({
      ajax: "{{ route('admin.users.index') }}",

      order: [2, 'ASC'],
      searchBuilder: {},

      language: {
        searchBuilder: {
          button: '&lt;i class="fa-duotone fa-user-magnifying-glass fa-lg dt-btn-duotone"&gt;&lt;/i&gt;',
        }
      },

      columnDefs: [{
        target: [0, 1],
        className: 'text-center'
      }, {
        searchBuilder: {
          defaultCondition: '=',
          orthogonal: {
            display: 'filter'
          }
        },
        target: [2, 3],
        className: '',
        orderable: true,
        searchable: true
      }, {
        targets: '_all',
        className: '',
        orderable: false,
        searchable: false
      }],

      columns: [{
        data: 'user_status'
      }, {
        data: 'user_nation'
      }, {
        data: 'name',
        name: 'name'
      }, {
        data: 'club.shortName'
      }, {
        data: 'roles'
      }, ],
      buttons: dtButtons,
      initComplete: function() {
        $('#userTable').removeClass('d-none').addClass('d-table');
      }
    });
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Tooltip informational boxes do not disappear using Indent/Outdent</title>
        <link>https://next.datatables.net/forums/discussion/76916/tooltip-informational-boxes-do-not-disappear-using-indent-outdent</link>
        <pubDate>Wed, 09 Aug 2023 01:15:48 +0000</pubDate>
        <category>SearchBuilder</category>
        <dc:creator>Keith B</dc:creator>
        <guid isPermaLink="false">76916@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: unfortunately I could not create a failing version</p>

<p>Hi,</p>

<p>When using the indent/outdent criteria function and clicking on the button the tooltip boxes do not disappear.  If just hovering without execution they disappear.</p>

<p>It appears from the 'role' log that each successive tooltip gets added to the log AND as a div and then when the hover is no longer active the div deleted and the log updated to display:none.</p>

<p>But when the function is clicked the tooltip changes to 'outdent', a new div is created and the old 'indent' div is never deleted.  So it may just be a sequencing problem.</p>

<p>Cheers<br />
Keith</p>
]]>
        </description>
    </item>
   </channel>
</rss>
