{"action":"created","issue":{"url":"https://api.github.com/repos/YASGUI/YASR/issues/55","labels_url":"https://api.github.com/repos/YASGUI/YASR/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/YASGUI/YASR/issues/55/comments","events_url":"https://api.github.com/repos/YASGUI/YASR/issues/55/events","html_url":"https://github.com/YASGUI/YASR/issues/55","id":58102821,"number":55,"title":"Injecting a value for filtering results","user":{"login":"jneubert","id":2128921,"avatar_url":"https://avatars.githubusercontent.com/u/2128921?v=3","gravatar_id":"","url":"https://api.github.com/users/jneubert","html_url":"https://github.com/jneubert","followers_url":"https://api.github.com/users/jneubert/followers","following_url":"https://api.github.com/users/jneubert/following{/other_user}","gists_url":"https://api.github.com/users/jneubert/gists{/gist_id}","starred_url":"https://api.github.com/users/jneubert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jneubert/subscriptions","organizations_url":"https://api.github.com/users/jneubert/orgs","repos_url":"https://api.github.com/users/jneubert/repos","events_url":"https://api.github.com/users/jneubert/events{/privacy}","received_events_url":"https://api.github.com/users/jneubert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-18T17:52:56Z","updated_at":"2015-03-06T16:56:20Z","closed_at":null,"body":"I'd like to set an initial search/filter string for yasr programmatically.\r\n\r\nMy use case is that I want to drill down from a chart (like [that one](http://zbw.eu/beta/stw_deltas/v/changed_descriptors.en.html)) to the [result of a sparql query](http://zbw.eu/beta/sparql-lab/stw.html?queryRef=https://api.github.com/repos/jneubert/skos-history/contents/sparql/stw/added_concepts_by_category.rq&language=en&oldVersion=8.12&newVersion=8.14&hide=1), filtered by the category string.\r\n\r\nPerhaps that Is possible with the current yasr implementation, but I couldn't figure out how.\r\n"},"comment":{"url":"https://api.github.com/repos/YASGUI/YASR/issues/comments/77593280","html_url":"https://github.com/YASGUI/YASR/issues/55#issuecomment-77593280","issue_url":"https://api.github.com/repos/YASGUI/YASR/issues/55","id":77593280,"user":{"login":"LaurensRietveld","id":988347,"avatar_url":"https://avatars.githubusercontent.com/u/988347?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurensRietveld","html_url":"https://github.com/LaurensRietveld","followers_url":"https://api.github.com/users/LaurensRietveld/followers","following_url":"https://api.github.com/users/LaurensRietveld/following{/other_user}","gists_url":"https://api.github.com/users/LaurensRietveld/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurensRietveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurensRietveld/subscriptions","organizations_url":"https://api.github.com/users/LaurensRietveld/orgs","repos_url":"https://api.github.com/users/LaurensRietveld/repos","events_url":"https://api.github.com/users/LaurensRietveld/events{/privacy}","received_events_url":"https://api.github.com/users/LaurensRietveld/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T16:56:20Z","updated_at":"2015-03-06T16:56:20Z","body":"apologies for the delay! \r\nI think you are looking for this method:\r\n`$('.dataTables_filter input').val('aaaaaaaaa').change()`\r\n\r\nThis looks for the text input, adds a value, and trigger the 'change' event (which makes the datatable update). This avoids using the actual datatables object altogether. Just make sure to call this after initializing YASR.\r\n\r\nWas this what you are looking for.\r\n"}}