Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8711305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:50:38+00:00 2026-06-13T04:50:38+00:00

I created a database (scriptDB) and have stored information (more than 40 properties of

  • 0

I created a database (scriptDB) and have stored information (more than 40 properties of about 600 people-students-).

var obj = {

alumne_id: email,

alumne_ordre: nomsencer_ordre,

alumne_timestamp: {created: new Date (). getTime (), changed:'', editor: 'unedited'},

alumne_nom: {nom: nomREAD, cognom1: cognom1READ, cognom2: cognom2READ, cognoms: cognomsREAD, nomsencer: nomsencerREAD},

(...)

}

 
I stored this object in my database:

var stored = db.save(ob);

I defined thus, properties of objects and have my stored. This works perfectly and update data, for example, change “alumne_nom.nom” to a new value: ‘Joana’

Now I want to add new properties to all or some of these objects (students).

The problem is that I can add a property as

newproperty1 

with:

stored.newproperty1 = '50 '

But I can not do:

stored.newproperty1.sub1

stored.newproperty1.sub2

stored.newproperty1.sub3

Does anyone know how I can add these subproperties?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:50:40+00:00Added an answer on June 13, 2026 at 4:50 am

    To add “subproperties” you need to first define the property. You can do it by setting an empty object to it, e.g.

    stored.newproperty1 = {};
    //then all subs should work
    stored.newproperty1.sub1 = 10;
    

    You could already pass the subs definitions on the braces as you do with the object as well:

    stored.newproperty1 = {sub1:10, sub2:20, etc:'value'};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to create a Stored Procedure for a newly created database. However
I have created my database by this sql query: (CREATE DATABASE + DBName +
I have created a database of my movies and another with my actors in
I have created my database, and used cake bake my_project to create my project,
I have created database table. But there is a strange thing I can insert
I have installed ASP.NET application with database on our server. ASP.NET application created database
I have created a Database Application using Netbeans, GlassFish and JavaDB. Now my controller
I've created a database with a table (customer table) that holds basic customer information
I have created a Database in DB2 and tables with relationships. I would like
I have a database created on SQL Server 2008 R2 hosted on Server A.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.