1,176 questions
0
votes
1
answer
102
views
Strapi v5: Relations not populating in API responses despite correct configuration
Problem
I'm using Strapi v5 with SQLite database. My Wine content type has many-to-one relations to Category and Region, but these relations are never populated in API responses, regardless of the ...
0
votes
0
answers
36
views
Populate in Mongoose doesn't work if I'm using Typescript Error: Schema hasn't been registered for model "Category"
I'm using NextJs 15 with TypeScript and Mongoose, but when I try to populate the Product fields with the category, I get the following error: Error: Schema hasn't been registered for model "...
0
votes
0
answers
10
views
Populate a combox from another worksheet based on a specific grade
Here is my issue:
I have an Excel worksheet(Name is "Form") with a combo-box named "dept".
On another worksheet named "enrollment_details" contains grades A - F in Col &...
0
votes
1
answer
55
views
Strapi api doesn't return image field
I'm in a pretty strange situation.
the url /api/home-page?populate=* doesn't return my image field
but /api/home-page?populate=heroImage does
On the other side I have another single page very similar ...
0
votes
1
answer
63
views
How to properly populate a nested list and access its subelements in R
I just need to populate a nested list inside two for loops (for chain ALPHA and BETA, and for id), but I am getting a subscript out of bounds error.
This reproduces the problem:
mylist <- list()
...
0
votes
1
answer
95
views
Objects are not valid as a React child (found: object with keys {id, firstName, lastName, userName,}) React Error using Axios to get data from my api
I am trying to populate Data from my API into my react form. When I console.log my get statement. I can see the array with the information which means my get is getting the information.
.
Now the ...
0
votes
3
answers
319
views
NestJS Mongoose populate() Not Working for Arrays of ObjectIds, But Works for Single ObjectId
I am developing an application using NestJS and Mongoose and have encountered a problem when using the populate() method in a schema that contains an array of ObjectIds. The method works correctly ...
0
votes
1
answer
41
views
In gridview each rows has 2 dropdowns. After selected the value in 1st dropdown it should show the dropdown value in 2 nd dropdown
dropdown in gridview dependent on another dropdown.
here is what i tried
aspx
<asp:GridView ID="gvProgram" runat="server" DataKeyNames="ChoiceName" ...
0
votes
1
answer
39
views
Populate is returning empty array
I'm trying to populate the User in Project data
**Model from User
**
const { Schema, model } = require('mongoose')
const UserSchema = new Schema({
name: {
type: String,
required: ...
0
votes
1
answer
461
views
How do i pull data from one worksheet to another where a column includes a specific date?
I am struggling with an Excel Spreadsheet and hopefully someone can help.
It has two worksheets, "Database" and "Printsheet"
In the database, there are several columns, A:A ...
-2
votes
1
answer
115
views
Edit user information through modal
I am developing a small Interrail Planner for me and my friends.
At the moment, I am trying to create a modal to edit/update the travelers information.
Firstly, I have made it in a separated file.
A ...
0
votes
0
answers
63
views
Can anyone explain me about the populate method in Mongoose
I have started learning about MERN stack as well I am doing a project for better understanding but there's a use of populate method and the mongoose documentation is little confusing for me to ...
0
votes
2
answers
71
views
Replace NA values with the first value in all directions in R
I am looking to populate missing values in my table with non-NA value of the closest date, be it before or after the reference date. This means that a table like:
date value
03.03.2023 ...
0
votes
1
answer
18
views
Fill Data from DataFrame When 2 Column Values Match
I am trying to populate an empty column dataframe when two conditions (columns ['SITE','week'] are equal) are met when comparing two dataframes. Here is my example:
df1_small:
week SITE LAL
...
0
votes
2
answers
866
views
Why am i getting "relation does not exist" when it does?
I'm getting an error while attempting to populate my table with the following query:
INSERT INTO d_table
SELECT category.name, film_category.film_id
FROM category
INNER JOIN film_category.film_id ON ...
0
votes
1
answer
40
views
Mongoose Conditional Populating
I have this code where I want to get the pending invoices, and I only want to get the client and the amount fields.
const query = {status:"pending"};
const fields = "amount client";...
1
vote
0
answers
24
views
In Mongoose , 'populate' function is not populating the field
I had defined two schemas with one to many relationship i.e between blog and comments. Whenever a specific blog get called I want to populate that blog with respective comments.
blog.js
const mongoose=...
0
votes
1
answer
87
views
Hibernate CriteriaAPI Fetch only very specific attribute of many to one related entity
I have 2 classes similar to this:
public class A {
@Id @GeneratedValue
private long id;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "b_id")
B b;
...
}
...
0
votes
1
answer
692
views
Excel VBA ListBox in User Form Populate data from Sheet Range, add row by row after evaluating for a condition
I am trying to write a VBA code where I want to populate DATA from a worksheet Range A to AQ spanning over multiple Rows. AQ contains Value "Open" or "Closed". I want to get the ...
1
vote
1
answer
87
views
How to populate a column based another column in python?
I have a df that look like this:
ID Test Done Test Action Test Date
1234 Happy Test Decline 2021-11-30
1234 None Decline None
1235 Sad Test ...
0
votes
0
answers
49
views
image disappears when adding an AddEventListener (DOM) [duplicate]
I'm trying to make a JS puzzle game (image drag and drop). I'm trying to assign the tiles (images) of the puzzle to the event listeners, but then the populate function doesn't work and won't populate ...
4
votes
1
answer
2k
views
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 ...
0
votes
1
answer
623
views
I need to populate the axios get response with two leveles depth with Strapi v4
I have a database schema with 2 levels relationships between tables:
I perform this axios get: http://localhost:1337/api/restaurants?filters[id][$eq]=2&populate=* to strapi
And I hope to get two ...
-2
votes
1
answer
2k
views
I want to populate the column of a dataframe with values from the column of another dataframe when the values of two columns match
I want to populate values of df2['VALUE'] in a new column in df1 df1['New'] when category and location match for both dataframes.
When
df1['category'] = df2['CATEGORY'] AND df1['location'] = df2['...
0
votes
1
answer
244
views
Update PysimpleGUI window with values from Excel sheet
I am trying to reference a Pandas dataframe in Pysimplegui
`
# function definitions
def retrieve_info():
if values['-UPC-'] == '':
search_box = values['-UPC-']
records = item_info....