fields

Auto-implemented getters and setters vs. public fields

I see a lot of example code for C# classes that does this: public class Point { public int x { get; set; } public int y { get; set; } } Or, in older code, the same with an explicit private backing value and without the new auto-implemented properties: public class Point { private int _x; private int _y; public in...

I can read a binary field in MS SQL server 2005

Hi, I try to read a binary field in database ( Project Server 2007; dbo.MSP_CALENDAR ). MS don't implemante any fonction into PSI. Everybody have a suggestion? Thanks in advance SPo In Database Piblished, in table dbo.MSP_CALENDAR, i found a field named CAL_DATA, this field is BINARY. I try to CAST or CONVERT this field into s...

How can I find all the public fields of an object in C#?

I'm constructing a method to take in an ArrayList(presumably full of objects) and then list all the fields(and their values) for each object in the ArrayList. Currently my code is as follows: public static void ListArrayListMembers(ArrayList list) { foreach (Object obj in list) { Type type = obj.GetType(...

Show 'ghosted' example text in a field, and then clear it onblur

I'm trying to duplicate the effect used in the Firefox search box where, if the search field does not have focus ( the user has not clicked inside of it ), it just says Google in gray text. Then, when the user clicks in the box, the text is removed and they can fill in their search term. I want to use this to provide example field data ...

SSRS Report , Dynamic selection of fields

Hi, I want to create a report where my report's fields should change according to my input parameter values. eg. if i select '2 months'. there should be 2 fields in result, having month wise calculation. if select '3 weeks'. there should be 3 fileds each for each weeks calculation instead of the 2 months field. How do I achieve...

Text Wrapping in SSRS

Hi, How do I accomplish text wrapping of table fields in SSRS Report, and proper landscaping when rendering the report to PDF format Thanks in advance Anna ...

How to implement classes which all use the same variables

Hi, I have 6 classes, which are all document types. All the document types have the same 8 fields. There is one class which consists of only these 8 fields. The rest of the classes have more fields. Some of these classes have the same fields (beside the 8 fields). Example: class Document: fields 1 to 8 class Form: fields 1 to 8 and ...

How do I write a string search query that uses the non-clustered indexing I have in place on the field?

I'm looking to build a query that will use the non-clustered indexing plan on a street address field that is built with a non-clustered index. The problem I'm having is that if I'm searching for a street address I will most likely be using the 'like' eval function. I'm thinking that using this function will cause a table scan instead o...

What is the best practice for using public fields?

When I write a class I always expose private fields through a public property like this: private int _MyField; public int MyField { get{return _MyField; } When is it ok to just expose a public field like this: public int MyField; I am creating a structure called Result and my intention is do this: public Result(bool result, string...

Does the order of fields in C# matter?

This question is inspired by Jon Skeet's answer: http://stackoverflow.com/questions/431091/is-there-a-c-equivalent-to-cs-access-modifier-regions#431105 He makes a comment that it is possible for the order of fields in a file to matter. I am guessing that this has to do with the order that the fields are initialized, but I think it's a d...

How can I update a field in one table with a field from another table? (SQL)

Two tables: COURSE_ROSTER - contains COURSE_ID as foreign key to COURSES USER_ID as field I need to insert into COURSES COURSES - contains COURSE_ID as primary key INSTRUCTOR_ID as field that needs to be updated with USER_ID field from COURSE_ROSTER What would the UPDATE sql syntax be? I am trying this, but no good... I'm miss...

Is there an application that generates an HTML form from a PDF?

Is there an application out there that Generates an HTML form from a PDF file? Also, it would need to generate the HTML form so that it would be able to submit to the PDF to fill out the fields inside the PDF. PDF is not so good at validation and it's just a kluge interface to begin with. ...

Java: Interface vs Abstract Class (regarding fields)

From what I have gathered, I want to force a class to use particular private fields (and methods) I need an abstract class because an interface only declares public/static/final fields and methods. Correct?? I just started my first big java project and want to make sure I'm not going to hurt myself later :) ...

Access 2003 - Field from another database on form

I am 'fixing up' an old Access Database, and the client requested that a DATE field be added to a form. Problem is, I have NEVER used Access before. I'm a SQL guy, and I build my own UI's. This forms thing is getting the better of me. Ok - So I have two tables: tblQuestionairre QuestionairreID EventID blah blah blah tblEvent EventID D...

How to add custom fields to InlineFormsets?

I'm trying to add custom fields to an InlineFormset using the following code, but the fields won't show up in the Django Admin. Is the InlineFormset too locked down to allow this? My print "ding" test fires as expected, I can print out the form.fields and see them all there, but the actual fields are never rendered in the admin. admin...

Custom django widget - decompress() arg not populated.

As an exercise I am trying to create a custom django widget for a 24 hour clock. The widget will is a MultiWidget - a select box for each field. I am trying to follow docs online (kinda sparse) and looking at the Pro Django book, but I can't seem to figure it out. Am I on the right track? I can save my data from the form, but when I pre...

Project Server enterprise custom fields deletion

I use Microsoft Project Server 2007 and I have custom fields associated to projects. Each custom field stores a value per project. If I delete the custom field, what will happen with the values for the projects? ...

Unable to get all fields of a list using GetListItems in sharepoint web services

I want to retrieve al the fields from each element in list. The only way I have found is to create a view that contains every field. But I don't want to create a new view. I have tried , but it does not seem to be honored. If it worked I could get all the fields with GetList and populate ViewFields based on that. Is there a view to over...

How do I enable saving of filled-in fields on a PDF form?

Some PDF forms can be saved, including all filled-in field data: Some others can not be saved, and all filled-in field data are lost: How do I enable saving of filled-in fields on my PDF form? Thanks! ...

Create a MySQL table from a list of terms in a text file

Hi, I have a text file with a long list of terms (approx 800) sorted alphabetically in the format: aword bword cword ... I would like to use this file to create a new MySQL table where each term is a field, all with the property VARCHAR(5). Would be best if the fields were inserted in the order in which they appear in the file as I ...