Questions tagged [datafield]

64 questions
47
votes
3 answers

VARCHAR vs TEXT in MySQL

I have two fields: one to store an excerpt with a max size of 500 characters, and another to store a description with a max size of 10,000 characters. What data types should I use, TEXT or VARCHAR? And why? After MySQL 5.0.3 VARCHAR accepts ~65000…
Mohamad
  • 34,731
  • 32
  • 140
  • 219
5
votes
6 answers

Flex 3: How do I get the DataGridColumn's dataField in its ItemRenderer?

I'm trying to reach the dataField of a DataGridColumn in the itemRenderer. Below is the dataGrid:
Maurits de Boer
  • 1,907
  • 4
  • 23
  • 30
5
votes
1 answer

Appropriate data field type for true/false value?

What's the most appropriate (read least data consuming) data field to store a true/false/1/0 value in a mySQL database? I have previously used a one character long tinyint, but I am not sure if it's the best solution? Thanks!
Industrial
  • 41,400
  • 69
  • 194
  • 289
4
votes
1 answer

Define age in django template using actual datatime and birthday with datafield

i'm begginer at django and trying to display age for every user in my base of users. Here's my code: models.py: class Cv(models.Model): author = models.ForeignKey('auth.User') name = models.CharField(max_length=25, null = True) surname…
Damian
  • 115
  • 4
  • 13
4
votes
1 answer

GridView boundfield nested class

I'm developing ASP.NET page on localhost and then uploading it on the server. On localhost I successfuly use nested classes in DataField property of BoundField of an GridView. By nested class I mean this: DataField="Object.property" where Object is…
uiii
  • 469
  • 1
  • 7
  • 19
3
votes
1 answer

hide and show item

My problem this time is to make an item appear and disappear. I know it is done with hide() and show() but I do not know how? Here is my code. I want to make a xtype appear : "datepickerfield" when I select the "Appointment" in "selectfield"…
zied jouini
  • 131
  • 1
  • 3
  • 8
3
votes
2 answers

If I leave length/values field of integer type blank in MySQL how much length of data can it store?

When creating a table we normally make id field of integer type. But if I don't specify any value in length field how much length data will it store?
Rolen Koh
  • 719
  • 2
  • 11
  • 21
2
votes
2 answers

Possible to call a function inside BoundColumn.DataField?

would it be possible to somehow... ...so I could modify the value as needed? CRAP: A field or…
MetaGuru
  • 42,847
  • 67
  • 188
  • 294
2
votes
2 answers

In Java: using foreach loops in constructors to initialize multidimensional array data fields

So I'm trying to make a class that encapsulates a 2D array of chars. In particular, what I want to do is define the default constructor so that the encapsulated 2D array contains the default char ('#' in this case). My problem: when I attempt to…
sirsuripu
  • 63
  • 1
  • 6
1
vote
2 answers

.Net Copy ID Datafield into a Hyperlink Navigate URL parameter

I have a .Net 2.0 project where I'd like to take the value from the ID boundfield and pass that to the query string constructor of a Hyperlink field's navigate URL.
User970008
  • 1,135
  • 3
  • 20
  • 49
1
vote
1 answer

pass field value as parameter ssrs

I have a field customerid which is a field in the query but i am not showing this customerId in the report. The field customerid is in dataset1. I have another dataset named dataset2 and i have query "select ordername.... where order.customerId =…
Raghul Raman
  • 169
  • 1
  • 5
  • 18
1
vote
1 answer

AdvancedDataGrid dataField - how to use a subarray or object in flex?

I have an advanced data grid in flex (flash builder 4). It's dataProvider is pointing to an ArrayCollection (this._encounters). Inside that array collection is a property that is an object (a client object). I tried setting the dataField to…
Scott Szretter
  • 3,938
  • 11
  • 57
  • 76
1
vote
1 answer

Issue in the Design View for ASP.Net Custom Server side Control which inherits GridView

I have created a Custom Server Side Control which inherits GridView Class. I have added a public string property, which accepts the column names of the Data Source(DataSet or DataTable) with comma separator. Now I have implemented the required…
1
vote
2 answers

Python Pandas Square Brackets LIST from STRING

Warning: I am newbie to Python, Pandas, and PySerial.... I am reading values from an Excel spreadsheet using Pandas. The values in Excel are stored as Text, but contain both alphabetical and numeric characters. see Snip of Excel data I import these…
Birdman
  • 11
  • 5
1
vote
1 answer

In Java, why would you initialize a data field outside of the constructor, but then give it a different value inside the constructor?

I'm reading Data Structures by Koffman and Wolfgang and, in their implementation of the ArrayList, they initialize a data field outside of the constructor, and then give it a different value in the constructor. public class KWArrayList { private…
user236343
  • 163
  • 1
  • 5
1
2 3 4 5