Questions tagged [populate]

This is a general tag used when applying structured or unstructured data into a context.

This is a general tag used when applying structured or unstructured data into a context.

It doesn't necessarily mean that any kind of triggering of logic is in place. In case this is happening it should be mentioned in the question.

1176 questions
17
votes
5 answers

How to Set default combobox

So I've been looking to set a default value for my combobox. I found a few things but none of them seem to work. Actually, it works if I create a simple combobox and use comboBox1.SelectedIndex = comboBox1.Items.IndexOf("something") but once I…
Roel
  • 754
  • 3
  • 13
  • 30
16
votes
7 answers

Populate Combobox from a list

Newb here, I'm currently working on a form which has a combo box, which will show several Charlie Brown TV specials which you can click on to select and see a description of, rating, runtime, etc. I'm close but I'm not there in terms of…
Chezshire
  • 713
  • 5
  • 13
  • 32
16
votes
2 answers

Populating Android Spinner with List of Objects

I'm populating my spinner with user object in order to work later with the user ID but the display of the user lists shows the address of the object I guess. So my question is how to display only one attribute of the object, in the case of user…
Joy
  • 1,707
  • 7
  • 29
  • 44
14
votes
4 answers

Populate select2 with JSON after init doesnt work

I'm trying to populate a select2 element with a JSON array; but I can't get it. I have the next array: data = [{"id":"Foo","text":"Foo"},{"id":"Bar","text":"Bar"}] And I initialize select2 as follow: $("#selectElement").select2(); I use the next…
james fray
  • 191
  • 1
  • 2
  • 13
13
votes
4 answers

How to know when an Android ListView is done being populated

I have a child Activity that contains a ListView. This Activity is populated asynchronously from a SQLite cursor. The list items contain a TextView, a RadioButton, and a normal Button. The XML is shown below:
mahdaeng
  • 791
  • 4
  • 15
  • 25
10
votes
1 answer

Mongoose populate() returns empty array with no errors

I've been trying to get this populate thing to work, but I'm getting issues because I am not getting the expected results, and no errors to work with. Just simply an empty array. My models look like this. Each their own file var mongoose = require(…
Michael Myers
  • 133
  • 1
  • 10
10
votes
9 answers

Mongoose Populate returning null or undefined

I'm sorry if this is a n00b question, I've been searching Google & Stack for hours now and I've got to ask! I have two schemas, User and Story, shown below. I am trying to reference the User for a Story using the Ref option to Populate in a Query -…
lucirebecca
  • 113
  • 1
  • 1
  • 6
10
votes
2 answers

Mongoose: Cast to ObjectId failed for value

I'm trying to specify the schema of my db in mongoose. At the moment I do this: var Schema = mongoose.Schema; var today = new Date(2011, 11, 12, 0, 0, 0, 0); var personSchema = new Schema({ _id : Number, name: { type: String, required:…
Olivier_s_j
  • 5,490
  • 24
  • 80
  • 126
9
votes
1 answer

Load DataTable data through button Click

I want to populate DataTable through a button click. Initially the dataTable should be empty: var searchText = $("#textBox").val(); Table = $("#customerTable").dataTable({ data:[], "columns": [ {"data": "Id"…
Tjahid
  • 249
  • 1
  • 2
  • 7
8
votes
2 answers

ASP.NET MVC - Populate a drop down list

I'm new to ASP.NET MVC. I'm trying to figure out how create a basic drop down list from values in my database. In ASP.NET web forms, I know I can load a drop down list like this: Page.aspx
user70192
  • 13,786
  • 51
  • 160
  • 240
8
votes
3 answers

symfony2 - adding choices from database

I am looking to populate a choice box in symfony2 with values from a custom query. I have tried to simplify as much as possible. Controller class PageController extends Controller { public function indexAction() { $fields =…
Robbo_UK
  • 11,351
  • 25
  • 81
  • 117
7
votes
1 answer

Model and populate Core Data many-to-many relationship with attribute

I'm trying to set up a simple Core Data model like the following: Order(code, customer) Book(code, title, price) OrderBook(order_code, book_code, quantity) From Core Data documentation I see that it's not possible to model a many-to-many…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
7
votes
2 answers

Mongoose Populate Virtuals with Multiple Local/Foreign Key Pairs

I've just discovered Mongoose's Populate Virtuals method, and it's going to save me a ton on my current project. I'm looking to extend it even further, though. Is there an easy way to populate based on multiple local/foreign key pairs? Here's an…
Justin
  • 161
  • 1
  • 8
7
votes
4 answers

Angularjs populate select options with json

I am looking to populate select option with values from a basic json array. The example I have is a country select. Each country has an id element and a name plus other fields that I can ignore. Basically I would like to say put one value in the…
Robbo_UK
  • 11,351
  • 25
  • 81
  • 117
7
votes
8 answers

C# - how do I refresh DataGridView after removing rows

In my code I need to remove rows from the DataGridView after a recurring interval, and so I call the following function when a timer expires: private void removeRows(DataGridView dgv) { foreach (DataGridViewRow row in dgv.Rows) { //…
sa125
  • 28,121
  • 38
  • 111
  • 153
1
2
3
78 79