5,318 questions
Advice
0
votes
1
replies
64
views
How to recursive loop json with relationship and convert to object?
I have this json data which I need to convert into an object. The json has a parent/child relationship instead of actual children object in the parent object.
{
"queryType": "tree&...
0
votes
0
answers
34
views
PyQt5 Parent/Child GraphicsItem Hover Behavior
I create several subclassed QGraphicRectItems with parent/child relationships to keep them in lock step on the screen. For whatever reason, the hover events on the children are triggering the parent ...
-2
votes
2
answers
150
views
Fetching of HTML li text content
I am working on an AI project, and I need to gather the contents of the li using JavaScript. There can be multiple of these li's
My HTML (just a small section)
<div>
<button id="...
2
votes
2
answers
89
views
How to detect change in dynamic objects property?
I have 5 dynamic objects out of those 5, I am referring to only 2 here:
objCache.tab1.page1.status: when cache enable from tab
objCache.page1.status: when cache enable from page
In my html and .ts ...
0
votes
0
answers
40
views
Trying to access children components from parent component and update children
Hi im making a ToDo list web similar to Trello. And i wanted to weekday section to be selected just one at a time like radio button.
When plus icon on top left of weekday section that part extends. ...
3
votes
1
answer
77
views
Sending data from a parent component to a specific child component
I have a child component that I am showing multiple samples of them in a parent component as:
parent.html:
<app-parent>
@for (item of Items; track item; let index = $index) {
<app-...
0
votes
2
answers
58
views
Define both element dimensions based on one parent dimension
:root {
--success: #0c0;
}
button {
border: 2px solid;
border-radius: 10px;
cursor: pointer;
margin: 1em 0.5em;
padding: 10px 15px;
transition: transform 1s;
}
button:...
0
votes
2
answers
60
views
How do I pass an updated object down to a Child Component in React?
I have this code where I've updated an object in React. When you click "Most upvoted", it takes an object, sorts it by votes, and then updates the state with it. The problem is, it won't ...
1
vote
1
answer
81
views
Issue with data communication between a modal child component and a parent component using Output in Angular
I'm having trouble managing data communication between a parent component and a modal child component in an Angular application. The parent component opens a modal (child component), and after an ...
1
vote
1
answer
50
views
Angular when I try to change variable "size" to "mensaje" @Input, it doesnt Work with "mensaje"
I try to share data from Parent to Child and Child to Parent, with variable in template PARENT "mensaje", the template receive this input and show in the input text Child, but when I type ...
1
vote
1
answer
438
views
Updated signal value is delayed in child component, if the value is passed down as an `input()`
I have a service which maintains some state using a signal.
The service also exposes an rxjs observable which emits when a certain event has taken place. This event takes place after the signal value ...
2
votes
4
answers
155
views
How to set state of a child widget from the parent widget?
I have a widget 'A' that displays Text(currentPlayerStatus). This widget is called 10 times from another widget 'B', one for each player in the list to display each player's status. Initially, all the ...
0
votes
0
answers
44
views
How to redirect console messages directly to the stdout of a child process in Node.js?
I would like to send custom log messages from one Node.js process to the stdout of a child process, without using intermediary files or separate streams.
The idea is to start a server in one terminal ...
-3
votes
1
answer
121
views
How to bind child-data to parent element in WPF .xaml template
I got a new job recently and the tasks are deeper into WPF than my current expertise.
The application contains different templates for CheckBoxes. They contain multiple levels of children and i need ...
1
vote
0
answers
22
views
How to get a amount from all "child" of a field account in power bi?
Explaining the problem:
I have a table with the accounts and the total value, this is the "fact" table
Account
Amount
CC1035
-19000
CC1284
123400
CC1909
200
CC1024
3500
I also have a table ...
1
vote
0
answers
55
views
Make parent scroll with child in flutter
So, I have a widget in flutter that is inside a SingleChildScrollView. Inside the scrollview, I have a PageView. Now the issue is that the PageView contains different pages such as Home, About, etc. ...
2
votes
2
answers
105
views
sql in excel vba - child parent subquery
I am trying to select only rows from the INPUT table which do not have a child - in SQL.The result is in OUTPUT. To make it easier, for now, I am considering only the columns 5H and 6H (the other ...
0
votes
1
answer
51
views
Postgresql Recursive query not providing result as expected
I have PostgreSQL table which has records stored as tree values
create table doitestchk(node_id,entity_id,letter,parent_id)as values
(1,'Entity_id_1','10',null)
,(2,'Entity_id_1','93/rheumatology',1)
...
0
votes
1
answer
75
views
Get all parents and children for each record, including child-level and chain from main parent to child
I have a table with parent-child relationship. For a dashboard I am creating, I need to create a table so the dashboard (SAS Viya) can work with the table. For that I need to get for every company id (...
0
votes
1
answer
119
views
Go Exit embedded goroutines
In Go I cannot figure out how to get the following setup.
1st level go routines should stop their 2nd level goroutines before they terminate.
If the functionrunGoroutine is not in a loop (I don't ...
0
votes
1
answer
94
views
C++ Qt: How widgets actually contained inside parent? [closed]
How Qt internally holds widgets to process and render them? Does parent widgets have some kind of array with raw pointers to child objects? Or maybe some kind of smart pointers?
0
votes
0
answers
119
views
'The specified child already has a parent. You must call removeView() on the child's parent first.' when changing the contentview
The app is crashing randomly when changing the contentview inside the carouselview, I tried to see if there was something wrong with the code but couldnt find anything.
I'm trying to mimic a ...
0
votes
1
answer
61
views
type="text" does not fallthrough to a vuejs child component having an <input> element
I have a child component with an <input> element. I can customize the component from a parent using several attributes like placeholder, maxlength, required, etc. But I cannot get type= to ...
0
votes
0
answers
32
views
If I have a child class that needs to add information to a parent's existing toString() override, how would I do that in C#? [duplicate]
This is my first question here, so hopefully I'm doing things right.
We have an assignment where we basically have to make a mini weather channel (it's supposed to be teaching us more about ...
0
votes
1
answer
62
views
Trigger function in parent or child window when location is local files
I am building an app with heavy media files. I am at a crossroads. It either needs a hefty messy pre-caching system or it needs to be bundled together using an HTML to EXE app. The EXE app is ...
0
votes
2
answers
480
views
Excel Parent Child Relationship and Part Level
Any help is appreciated on this issue. I originally came here to get help on this and was able to find a solution that has worked up until now.
To reference the original post here is the link:
Excel ...
0
votes
1
answer
68
views
Worldpress child theme: function NOT overriding
This is my function in wordpress child theme, but not overriding my style.css:
function my_child_scripts() {
wp_enqueue_script( 'my-child-script', get_stylesheet_directory_uri() . '/script.js', ...
1
vote
2
answers
92
views
Dynamic Component Outputs
I have 2 components in Angular, a parent and a child. I'd like the parent to be able to
pass an array of objects representing a clickable thing to the child
have the child component dynamically ...
0
votes
1
answer
63
views
emit changes from vue1 to a table of a q-tab-panel in vue2
i am trying to emit changes from my serialnumberdialog.vue to a table of a q-tab-panel in my viewdetails.vue.
please help me get the expected outcome. i already tried almost everything and asked for ...
1
vote
1
answer
113
views
How to share data between (multiple instances) of 2 unrelated components?
I have 2 unrelated components, a search bar and a table. I have a service that shares data between them. The problem is that I have multiple instances of the search + table components depending on the ...
0
votes
1
answer
46
views
Nested form in child component without FormGroup
I want to be able to reuse part of my form elsewhere, so I wanted to separate it into it's own component. I still want to submit the form through the parent component - no button or anything in the ...
0
votes
1
answer
40
views
Onclick of the list item button name should display which is in array
i have been trying to display the name of the array item onclick of the user button but onclick of that i m getting name of the user in console but not in page level
this is the app.component.ts file ...
1
vote
2
answers
679
views
Child Router is not receiving second path - ignoring child path
This is hour 10, I've tried 20 differnet configurations. the first set works fine. the children under company only evaluates
localhost:4200/Employee-pub/1 -\> localhost:4200/Employee-pub/1
...
1
vote
1
answer
707
views
Error: NG01203: No value accessor for form control name: 'name'
Someone can help me please ? I have two components Parent and Child. In Parent Component I have this formGroup and two method to get person and city.
ngOnInit() {
this.form = this.fb.group({
...
0
votes
1
answer
442
views
How should I get FocusState from ChildView to ParentView in SwiftUI?
I have a problem how to deal with FocusState in my project.
My parent View has an enum created on top:
enum RegistrationFocus: Hashable {
case username, password, confirmPassword, nameAndSurname, ...
0
votes
1
answer
94
views
Angular: change detection triggers only once when changing value immediately in parent component
I am setting a value from the parent component and changing it immediately. In the child component, change detection executes only once.
Stackblitz code base
Parent's code: HTML
<h1>Parent ...
-1
votes
1
answer
33
views
Child container is ignoring parent container box and margins on RHS Margins [closed]
Context: Trying to build a responsive 'Menu' for an online course I'm taking.
Problem: Cannot understand why the child containers are ignoring the constraints of the parent container on the RHS of the ...
0
votes
1
answer
123
views
Get sibling and parents with recursive SQL Server query
I have this table
Id
ParentId
1
NULL
2
1
3
1
4
NULL
5
4
6
8
7
9
Each child (Id) can have only one parent.
How to retrieve parents and sibling for a given child Id, it means:
SELECT `Here the code`
...
0
votes
0
answers
35
views
Unity - how do I use one child gameObject, out of lots, as a trigger to make them all invisible?
I'm currently making a small game, and one mechanic I'm working on is being able press a "plant flower" button, which triggers all the boxes, showing where you can plant it.
Then you click ...
0
votes
1
answer
65
views
auto return value of parent class () operator for templated child class
I am wondering whether it is possible to have an operator in a non-templated parent class with an auto return value and a templated child class??
Here is an example:
#include <vector>
#include &...
4
votes
1
answer
529
views
How to change border radius of Tabs component in NextUI
I have a problem in the tabs component of nextui. I want to change the radius as in the picture but the element is not in the code structure. How to solve it?
]
]
I tried with className={{ wrapper: ‘...
0
votes
1
answer
417
views
SQL UPDATE rows on same table with parent-child relationship
Given the example table below (which is a very small-scale version), I am trying to update the owner name on a row based on the user input of a single ownerId and multiple workIds. However, there is ...
1
vote
1
answer
64
views
Prepopulate Dialog Form with Data from Parent in React(Typescript)
Using Reactjs and Typescript, I have a parent component with data from api. It clicks to open a MUI Dialog with a form to edit but needs to be prepopulated with the data from the parents component. ...
0
votes
1
answer
79
views
Unable to open MUI Dialog from parent component in React
I am using React Typescript and MUI. I have a parent component with an 'Edit' button, when clicked , should display Dialog box with a form pre-populated with that specific data from the parents.Can ...
0
votes
1
answer
65
views
Replace an empty element
As a part of my workflow I am receiving xml files, sometimes a specific element is empty and this leads to problems in the system, this is a sample input file:
<?xml version="1.0" ...
0
votes
0
answers
46
views
Js relationship tree family Tree Parent Identification based on Group Names
I created the following code that allows me to create a relationship tree.
But I'm having the following problem if a user in his group name contains the fullname of another user then he is a child of ...
0
votes
1
answer
68
views
Automaticall generate pass through to child object function
I would like to automatically forward a function call to a child in python, so that the parent class has said function and then forwards the call to the child and returns the result to the caller. ...
0
votes
0
answers
36
views
PHP Customization using child class pattern
I am creating a system which manages projects. Each projects' behaviour can be customized by custom PHP class called c11n, that the project's owner can create by extending my parent c11nBase class. It ...
0
votes
0
answers
25
views
Query to return parents and parents of parents from two tables in Mysql [duplicate]
See the Fiddle for details
https://sqlfiddle.com/mysql/online-compiler?id=e59b8453-f19b-4ff0-83f9-75f44b22626b
I've reviewed the other recursive answers which do not seem to answer my question. I am ...
1
vote
2
answers
61
views
Toggling between card info
I have a child component which displays information when you click on its button.
information-data.component.html
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
<div class=&...