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

Sails workaround for deep populate

I'm trying to deep populate a collection. For example // UnitType.js name: { type: 'string' } // Unit.js unitType: { model: 'unitType', via: '_id', required: true, index: true } // Product.js unit: { model: 'unit', via: '_id', …
Markus
  • 1,565
  • 6
  • 26
  • 57
4
votes
1 answer

MongoDB - OneToMany with foreign key in child

I'm using mongodb v.2.6.11 and mongoose. I have two models with a OneToMany relationship. In my parent, TypeA, (Abbreviated TA) I have no references to the child. In my child, TypeB (abbreviated TB) I have an id reference to the parent. Example…
Victor Axelsson
  • 1,420
  • 1
  • 15
  • 32
4
votes
2 answers

Deep associations in sails mongo using populate method?

I am new to sails.js and I am using "sails.js with Mongodb". I am having problem with deep associations using populate in my sails app. I have a relationship like this: Category has many to many relationship with Article. City has one to many…
Anil Kumar
  • 187
  • 1
  • 9
4
votes
3 answers

Sails.js populate with where

I need to select users with dogs (pets with type equal 'dog') var User = Waterline.Collection.extend({ identity: 'user', attributes: { firstName: 'string', lastName: 'string', pets: { collection: 'pet', via: 'owner' …
user4747674
  • 41
  • 1
  • 2
4
votes
2 answers

Best strategy to initially populate a Grails database backend

I'd like to know your approach/experiences when it's time to initially populate the Grails DB that will hold your app data. Assuming you have CSVs with data, is is "safer" to create a script (with whatever tool fits you) that: 1.-Generates the…
xain
  • 13,159
  • 17
  • 75
  • 119
4
votes
3 answers

Populate integers to dropdownlist using a loop

Can't figure out why my program wont populate my DropDownList using a loop. So far I've tried these two scenarios: 'Fill in the year box from current year to 100 years ago. '(Safe to assume no one over 100 will be signing up for site) Dim CurYear…
Vince
  • 2,596
  • 11
  • 43
  • 76
4
votes
1 answer

SQL: create new field, populate with query results

I have two tables: tbl_listings, with the column: prop_id; and another table: tbl_bookings, with the columns: prop_id, booking_date. I want to write a query that counts all the times prop_id appears in tbl_bookings, and then populates a new column…
natsuki_2002
  • 24,239
  • 21
  • 46
  • 50
4
votes
1 answer

Populating an ASP.Net DropDownList using VB.Net coding in code-behind file

We have a DropDownList in the markup of an ASP.Net / VB.Net web form. We are wanting to populate the DropDownList with data from a DataSet created from the DataSet designer but the coding we are using in the code-behind file does not find the…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
4
votes
2 answers

Populating an ASP.Net Drop Down List with DataSet data from DataSet created with DataSet designer

We have an ASP.Net / VB.Net web form containing a drop down list in the markup of the aspx file. There is also a DataSet created with the DataSet designer. We would like to populate the drop down with data from the DataSet. Can you show me some…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
4
votes
3 answers

How to populating Modified Preorder Tree Traversal data into Java tree object?

I have the following table with a MPTT structure : CREATE TABLE IF NOT EXISTS menus ( id int(10) unsigned NOT NULL AUTO_INCREMENT, parent_id int(10) DEFAULT NULL, lft int(10) DEFAULT NULL, rght int(10) DEFAULT NULL, module_name…
3
votes
1 answer

How to populate in MongoDB without mongoose?

I'm working on a university project and I need to populate an array of objects with ObjectIds, but I can't use mongoose in my project. I have two collections - subject and studyProgram. Example studyProgram document: { _id: ObjectId('111'), …
3
votes
2 answers

Dropdown populate ajax

I have the following issue: When i select an element from a drop down i want to auto populate another drop down via ajax. the idea is that the subcategory(sub_type) doesn't load after selecting the "type". HTML