{"action":"created","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/341","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/341/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/341/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/341","id":66448289,"number":341,"title":"Reporting","user":{"login":"nicklasb","id":8634663,"avatar_url":"https://avatars.githubusercontent.com/u/8634663?v=3","gravatar_id":"","url":"https://api.github.com/users/nicklasb","html_url":"https://github.com/nicklasb","followers_url":"https://api.github.com/users/nicklasb/followers","following_url":"https://api.github.com/users/nicklasb/following{/other_user}","gists_url":"https://api.github.com/users/nicklasb/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklasb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklasb/subscriptions","organizations_url":"https://api.github.com/users/nicklasb/orgs","repos_url":"https://api.github.com/users/nicklasb/repos","events_url":"https://api.github.com/users/nicklasb/events{/privacy}","received_events_url":"https://api.github.com/users/nicklasb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-05T15:14:24Z","updated_at":"2015-04-05T21:14:18Z","closed_at":null,"body":"Ok, this is basically of topic from the get go, but i am just wondering if any others have the same thoughts:\r\n\r\nThe same way schema form validates and enables inputting data using the schema and forms, the same way, it should be possible to turn that process around, and use forms to layout JSON data.\r\nThere are some nice plug-ins for [making charts](http://chinmaymk.github.io/angular-charts/), and plugins for making [pdfs](https://github.com/MrRio/jsPDF) and other stuff.\r\n\r\nSo I have seen fng-reports but that seems to depend on forms-angular, and I am thinking that there might be something from schema-form that is usable here.\r\n\r\nAs we now are considering a [schema-form-builder](https://github.com/mike-marcacci/angular-schema-form-builder), I am thinking about a reporting framework and visual builder.\r\n\r\nI can't see that something like that exists for angular. Which was somewhat unexpected to me."},"comment":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/comments/89853280","html_url":"https://github.com/Textalk/angular-schema-form/issues/341#issuecomment-89853280","issue_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/341","id":89853280,"user":{"login":"davidlgj","id":151694,"avatar_url":"https://avatars.githubusercontent.com/u/151694?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlgj","html_url":"https://github.com/davidlgj","followers_url":"https://api.github.com/users/davidlgj/followers","following_url":"https://api.github.com/users/davidlgj/following{/other_user}","gists_url":"https://api.github.com/users/davidlgj/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlgj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlgj/subscriptions","organizations_url":"https://api.github.com/users/davidlgj/orgs","repos_url":"https://api.github.com/users/davidlgj/repos","events_url":"https://api.github.com/users/davidlgj/events{/privacy}","received_events_url":"https://api.github.com/users/davidlgj/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T21:14:18Z","updated_at":"2015-04-05T21:14:18Z","body":"> Flat? You mean that it isn't nested or something? Isn't it nested if the things it loops calls their own, \r\n> effectively creating a tree? Perhaps I don't understand?\r\n\r\nWhat I mean is that the nesting is done by the directives, not by the \"building\" part of schema form, let me  give you an example: The \"building part\" is here: https://github.com/Textalk/angular-schema-form/blob/development/src/directives/schema-form.js#L94\r\n\r\nA form definition like this:\r\n```\r\n[\r\n {\r\n   type: 'fieldset',\r\n   items: [\r\n     {key: 'name', type: 'test'}\r\n   ]\r\n }\r\n```\r\nBecomes something like this:\r\n```html\r\n<sf-decorator form=\"schemaForm[0]\"></sf-decorator>\r\n```\r\nThat's what I meant that it was flat :), the building part that is. But that might need to change, this way is a bit slow. It would be more performant to render the entire tree using transclusion for fieldsets etc.\r\n\r\nThe fieldset has a ng-repeat that renders its children, see https://github.com/Textalk/angular-schema-form/blob/development/src/directives/decorators/bootstrap/fieldset.html#L4 so that's how tree structures are done.\r\n\r\n"}}