fields

Find a field on sharepoint site.

Let's say I have a string array of field internal names. How do I get their display names? I've been searching for an answer and found that there is a SPFieldCollection(SPWeb web, string strXml) constructor. My first thought - yeehaw, i can pass a CAMLquery and get SPFieldCollection objects to work with. However for strXml I've tried p...

Add additional input fields based on user input

I would like to allow my user to be able to say that he wants to pay out n positions in his tournament. Then be able to go in and have n fields listed and the ability to put different amounts in each one in order. I know how to do this in web code but have no idea how to do it in objective-c. Is it possible to add fields dynamically? If ...

How to prevent Satchmo forms from displaying asterisk after required fields?

I'm customizing my Satchmo store forms and have an icon that appears before any required fields. The problem is, Satchmo seems to want to render a text asterisk after the required fields. I'm using field.label to get this label, should I be using something else? EDIT: All my form templates are hard coded. I have an inclusion tag that...

C#: Is this field assignment safe?

In this snippet: class ClassWithConstants { private const string ConstantA = "Something"; private const string ConstantB = ConstantA + "Else"; ... } Is there a risk of ending up with ConstantB == "Else"? Or do the assigments happen linearly? ...

What should the accessablity of Fields in a Abstract Class be?

To put it simply as an example, public abstract class AbstractFellow { protected Thing buddy; .... public class ConcreteFellow extends AbstractFellow { public void someMethod() { buddy.doSomething(); //OR buddy = somethingElse; //OR somethingElse = buddy; } } Is this ba...

More private than private? (C#)

Sometimes you have a private field that backs a property, you only ever want to set the field via the property setter so that additional processing can be done whenever the field changes. The problem is that it's still easy to accidentally bypass the property setter from within other methods of the same class and not notice that you've d...

C# Reflection - Base class static fields in Derived type

Hi, In C#, when I'm reflecting over a derived type, how come I don't see base classes' static fields? I've tried both type.GetFields(BindingFlags.Static) and type.GetFields(). Thanks ...

Django empty field fallback

Hi there, I have a model that holds user address. This model has to have first_name and last_name fields since one would like to set address to a recipient (like his company etc.). What I'm trying to achieve is: if the fist_name/last_name field in the address is filled - return simply that field if the fist_name/last_name field in the...

Get fields in a PDF file using PHP

How can I find out the name of the fields in a PDF file using PHP? The only thing I can think of is converting the PDF file to HTML, but that really sounds like overkill. My end goal is to generate an FDF file (this bit I'm happy with) to populate the fields of a PDF file which I don't have control over, so I don't know what field name...

C++: Hide base static member

In C++, is it possible to have a child class "hide" a base class' static fields and methods? (i.e. A has a field named ABC of type int, B:A and B has a field named ABC of type int) ...

Django Admin: Making mandatory fields non-mandatory dynamically

How can I make mandatory fields non-mandatory when another [associated] field has a certain value? Let's assume I have the following models: class foo(models.Model): bar = models.CharField(max_length=200) foo_date = models.DateTimeField() When I save, and bar contains a certain value, i'd like foo_date to become non-mandatory...

Are public fields ever OK?

Before you react from the gut, as I did initially, read the whole question please. I know they make you feel dirty, I know we've all been burned before and I know it's not "good style" but, are public fields ever ok? I'm working on a fairly large scale engineering application that creates and works with an in memory model of a structur...

How to reorder a row of html input fields without getting into AJAX

Hi, I'm generating a set of rows of html input text fields, which I want my endusers to be able to reorder. I dont want to use AJAX, but am okay with javascript. I'm okay with some arrow buttons placed on the side of each row, which when pressed move the fields up and down. My issue with AJAX is that its too heavy (50-60kb) for just t...

top 3 records ordered by a field in rails

In ruby on rails how do I find the top 3 records of my table called notices ordered by a particular field, in my case I want to order by the position field which is an integer. so my notices table looks like this any help would be greatly appreciated, thanks ...

How best to create custom fields per user/customer?

Hi all, I've got an application which is sold as a SAAS to multiple customers. Predictably, sometimes customers want to customise some areas of the application by adding their own fields, specifically the area relating to Action/Project tracking. We allow a small amount of this currently. It is handled by storing the names of additional...

Add readable field descriptions to ActiveRecord models

I'd like to add descriptions to ActiveRecord model fields to serve as basic instructions / examples for each of the fields. Basically model metadata. I can then display these in the UI (next to the fields on a form etc.) The way I'm planning to do it is simply create a static hashtable inside the model with the field name as the key and...

Can you edit all columns in a table using phpMyAdmin?

In phpMyAdmin, like the create table view with a spreadsheet of column settings, can you edit a table's columns with new columns, as a similar spreadsheet? ...

why is urllib2 missing table fields which I can see in the Firefox source?

the html that I am receiving from urllib2 is missing dozens of fields of data that I can see when I view the source of the URL in Firefox. Any advice would be much appreciated. Here is what it looks like: from FireFox view source: # ...<td class=td6>as</td></tr></thead>|ManyFields|<br></div><div id="c1">... from urllib2 return html...

best way to automate updates installs

I wanted to know if there was a way to have an app automate to answer the questions.. I have created a batch file that starts the app in the start up folder. so I have 2 problems, one was deleting the batch file once it ran from that folder 2. answering the questions for the app? Is that even feasible? we don't have SMS which I was u...

How to get access field in Delphi using RTTI?

Hi all, and sorry for my English. Consider the following: TFieldType = class fValue: string; end; TMainClass = class private Ffield: TFieldType; public function GetValue: string; end; In TMainClass.GetValue I'm tryin get values of TMainClass fields: function TMainClass.GetValue; begin vCtx := TRTTIContext.Create; vType := ...