Questions tagged [parentid]

The ID of a parent, which in an oriented tree, he is the previous node before the node of interest.

25 questions
26
votes
3 answers

Angularjs: ng-options group by

I have this one level tree situation: where the json is: [ {"ID":"1", "IDPARENT":"0", "TIPIS":"", "DESC":"GroupName1"}, {"ID":"2",…
daniel
  • 1,152
  • 2
  • 15
  • 33
3
votes
1 answer

How can I set parent-child relation on same table using ActiveRecord?

How can I set parent-child relation on same table? Id int, title string, ParentId int ---> this is refer to Id
Avinash
  • 3,231
  • 10
  • 36
  • 46
2
votes
2 answers

PHP Sorting array by id and parent id

I searched a lot for this problem: I've got an array: array( array('id' = '1'; 'parent' = '0'; 'title' = 'XXX1'); array('id' = '85'; 'parent' = '0'; 'title' = 'XXX2'); array('id' = '41'; 'parent' = '0'; 'title' = 'XXX2'); array('id' = '17';…
dudzio
  • 222
  • 1
  • 3
  • 13
2
votes
2 answers

javascript + PHP - send value from popup to another page

I have a working script that passes a value from a popup page to the parent page. Process Flow is: ParentPage>ChildPage>ParentPage I have had to change the process flow of my little application to have a 'category select' option on the child page.…
Smudger
  • 10,451
  • 29
  • 104
  • 179
1
vote
1 answer

Hierarchical MariaDB/MySQL recursive query (parent only)

I have the following table and would like to write a proper SQL query in MariaDB / mySQL to return the results underneath. "dirID" "parentID" "name" "1" "0" "C:\" "2" "1" "\temp" "3" "1" "\Users" "4" "3" "\Jon" dirID name 1 C: 2 C:\temp 3 …
gc_i
  • 41
  • 1
  • 6
1
vote
1 answer

Create a maven project with parent's packaging war

I want to create a Maven project. I want it to have a parent project. The problem is that the parent project has a package in: war. I see an error : Invalid packaging for parent POM must be "pom" but is "war" What should I do ?
hichemino
  • 11
  • 1
  • 2
1
vote
1 answer

how to get textNode.parentNode id?

I'm trying to write a simple CMS where user can add new paragraphs in contenteditable DIV. Also all paragraph's id's must be re-numbered. I was able to do that with jquery finishing up with this code:
kacpaa
  • 95
  • 9
1
vote
2 answers

HTML How to get id of parent Component?

I would like to get the id of the parent tag using javascript. In this example, the parent id of the text "stackoverflow" is "sofsite" and the parent id of "This" is "sofbody". This is
RAVI
  • 3,143
  • 4
  • 25
  • 38
0
votes
0 answers

How to target array from get_ancestor function?

I'm getting undefined offset with my code. I'm trying to pull out the top-level parent of a taxonomy of this archive page. Then set different menus depends on their top-level parent taxonomy
0
votes
0 answers

CorporateID and ParentID

I would like to make a report that would first include the main company and then its subsidiaries. How to make a sql query to retrieve data from the main company and its subsidiaries.
bigtrack
  • 11
  • 2
0
votes
0 answers

C# Build a tree from top level items using recursion?

Hello I am trying to use recursion in order to build a tree that starts with the first parent id of an id is null and branch out from there? I am new to this so I apologize for my ignorance if my explanation is not clear.
m24
  • 1
  • 4
0
votes
0 answers

Display results from mysql as navigation tree

I have the following table: categoryID categoryName parentID categoryID categoryName parentID 6 Category6 0 7 Category7 0 12 Category12 6 13 Category13 7 How can I get the following…
D.B.
  • 89
  • 1
  • 9
0
votes
1 answer

how to get the parent id in c++ with thread?

I want to know how I can get the parent id from a created thread. I had the idea that i make an id variable in the main function and give it as a parameter when i create the thread, but it doesn't work. Or can i get the parent id otherwise? My…
DevNewbie
  • 69
  • 5
0
votes
1 answer

Insert a post meta in the product with variable

I state that I am not an expert! My function modifies the visibility of the product based on the presence of the price. It works well with simple products, but not with products that have variables. To be more precise, the visibility of the variable…
0
votes
1 answer

Mysql query -> get all data using parentID

I'm new to StackOverflow, first time posting here and I wonder if somebody can help me with a mysql query. I have this database: Review Table id | user_id | from_user_id | parent_id 5 10 15 0 6 10 15 …
mario
  • 1
1
2