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

3 dropdown Populate based on selection in another [Cascading dropdown]

I am new to Java script. Here I have working example for 2 drop down Fiddle . HTML: JavaScript: var data = [ // The data ['ten', [ 'eleven','twelve' ]], …
Raka
  • 65
  • 1
  • 6
5
votes
1 answer

How to prepopulate a Green DAO sqlite database

I am about to use the Green DAO ORM tool. I am going to have to insert about six hundreds rows of data into my database. I am wondering there is a way to prepopulate the database using some form of sqlite database management tool or a script. I dont…
Joel Dean
  • 2,444
  • 5
  • 32
  • 50
5
votes
2 answers

Mongoose Populate in Node JS

I've been trying to follow the information in Mongoose Population, but I'm getting the exception: MissingSchemaError: Schema hasn't been registered for model "undefined". The code I have goes like this: mongoose = require('mongoose'); Schema =…
Jester
  • 399
  • 2
  • 3
  • 15
5
votes
5 answers

Struts 2: updating a list of objects from a form with model driven architecture

I already searched and found several approaches here, but I can't get them working for my project. I want to show an edit page for a list of objects, which should all be updated at once. I use the model driven architecture approach to achieve this,…
Lenz Lüers
  • 53
  • 1
  • 1
  • 5
4
votes
4 answers

How do i populate my recordset into my javascript using php

Okay so where i put the ZZZ's it should repeat the next value in the row... POPULATE VALUES INTO THIS PORTION OF JAVASCRIPT..... categories: ['', 'ZZZ', 'ZZZ'] I can get it do do it like this.... on another…
4
votes
2 answers

Populating a listview from a SQLite database

I have an activity where i write a name which is insert in the database. In another activity I want to put a ListView which is populated with those names which are in the database or to add the new item directly when i write it in the edittext from…
stanga bogdan
  • 724
  • 2
  • 8
  • 26
4
votes
2 answers

Spring Mongo Populator one by one

I'm using MongoDB and Spring over Kotlin and i want my application to populate a MongoDB collection upon startup. (and clean it every time it starts) My question is, how can i populate the data one by one in order to be fault tolerant in case some…
Shahar Wider
  • 447
  • 5
  • 21
4
votes
2 answers

Mongoose/MongoDB perform where after populate

I am currently facing a problem where I want to retrieve listings from MongoDB using mongoose which a user has not previously liked. Listings table: const listingSchema = new Schema({ _id, ...etc }) listingSchema.virtual('listingLikes',{ …
4
votes
1 answer

Mongoose populate count

I want to know how many users are associated to my office and for this I use the count option for virtual schema. Office schema: const OfficeSchema = mongoose.Schema({ name: { type: String }, admin: { type: mongoose.Schema.Types.ObjectId, ref:…
shAkur
  • 944
  • 2
  • 21
  • 45
4
votes
4 answers

Using pre-populated database in Room by copy database file from assert

I want to use pre-populated database in Android Room. I found a way to make it through using the callback, and filled up the database files. But something is wrong, I'm sure that the database is copied normally, but it remains empty in the device…
AlexS
  • 918
  • 1
  • 12
  • 28
4
votes
3 answers

How to create an array of objects from a 2d array in Javascript?

This is analogous to my actual problem but i feel illustrates the problem i need to solve without complicating things. I need to create an array of objects by iterating through a 2d array. The 2d array looks something like the"sampleArray" below.…
4
votes
2 answers

Populate States Based on Country Selection with Value

I have the code below and I want the second select element to get populated based on the country selection. So if user selects United States, it will populate the first array like Aalaska will be text and AK will be value, Alabama will be text and…
Amin Persia
  • 315
  • 2
  • 15
4
votes
1 answer

Populate Postgres database with numbers 1-1000?

I'm a newbie at pgAdmin3 and I want to populate a database in pgAdmin3 with numbers 1-1000. How can I go about doing this? Currently, I have a database created called MyDatabase (with nothing in it). Every row should correspond to its numerical…
ninchicken
  • 99
  • 1
  • 8
4
votes
5 answers

Mongoose populate a field without ObjectId?

I have a schema: var Schema = mongoose.Schema; var TicketSchema = new Schema({ externalId: String, name: String, items: [{ externalId: String, price: Number, quantity: { type: Number, default: 1 }, comment: { …
Emre Alparslan
  • 1,022
  • 1
  • 18
  • 30
4
votes
1 answer

How to automatically fill in the form with data from other models in Rails

I'm new to Rails. I'm trying to make an app where students can log in and signup for the exam. I have the following models and controllers which are related to that: The subject has the following columns: t.string "name" t.integer…
Aida
  • 85
  • 1
  • 6