{"action":"created","issue":{"url":"https://api.github.com/repos/qcubed/framework/issues/658","labels_url":"https://api.github.com/repos/qcubed/framework/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/qcubed/framework/issues/658/comments","events_url":"https://api.github.com/repos/qcubed/framework/issues/658/events","html_url":"https://github.com/qcubed/framework/issues/658","id":62168335,"number":658,"title":"Decoupling QQNode from the DataGrid and HTML Creation","user":{"login":"spekary","id":755757,"avatar_url":"https://avatars.githubusercontent.com/u/755757?v=3","gravatar_id":"","url":"https://api.github.com/users/spekary","html_url":"https://github.com/spekary","followers_url":"https://api.github.com/users/spekary/followers","following_url":"https://api.github.com/users/spekary/following{/other_user}","gists_url":"https://api.github.com/users/spekary/gists{/gist_id}","starred_url":"https://api.github.com/users/spekary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spekary/subscriptions","organizations_url":"https://api.github.com/users/spekary/orgs","repos_url":"https://api.github.com/users/spekary/repos","events_url":"https://api.github.com/users/spekary/events{/privacy}","received_events_url":"https://api.github.com/users/spekary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T18:20:32Z","updated_at":"2015-03-16T22:31:21Z","closed_at":null,"body":"Currently, QQNodes have functions like GetDataGridHtml. Database nodes should not be generating html. This is part of the bigger issue of being able to easily specify different controls to do list display and management. Our current system is locked into the QDataGrid, which is slow, and uses a PHP 'eval', which is considered unsafe. It also means having to edit the templates to implement other list types, which could be DataTables, Bootstrap tables, a QDataRepeater subclass, or some other unknown future kind of list.\r\n\r\nSome developers have been working around this using separate templates to create entirely different systems of list management. I would like to instead have a way of easily changing the type of control that creates lists at codegen time. This would be similar to the already functioning QModelConnector editor dialog functionality, that would let you right click and specify the type of table, and possibly options on the columns as well.\r\n\r\nSimilar to the way that controls now create their own connection to database columns, each type of lister would know how to create its own connection to the database columns it is listing.\r\n\r\nI know some are eager to see 3.0 get released, so I will be working on this as a 3.1 addition, or perhaps a 3.0.1 addition. The problem is that I think this is critical to being able to have Bootstrap codegen ability."},"comment":{"url":"https://api.github.com/repos/qcubed/framework/issues/comments/81967688","html_url":"https://github.com/qcubed/framework/issues/658#issuecomment-81967688","issue_url":"https://api.github.com/repos/qcubed/framework/issues/658","id":81967688,"user":{"login":"vakopian","id":2228819,"avatar_url":"https://avatars.githubusercontent.com/u/2228819?v=3","gravatar_id":"","url":"https://api.github.com/users/vakopian","html_url":"https://github.com/vakopian","followers_url":"https://api.github.com/users/vakopian/followers","following_url":"https://api.github.com/users/vakopian/following{/other_user}","gists_url":"https://api.github.com/users/vakopian/gists{/gist_id}","starred_url":"https://api.github.com/users/vakopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vakopian/subscriptions","organizations_url":"https://api.github.com/users/vakopian/orgs","repos_url":"https://api.github.com/users/vakopian/repos","events_url":"https://api.github.com/users/vakopian/events{/privacy}","received_events_url":"https://api.github.com/users/vakopian/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T22:31:21Z","updated_at":"2015-03-16T22:31:21Z","body":"I completely agree that `GetDataGridHtml` does not belong in `QQNodes`.\r\nI've also advocated for deprecating `QDataGrid` altogether (because of the template/eval system) in favor of `QSimpleTable`. Do you guys think we could move in that direction? Or are people really attached to their `QDataGrid`'s, and if so what functionality makes it preferable to `QSimpleTable`."}}