I create a BDC entry for a web service that exposes a catalog of publications.
Each publication has a collection of authors.
When I display the data in Bussiness Data List the column "Authors" displays "BDC.Authors[]".
Ho do I get Sharepoint 2007 to display the last names, seperated by a ","?
...
I don't know if the title makes sense, but I am wondering how a hashtable enlarges when you add items to it?
Is it like the List<T> where it doubles in size when the limit is reached? If so, then does this doubling recreates the collection from scratch (this can be answered for List<T> too, since I am not sure if that's what it does)?
...
I have some data that I have stored in a list and if I print out the list I see the following:
.
.
.
007 A000000 Y
007 B000000 5
007 C010100 1
007 C020100 ACORN FUND
007 C030100 N
007 C010200 2
007 C020200 ACORN INTERNATIONAL
007 C030200 N
007 C010300 3
007 C020300 ACORN USA
007 C030300 N
007 C010400 4
.
.
.
The dots before and a...
Hello, a new feature in C# / .NET 4.0 is that you can change your enumerable in a foreach without getting the exception. See Paul Jackson's blog for info on this change.
So I'm asking: what is the best way to do this:
foreach(var item in Enumerable)
{
foreach(var item2 in item.Enumerable)
{
item.Add(new item2)
}
}
...
Hi all
I tried a few things but this week i feel like my brain's having holidays and i need to complete this thing.. so i hope someone can help me.
I need to create a filelist based on a hash which is saved into a database. The has looks like this:
['file1', 'dir1/file2', 'dir1/subdir1/file3']
Output should be like this:
file1
...
I have a list of string in java code:
List keywords = new ArrayList();
keywords.add("Apple");
keywords.add("Banana");
and I would like to display the keywords using Freemarker:
Apple, Banana
How to do that?
PS:
I read through the manual and found some articles suggesting using <#list>, but the output is:
Apple
Banana
...
I have two lists of data. To represent an "item" I have a custom UserControl (as the item has multiple fields and I want to lay it out correctly on the UserControl).
I would like the list to be populated on some type of ListBox by these user controls instead of strings.
I have seen people do this in WPF using ItemsControl or some repea...
Hi All,
I've got an object, which I'll call MyObject. It's a class that controls a particular data row.
I've then got a collection class, called MyObjectCollection:
public class MyObjectCollection : List<MyObject> {}
Why can I not do the following:
List<MyObject> list = this.DoSomethingHere();
MyObjectCollection collection = (MyObj...
hello, let me explain my current situation
i have a SharePoint site lets say it is MAIN, and a subsite lets call it SUBMAIN
in MAIN i have a list called "a" and in subMAIN i have a list called "b"
both lists have the exact same columns,
i need to show the content of both lists (ordered by modified date for example) in one webpart i...
Hi
Following on from this Q of mine: http://stackoverflow.com/questions/754184/whats-the-best-way-to-make-this-java-program
I was recommended to store a list in Lecturer class and Course class. So I did, and it looks something like this:
public class Lecturer
{
private String id;
private String name;
List<Course> cours...
I have to implement an algorithm to decompose 3D volumes in voxels. The algorithm starts by identifying which vertexes is on each side of the cut plan and in a second step which edge traverse the cutting plan.
This process could be optimized by using the benefit of sorted list. Identifying the split point is O log(n). But I have to mai...
I have a bunch of sub projects in various directories. I want to specify them as a list, then for a given target I want to go through each one, one-by-one and call subant.
I've got something like:
<target name="run">
<subant target="run" failonerror="true" verbose="true">
<fileset dir="${projectA}" includes="build.xml"/>
...
Hello,
I have a hierarchy of categories, where a category can have a single parent (and you can have multiple levels of children.)
I'm investigating ways to display this information to the user and it seems like a basic vanilla tree layout is the most intuitive way to go. But I'm wondering if anyone can suggest other approaches.
The r...
How do I write the magic function below?
>>> num = 123
>>> lst = magic(num)
>>>
>>> print lst, type(lst)
[1, 2, 3], <type 'list'>
...
I have two lists and I want to select items that are not in the second list from the first list. I have no Linq experience to I think this should be a good way to start learning.
...
I have a Filter Method in my User Class, that takes in a list of Users and a string of search terms. Currently, the FindAll predicate splits the terms on spaces then returns a match if any of the searchable properties contain any part of the terms.
public static List<User> FilterBySearchTerms( List<User> usersToFilter, string searchTerm...
I would like to create a 'New Document' dialog similar to the Office 2007 style (see pic). I am having trouble with the list shown on the left. I have tried using a ListView control but I can't figure out how to display the header sections that scroll with the list (e.g. 'Template Categories' and 'Microsoft Office Online'
What is my b...
See the code sample below. I need the ArrayList to be a generic List.
ArrayList arrayList = GetArrayListOfInts();
List<int> intList = new List<int>();
//Can this be foreach be condensed into one line?
foreach (int number in arrayList)
{
intList.Add(number);
}
return intList;
...
What I really like in C# are generic lists. A list that can contain only one type of objects.
Is there something like a generic list in Cocoa/Objective-C? As far I only know NSArray who will take a pointer to any object.
...
Hi
I've got to make a function to which is given a key (as a string), a value (as a string) and a an association list of keys and values (as [(String, String)]). The function is meant to add the key and value pair on to the end of the list, and, if the key is already present in the list with an associated value, delete the old value. I'...