Search
14013 results 2981-2990
Forum
- 20th Aug 2022Replacing Number of Rows in Search Pane resultsI think that is the reason, yes. Using https doesn't work.
- 17th Aug 2022table search and filter not showingDuplicate of this thread. Please don't duplicate your posts and look for my answer in your other thread. Kevin
- 14th Jun 2022Search Builder - conditions don't appear for v2.3.3I am, yes. Thanks for the rapid response!
- 6th May 2022How to put a select tag with an embedded search input in data tableThis example is demonstrating that for input elements, you could do something similar for select, Colin
- 1st May 2022Search Builder disable button LogicAnd, LogicOrYep, you can remove options - see this manual page. In this example, it's removing the "=" option for numbers - you can confirm that by looking at the "Age" column, Colin
- 28th Apr 2022ColReorder & Custom Search Functions and Panes@kthorngren @sandy Also, for my current setup: http://live.datatables.net/jahazase/19/edit There are duplicate filters or searchpanes in only safari. For example, there is a custom "New or Maintenance" filter and there is an auto generated "New or Maintenance" filter. This only occurs in Safari. I only want the custom panes or filters to show.
- 22nd Apr 2022Invalid search options not to be restoredHi @pgerundt , SearchPanes uses the stateSaveParams event to add the SearchPanes data to the state object. This event listener is set after the one set in the datatables initialisation. I'd suggest that you set your listener after SearchPanes has initialised. You could set a listener inside the datatables initComplete option - at this point SearchPanes will have already set it's listener and yours should run after the options have been added. Thanks, Sandy
- 22nd Apr 2022Where clause in search panesYou can use a closure function for the options as well. That supports executing your own SQL-statement if you like: https://editor.datatables.net/manual/php/joins#Closure---custom-function Something like this could work (not tested). It uses the built-in Editor db-handler which is typically called $db. If you called it differently you would need to change that in the code below. Field::inst('returns.member','member') ->searchPaneOptions( function() use ($db) { $stmt = ('SELECT DISTINCT id AS `value`, member AS `label` FROM returns WHERE member = :ab_foods LIMIT 1'); $result = $db ->raw() ->bind(':ab_foods','ab foods') ->exec($stmt);` return $result->fetchAll(PDO::FETCH_ASSOC); }),
- 31st Mar 2022Search Builder - Auto Select ConditionHi @fiji885 , Just to let you know that we have implemented this and it will be available in the next SearchBuilder release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds. Until then, you can see it in action at this example. Thanks, Sandy
- 31st Mar 2022SearchBuilder: How to pre-populate search values inside SearchBuilder values dropdown menu?Hi @ECEGROUPE , Take a look a this example. There are a few changes required to the function I linked above as it is in typescript. The main addition to get this working is /*****************************************************************************************/ addOption("AlwaysPresent", "AlwaysPresent") /*****************************************************************************************/ Hope this helps, Sandy