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
6
votes
1 answer

Populate multiselect box using jquery

i can populate dropdownlist using jquery as below : Dropdownlist : Script code : $(document).ready(function(){ $.ajax({ type: "POST", url: "function.aspx/provincelist", data:…
Hainlp
  • 169
  • 1
  • 5
  • 18
6
votes
2 answers

Populate HTML table with JSON data

We would be grateful for some guidance, [we are early into coding] and have looked at lots of examples but can cannot get our JSON to import into the table. At that moment we have the table data in-line however a correctly formatted JSON file is now…
BorisNZ
  • 141
  • 1
  • 3
  • 11
6
votes
2 answers

TypeError: int() argument must be a string or a number, not 'Model Instance'

Here's my models.py: from django.db import models class Location(models.Model): location_name = models.CharField(max_length=100) def __unicode__(self): return self.location_name class Menu(models.Model): location =…
vanguard69
  • 840
  • 1
  • 10
  • 18
6
votes
2 answers

Mongoose schema inheritance and model populate

I have been trying this with the built in inheritance features of mongoose (rather than the extend plugin) but haven't been having much luck so far. This is a simplified example of code I am trying to use which exhibits the same problem. This is…
gratz
  • 1,506
  • 3
  • 16
  • 34
6
votes
1 answer

How should I properly use populate with mongoose?

I am learning some node and have been trying to use mongoose. Currently, my goal is to learn how to use populate. I have a projects definition and milestone require: projectSchema = new mongoose.Schema({ id: String, title: String, …
Eduárd Moldován
  • 1,495
  • 3
  • 13
  • 29
5
votes
1 answer

Dynamically populate object properties with dictionary values

In Objective-C, I have a dictionary: firstName -> John lastName -> Smith age -> 34 and an object Person that has corresponding instance variables and properties (that handle memory management appropriately). I'd like to create a convenience…
jrdioko
  • 32,230
  • 28
  • 81
  • 120
5
votes
1 answer

Mongoose.populate() returns empty array instead of data

I've looked up other questions including this one however I couldn't find an answer resolves my problem. I have defined my models in the same way described in official documentation of mongoose by showing references and defining types of models as…
Yusuf Kamil AK
  • 771
  • 8
  • 17
5
votes
3 answers

Zend Framework: Populating DB data to a Zend Form dropdown element

I have the following form: createElement('select', 'country'); $country->setLabel('country: ') …
Phantom007
  • 2,079
  • 4
  • 25
  • 37
5
votes
2 answers

find(...).populate is not a function in mongoose

I am trying to populate two tables in mongoose and node and I receive the error that populate is not a function. I have search and in the documentation it seems that it does the same as I. Here the model: var mongoose = require('mongoose'); var…
5
votes
3 answers

Populating a WPF listbox with items from an SQL (SDF) database

I have been searching on how to do this for a very long time, and I have not managed to get a straight answer on the subject, so hopefully one of you StackOverflow users will be able to help me here. I have a WPF ListBox named CategoryList and a SDF…
Eyal Kalderon
  • 247
  • 1
  • 4
  • 10
5
votes
0 answers

Mongoose, recursive population of hierarchy

I have quite a large dataset where every Item has a hierarchy field with a children attribute which is an array of references to other Items. I want to get all top parent Items and populate the children all the way to the leafs. Item = new Schema({ …
trevligheten
  • 306
  • 2
  • 13
5
votes
1 answer

Mongoose.js store unknown object in schema

I am creating sort of a conversation app, I want a user to be able to continue their conversation from anywhere via email and SMS. Right now I have a conversation schema like this: var mongoose = require('mongoose'); var Schema =…
Trevor Hutto
  • 2,112
  • 4
  • 21
  • 29
5
votes
4 answers

For loop R create and populate new column with output

I've got a csv with some results. I want to loop over the results, run a power.prop.test and output the result for each row in a new column. So far I've got this: data <- read.csv("Downloads/data.csv", sep = ",", header = TRUE) for (i in…
user2471446
  • 109
  • 1
  • 3
  • 8
5
votes
2 answers

Recursive directory listing using WinForms TreeView?

I want to make a treeview that shows all folders on the system, and only shows music files, such as .mp3 .aiff .wav etc. I remember reading that I need to use a recursive function or something along those lines.
grey88
  • 71
  • 1
  • 3
5
votes
3 answers

SQL Server : populate table in 15 minute intervals

I need to populate a table in SQL Server with an ID column and a TimeValue column with 15 minute intervals between 01/01/2000 and 01/01/2020. It seems there must e a simple way to do it, but I'm new to T-SQL and can't find any easy way to achieve…
David258
  • 697
  • 2
  • 6
  • 15
1 2
3
78 79