{"action":"created","issue":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7818","repository_url":"https://api.github.com/repos/wet-boew/wet-boew","labels_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7818/labels{/name}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7818/comments","events_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7818/events","html_url":"https://github.com/wet-boew/wet-boew/issues/7818","id":196764694,"number":7818,"title":"Tables: Empty Table appended on request, data appears but Filter always says 0 ","user":{"login":"TimCadieux","id":22413348,"avatar_url":"https://avatars.githubusercontent.com/u/22413348?v=3","gravatar_id":"","url":"https://api.github.com/users/TimCadieux","html_url":"https://github.com/TimCadieux","followers_url":"https://api.github.com/users/TimCadieux/followers","following_url":"https://api.github.com/users/TimCadieux/following{/other_user}","gists_url":"https://api.github.com/users/TimCadieux/gists{/gist_id}","starred_url":"https://api.github.com/users/TimCadieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimCadieux/subscriptions","organizations_url":"https://api.github.com/users/TimCadieux/orgs","repos_url":"https://api.github.com/users/TimCadieux/repos","events_url":"https://api.github.com/users/TimCadieux/events{/privacy}","received_events_url":"https://api.github.com/users/TimCadieux/received_events","type":"User","site_admin":false},"labels":[{"id":27177399,"url":"https://api.github.com/repos/wet-boew/wet-boew/labels/Plugin:%20Table%20enhancement%20(DataTables)","name":"Plugin: Table enhancement (DataTables)","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-12-20T19:51:39Z","updated_at":"2016-12-21T15:11:20Z","closed_at":null,"body":"I use a Tabbed interface and when the User clicks on the tab, I append the below table (same with any calls from dd_Transcripts).  The data appears but the filtering does not work and always says 0 of 0.\r\n\r\n    `<details id=\"details-panel-transcripts\">\r\n    <summary>Transcripts</summary>\r\n\r\n    <section>\r\n        <form class=\"wb-tables-filter\" data-bind-to=\"TranscriptsTable\">\r\n            <div class=\"form-group pull-right\">\r\n                <select class=\"form-control\" id=\"dd_Transcripts\" name=\"dd_Transcripts\" data-column=\"3\" onchange=\"GetTranscripts(this)\">\r\n                    <option value=\"T\">Today</option>\r\n                    <option value=\"P24H\">Past 24 Hours</option>\r\n                    <option value=\"PW\">Past Week</option>\r\n                    <option value=\"PM\">Past Month</option>\r\n                </select>\r\n            </div>\r\n        </form>\r\n    </section>\r\n\r\n    <section>\r\n        <table id=\"TranscriptsTable\" aria-live=\"polite\" data-wb-tables='{ \"ordering\" : false }'\r\n            class=\"wb-tables table table-striped table-hover\">\r\n            <thead>\r\n                <tr>\r\n                    <th>Headline</th>\r\n                    <th>Rating</th>\r\n                    <th>Source</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody id=\"Transcripts\">\r\n            </tbody>\r\n        </table>\r\n\r\n    </section>\r\n`\r\n\r\nThe .**js**\r\n\r\n    `function GetTranscripts(dd_Transcripts){\r\n    Transcripts(dd_Transcripts.value);\r\n    }\r\n    ...foo\r\n     $.ajax({\r\n                url: data.TranscriptsQuery(categories, p_size, dateRange),\r\n                crossDomain: true,\r\n                cache: true,\r\n                contentType: \"application/json; charset=utf-8\",\r\n                dataType: \"json\",\r\n                success: function (data) {\r\n                    if (callbackFunction !== undefined) {\r\n                        return callbackFunction(data);\r\n                    }\r\n                }\r\n            });\r\n    js.utils.AppendTranscripts = function AppendTR(tag, data) {\r\n\r\n    var items = [];\r\n\r\n    $.each(data.articles, function (i, item) {\r\n\r\n        items.push(\r\n        '<tr><td>' +\r\n        '<a href=' +\r\n        item.articleUrl + ' target=_blank>' +\r\n        js.utils.Truncate(item.title, 150) + '</a>' +\r\n        '<td>' + item.rating + '</td>' +\r\n        '</td><td><p style=\\\"font-size: smaller;\\\"> <em>' +\r\n        item.publication.name + ' ' +\r\n        item.publicationDateInUsersTimeZone +\r\n        '</em></p></td></tr>');\r\n\r\n    });\r\n\r\n    $(\"#\" + tag).html(items.join(''));\r\n    }\r\n    `\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/comments/268546330","html_url":"https://github.com/wet-boew/wet-boew/issues/7818#issuecomment-268546330","issue_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7818","id":268546330,"user":{"login":"duboisp","id":1676030,"avatar_url":"https://avatars.githubusercontent.com/u/1676030?v=3","gravatar_id":"","url":"https://api.github.com/users/duboisp","html_url":"https://github.com/duboisp","followers_url":"https://api.github.com/users/duboisp/followers","following_url":"https://api.github.com/users/duboisp/following{/other_user}","gists_url":"https://api.github.com/users/duboisp/gists{/gist_id}","starred_url":"https://api.github.com/users/duboisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duboisp/subscriptions","organizations_url":"https://api.github.com/users/duboisp/orgs","repos_url":"https://api.github.com/users/duboisp/repos","events_url":"https://api.github.com/users/duboisp/events{/privacy}","received_events_url":"https://api.github.com/users/duboisp/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T15:11:20Z","updated_at":"2016-12-21T15:11:20Z","body":"What kind of manipulation you need to do with your JSON? \r\n\r\nFYI - I am working also on a [JSON-manager](http://universallabs.org/wet/labs/json-manager/v0.1.0/jsonmanager.php) where it will be possible to apply pre-defined set of patches to a JSON object. And it will be also possible to [modify the JSON base on user interaction with my new plugin Field flow](http://universallabs.org/wet/labs/json-manager/v0.1.0/fieldflow-and-scripting.php)\r\n\r\n\r\n"}}
{"actor":{"display_login":"duboisp"}}