How can I handle data in C++ like in newer dynamic languages, for example the arrays in PHP are quite neat:
$arr = array(
"somedata" => "Hello, yo, me being a simple string",
"somearray" => array(6 => 5, 13 => 9, "a" => 42),
"simple_data_again" => 198792,
);
I am open to all suggestions.
...
I want to implement a control with a specifiable DataSource property and it would be great if I could inherit and the type of the DataSource implements some sort of Hierarchical interface with properties and methods ensured.
Does .NET supply such an interface? Googling revealed nothing.
...
Is it possible to decide the number of hierarchical level dynamically in UINavigationController in iPhone ? Actually, in my application I have to display hierarchical data but I don't know the number of levels at the coding time. The number of levels can be increase or decrease. The exact number of levels will known to me at the time of ...
I would like to bind more than two different implementations of a class to a ListView and display the data in a Hierarchical structure (multi level).
Look at the Code below to understand where I'm coming from:
Thanks in advance
M.
public class AutoElements : CommonElements
{
public class results_dataset
{
...
Hello,
I am using Object as the data source to my Listview and trying to display data in a Hierarchical manner. I am not able to figure out how to bind these objects to my listviews. Below pasted is the code.
I am trying to place Listview inside another listview, inside another listview inorder to display data in a hierarchical manne...
I have the following hierarchy of classes in a problem that I am working on.
DiscountEvent
DiscountGroup
ProductFamily
Product
where each class contains a collection of next one (e.g. DiscountEvent contains a collection of DiscountGroups, etc)
This kind of a somewhat deep hierarchy results in many chained calls from the h...
I have a complex hierarchy of nested objects, with all of the child objects (stored an array of objects in the parent class) containing a property linking back to their parent: fairly simple and straightforward, with no real problems. If I do a var_dump of any object in the hierarchy, I'll get a recursive reference in the dump, exactly a...
I have a table with fields:
id
name
parent_id
grandparent_id
I want to select the id, name, parent name, grandparent name.
Can I do this with a self join? I basically want to retrieve the "name" value where parent_id = id and return one row.
Example:
id name parent_id grandparent_id
---------------------------------...
Hi
I have a table with this structure
id integer
parent_id integer
order_n integer
info text
Each row could have a parent row (parent_id, null if doesn't have a parent), and an order of insertion (order_n). Every time a row is inserted, the order_n field will be set with the correlative "inside his parent". So, two rows of fir...
I have an asp.net backend that creates Hierarchical Data based on IHierarchicalEnumerable.
This was used for custom Hierarchical Data Controls in ASP.NET WebForms for sitemaps etc. We are now using ASP.NET MVC and am looking to use the same Hierarchical Data Collection with jQuery / Json etc.
How can I display Hierarchical Data using ...
Question
Example Table
+-------------+----------------------+--------+
| category_id | name | parent |
+-------------+----------------------+--------+
| 1 | ELECTRONICS | NULL |
| 2 | TELEVISIONS | 1 |
| 3 | TUBE | 2 |
| 4 | LCD ...
I have been trying to decide what the best way to filter a set of data for a tree view is.
The filters are in the following XML format:
(sometimes)
Filtering two datasets:
>
AND
So I've been thinking about writing special conditions for the following, which are required at times because som...
I have been trying to decide what the best way to filter a set of data for a tree view is.
The filters are in the following XML format: using periods instead of carots
.Category. .FilterCategory(sometimes) FilterAgainstAttribute, FilterDataToCompare, FilterCategory. .Filter Attributes(FilterAgainstAttribute, FilterDataToCompare, Filter...
So I tried to format this properly the first time, but it published and all the stuff in carets wasn't parsed properly, so I'll try again:
I have been trying to decide what the best way to filter a set of data for a tree view is.
The filters are in the following XML format: using periods instead of carots
Filterin...
Good Overviews
One more Nested Intervals vs. Adjacency List comparison: the best comparison of Adjacency List, Materialized Path, Nested Set and Nested Interval I've found.
Models for hierarchical data: slides with good explanations of tradeoffs and example usage
Representing hierarchies in MySQL: very good overview of Nested Set in p...
Hi friends,
I have a self referential category table as you see:
I want to parse this table to find out tree level for each category. for example if root node level is 0 then CPU and Hard Drive and VGA and RAM are in level 1 and so on. how can I handle that?
I created a dictionary to put each category ID and its Level:
Dictionary<int...