How to show nested level data in table view structure - ios

I have to show nested level table in tree structure. the level may be 5 or 6 times nested.
Please suggest me how I will achieve this.

I am not sure what you are looking for but you can try to find an open source component that can do this for you.
You can find such components by using this website for example:
https://www.cocoacontrols.com/search?utf8=%E2%9C%93&q=tableview

Related

How to make title row of crosstab invisible

I have designed the following crosstab in my report:
Is there a way I can make the first (title) row invisible (the row that mentions ‘Sum of resultaat’ and ‘volgnumm’).
I have no clue how to achieve this…
You don't specify which version of ReportBuilder you are using, but I've had a look at my version here (Version 10) and the CrossTab component does appear quite limited in terms of customisation.
However, ReportBuilder is quite well structured and a quick look at the ppCTRend.pas file reveals that it should be possible to create your own custom renderer derived from TppCustomCrossTabRenderer (remembering to register the rendering class with a call to ppRegisterRenderer). Methods to look at would be AddTextToPage and DrawCells
I got word from Nard Moseley from digital-metaphors that it's impossible to do at this moment:
"There are no properties or events to control that. You could set the captions to empty string, but no way to delete the row entirely."

Meteor publish-with-relations VS collection-helpers for joins?

What's the best way to do joins in Meteor/mongo? Use one of these packages, or something else:
publish-with-relations
https://github.com/erundook/meteor-publish-with-relations/blob/master/publish_with_relations.coffee
collection-helpers
https://github.com/dburles/meteor-collection-helpers
I'm very familiar with PWR, but collection-helpers is new to me. It looks like the two are complimentary.
PWR solves the somewhat complex problem of publishing documents to the client via a reactive join based on arbitrarily complex relationships. See this question for more details.
collection-helpers appears to be a set of convenience functions added to the client to be used when traversing collection relationships inside of a template (given that the required documents have already been published). For example, if you have books and authors in separate (but related) collections, you can immediately get myBook.author.fullName inside of a template without having to type out the extra find for the author.
currently the top popular solution in atmosphere seems to be publish-composite https://atmospherejs.com/reywood/publish-composite

Ruby on Rails: How to have multiple controllers for one table AND multiple models

I'm new to Ruby and to Rails. I have played a bit with Sinatra but I think that Rails is a more complete framework for my project. However, I am running into trouble with this.
I am working with an fairly substantial existing, and heavily used, mySQL database and I am trying to build an API for this that will report on certain features. The features that are needed are, for the most part, counts of records by certain groupings, then drilling down into details.
For example we have a table - tableA, that contains lots of information relating to documentation. One piece of information we want to report on from that is the number of items in a given language. The language code is stored against each item and based on a get request I would like to return JSON.
Request: /languages/:code/count/:tablename
There are two variables in that most specific URL - the code we are counting and the table we are counting from.
I understand that in routes.rb I can set up a mapping:
get '/languages/:code/count/:table', :controller=>'languages', :action=>'count'
I have a controller - languages_controller.rb with a count method in it. this then matches to a corresponding view file count.html.erb
In all the tutorials I have read and examples I have followed the main point seems that 'languages' would be a table in the database and would therefore be available under the 'magic' Rails approach.
My issue is that it is not a table, rather the results of the call should be a limited subset of the fields in tableA. Such as languagecode and count(id).
The description of the language needs to be looked up 'manually' as it is stored as an internal code that is not in a database anywhere (historic decision/madness).
The questions:
how do I have a model that is only a subset of fields, plus some that are manually populated - languagecode, isocode, description, count
Am I right in thinking that once I have the model defined as such as I could use ActiveRecord to get data from the database and then in the controller add the extra information in?
Can I change table in the model based on the parameter sent in the URL?
Essentially, I am at a loss at the moment on what to do with this. I have the routes defined, the view templates in place and the controller there and ready to go. The database component - getting some data from a pre-existing table seems mysterious to me.
Any help is greatly appreciated, it seems that the framework is currently getting in my way and I know that I can't be the only one trying this sort of thing so if you have any advice please share.
There's really no need for a model here, at all. This isn't what ORMs are for. What you should be doing is just running raw SQL against the database, and iterating over the results. Consider doing something like this: https://stackoverflow.com/a/14840547/229044

Symfony Propel Nested Set

I get the tree in symfony with propel with this way:
$tree = FoldersQuery::create()->findTree();
Now, how to list the tree with each child properly?
I want parents be on a specific div, children on an another div and list them. But how?
How to get the relationships between each item and know how to render it?
Thanks a lot.
You should read this documentation http://www.propelorm.org/behaviors/nested-set.
You can get all children with getChildren(), know whether it's a root node or not with isRoot(), know the level, ...
See more on the API section, it will help you :)

From db to css file?

I have a small set of css items in a db table that I need to turn into a css file to be included on a page. How can I do this in Rails3?
Is there a way I can call this directly from a stylesheet_link tag? Do I need to go through some ruby to open a file and output it in some directory first? Do I do this in a controller?
The css is actually its own model associated to the item using the css.
I do not know and looking for a solution found little yet, so asking here.
EDIT:
Simple when looked at, I was looking toward a sass or less solution and may still, but this is a simple start
I would create a Controller that retrieves the data from the database that uses a View to render the data to a Cascading Style Sheet.
You could then reference the given URL whenever you need to use the resulting stylesheet.
This is the easiest way that I have found http://blog.hasmanythrough.com/2007/10/18/simpler-than-dirt-restful-dynamic-css

Resources