i want to search event from database by passing event name or id how to achieve that
any suggestion ?
i want to search event from database by passing event name or id how to achieve that
any suggestion ?
dhtmlxConnector provides an API for filtering. You can pass search values with the request parameters and use them as arguments for for filters
docs.dhtmlx.com/doku.php?id=dhtm ⦠filtration
i want no event to be loaded when scheduler.html loads, events should be shown only when user search for events based on id or name
can u provide any working example ?
The events are loaded by explicit call of scheduler.load function. If you donāt call this method, events wonāt be loaded
When itās needed you can remove previously loaded events and call loading, passing search parameters with the request
scheduler.clearAll();
scheduler.load("url?name=" + nameString);
//or
scheduler.load("url?id=" + id);
On the server side you can attach filter as described in the article from my previous post. Something like following[code]$scheduler = new schedulerConnector($res, $dbtype);
function custom_filter($filter_by){
if (isset($_GET[ānameā]))
$filter_by->add(āname_columnā,$_GET[ānameā],āLIKEā);
else if(if (isset($_GET[āidā]))
$filter_by->add(āid_columnā,$_GET[āidā],"=");
}
$scheduler->event->attach(ābeforeFilterā,ācustom_filterā);
ā¦[/code]
thanksā¦i solved problem in different way
Iāve been asked to create a simple search dialog box.
(Iāll put a button above the calendar)
Seems like this would be a popular option.
It looks like filters and the above example might work.
But Iām coming up a bit short with ideas.
Can anyone point me to an example like Iām describing?
TIA,
David